Skip to content

Commit 491adcb

Browse files
jaracojamielennox
authored andcommitted
Remove dependency on pbr. Update metadata to resolve from declarative config in setup.cfg. Fixes #218.
1 parent 88c4ea7 commit 491adcb

File tree

4 files changed

+14
-20
lines changed

4 files changed

+14
-20
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools>=56"]
3+
build-backend = "setuptools.build_meta"

setup.cfg

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22
name = requests-mock
33
author = Jamie Lennox
44
author_email = [email protected]
5-
summary = Mock out responses from the requests package
6-
description_file = README.rst
5+
description = Mock out responses from the requests package
6+
long_description = file:README.rst
77
license = Apache-2
8-
license_file = LICENSE
9-
home_page = https://requests-mock.readthedocs.io/
8+
url = https://requests-mock.readthedocs.io/
109
project_urls =
1110
Source = https://github.com/jamielennox/requests-mock
12-
classifier =
11+
classifiers =
1312
Development Status :: 5 - Production/Stable
1413
Intended Audience :: Developers
1514
Intended Audience :: Information Technology
@@ -25,11 +24,13 @@ classifier =
2524
Programming Language :: Python :: Implementation :: CPython
2625
Programming Language :: Python :: Implementation :: PyPy
2726
Topic :: Software Development :: Testing
28-
test_suite = tests
2927

30-
[files]
28+
[options]
3129
packages = requests_mock
32-
package-data = requests_mock = py.typed, *.pyi
30+
include_package_data = true
31+
install_requires =
32+
requests>=2.22,<3
33+
six
3334

3435
[build_sphinx]
3536
all_files = 1
@@ -39,11 +40,11 @@ source-dir = doc/source
3940
[bdist_wheel]
4041
universal = 1
4142

42-
[extras]
43+
[options.extras_require]
4344
fixture =
4445
fixtures
4546

46-
[entry_points]
47+
[options.entry_points]
4748
pytest11 =
4849
requests_mock = requests_mock.contrib._pytest_plugin
4950

setup.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

tox.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ commands =
1313
pytest tests/pytest
1414
python -m testtools.run {posargs:discover}
1515
deps =
16-
-r{toxinidir}/requirements.txt
1716
-r{toxinidir}/test-requirements.txt
18-
pbr
1917

2018
[testenv:pep8]
2119
commands = flake8 requests_mock tests

0 commit comments

Comments
 (0)