Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyrsistent install fails on py2.7 #20

Merged
merged 1 commit into from Feb 3, 2021

Conversation

crungehottman
Copy link
Member

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.

[1] tobgu/pyrsistent#208

Copy link
Member

@rohanpm rohanpm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we please use a constraints file instead? Here's an example how we solve this kind of problem in another project:

The advantage is that you end up only using the older version of the dependency for the python version which actually needs it, while other configs are still able to use latest released versions. It helps ensure that the code is able to work with both old and modern versions of deps rather than just one or the other.

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
Copy link
Member

@rohanpm rohanpm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be working - there is still a CI failure in 'static' tests, but that's a different root cause.

@rohanpm rohanpm merged commit 50c7d6e into release-engineering:master Feb 3, 2021
@crungehottman crungehottman deleted the pyrsistent branch February 3, 2021 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants