Skip to content

Commit

Permalink
Move old library versions into a constraints file
Browse files Browse the repository at this point in the history
Cleaner, avoids duplicating dependencies in multiple files.
  • Loading branch information
rohanpm committed Jun 16, 2019
1 parent ea92898 commit 84aeec7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 4 additions & 0 deletions constraints-legacy.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Oldest supported versions of major libraries can be added to this
# file. They'll be tested with Python 2.7.
attrs==17.4.0
jsonschema==2.3.0
12 changes: 5 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ whitelist_externals=sh

[testenv:py27]
deps=
# We'll use the py27 configuration to test some old legacy library
# versions (as needed on py 2.6), since we still need that somewhere
attrs==17.4.0
pytest
jsonschema==2.3.0
requests-mock
mock
# Note: we need to explicitly list requirements.txt here
# so it's processed at the same time as the constraints file
-rrequirements.txt
-cconstraints-legacy.txt
-rtest-requirements.txt

[testenv:static]
deps=
Expand Down

0 comments on commit 84aeec7

Please sign in to comment.