Skip to content

Commit

Permalink
Update requirements (#11)
Browse files Browse the repository at this point in the history
* [x] Use setuptools compatibility list from OpenStack
* [x] six >=1.10.0
* [x] Python >= 2.7.5 (drop pre-historic)
* [x] dep-graph check made really simple
  • Loading branch information
penguinolog authored May 25, 2018
1 parent ea46ed9 commit ce92079
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
# Minimum requirements for the build system to execute.
# PEP 508 specifications for PEP 518.
requires = [
"setuptools > 20.2 ",
"setuptools >= 21.0.0,!=24.0.0,!=34.0.0,!=34.0.1,!=34.0.2,!=34.0.3,!=34.1.0,!=34.1.1,!=34.2.0,!=34.3.0,!=34.3.1,!=34.3.2,!=36.2.0", # PSF/ZPL
"wheel",
]
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
six >=1.9
six >=1.10.0
typing >= 3.6 ; python_version < "3.7"
11 changes: 9 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
[options]
zip_safe = False
packages = find:

# While setuptools cannot deal with pre-installed incompatible versions,
# setting a lower bound is not harmful - it makes error messages cleaner. DO
# NOT set an upper bound on setuptools, as that will lead to uninstallable
# situations as progressive releases of projects are done.
# Blacklist setuptools 34.0.0-34.3.2 due to https://github.com/pypa/setuptools/issues/951
# Blacklist setuptools 36.2.0 due to https://github.com/pypa/setuptools/issues/1086
setup_requires =
setuptools > 20.2
setuptools >= 21.0.0,!=24.0.0,!=34.0.0,!=34.0.1,!=34.0.2,!=34.0.3,!=34.1.0,!=34.1.1,!=34.2.0,!=34.3.0,!=34.3.1,!=34.3.2,!=36.2.0

python_requires = >=2.6,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*
python_requires = >=2.7.5,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*

[bdist_wheel]
# This flag says that the code is written to work on both Python 2 and Python
Expand Down
8 changes: 3 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@ deps = bandit
commands = bandit -r advanced_descriptors

[testenv:dep-graph]
envdir = {toxworkdir}/dep-graph
deps =
pipenv
commands =
pipenv install -r {toxinidir}/build_requirements.txt --skip-lock
pipenv graph
.
pipdeptree
commands = pipdeptree

0 comments on commit ce92079

Please sign in to comment.