Skip to content

Commit

Permalink
pyrsistent install fails on py2.7
Browse files Browse the repository at this point in the history
The python2.7 installation of pyresistent (a jsonschema dependency)
fails with the following error message:

"pyrsistent requires Python '>=3.5' but the running Python is 2.7.15"

Pyrsistent reportedly dropped python2.7 support [1]. Py2.7 installs
of jsonschema must pin the latest pyresistent version with python2.7
support (pyrsistent-0.16.1) to avoid an installation error.

This commit also introduces the constraints-legacy.txt file, which
contains dependencies specific to python2.7.

[1] tobgu/pyrsistent#208
  • Loading branch information
crungehottman committed Feb 2, 2021
1 parent ee15610 commit a2aba3c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions constraints-legacy.txt
@@ -0,0 +1,3 @@
# Oldest supported versions of major libraries can be added to this
# file. They'll be tested with Python 2.7.
pyrsistent==0.16.1
5 changes: 5 additions & 0 deletions tox.ini
Expand Up @@ -6,6 +6,11 @@ deps=-rtest-requirements.txt
commands=pytest -v {posargs}
whitelist_externals=sh

[testenv:py27]
deps=
-cconstraints-legacy.txt
-rtest-requirements.txt

[testenv:static]
deps=
-rtest-requirements.txt
Expand Down

0 comments on commit a2aba3c

Please sign in to comment.