Skip to content

Commit dd9e040

Browse files
committed
Drop spurious setup requirements
Since setuptools 46.4.0 (May 2020), `attr:` are statically extracted using the `ast` module if possible: pypa/setuptools#1753
1 parent 15097fe commit dd9e040

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
# Minimum requirements for the build system to execute.
3-
requires = ["setuptools", "wheel"] # PEP 508 specifications.
3+
requires = ["setuptools>=46.4.0", "wheel"] # PEP 508 specifications.
44

55
# Actually tell PEP517 tools to call setuptools
66
build-backend = "setuptools.build_meta"

setup.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ def requirements(section=None):
1515

1616
# See setup.cfg for the actual configuration.
1717
setup(
18-
# setup needs to be able to import the library, for attr: to work
19-
setup_requires=requirements() + ['pytest-runner'],
18+
setup_requires=['pytest-runner'],
2019
install_requires=requirements(),
2120
tests_require=requirements('tests'),
2221
)

0 commit comments

Comments
 (0)