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
Install of 6.47.2 fails with pipenv #3374
Comments
I consider this a bug in pipenv, but unfortunately one that we might need to work around downstream too. |
I think the linked code ( |
The reason I mention that the That said, looking at the requirementslib code, it appears that they do not need to be converting all parts of the version to an integer, only the first two. Additionally, they do automatically correct 'python_version' to 'python_full_version' if it includes three version parts, but that only happens after the forced conversion to integers. On a rather amusing note, at the moment you cannot To summarize: requirementslib shouldn't crash on parsing |
It appears that the following line in hypothesis-python/setup.py causes installation with pipenv (2022.6.7) to fail:
hypothesis/hypothesis-python/setup.py
Line 105 in b73d6fd
The pipenv traceback is:
The relevant line in pipenv is attempting to turn all parts of the version into integers: https://github.com/pypa/pipenv/blob/2482e2d3a49fec6830a80606c90c6be9d6bf7946/pipenv/vendor/requirementslib/models/markers.py#L124
I'm not sure the
python_version
marker is intended to support full version numbers including the beta suffix. Looking at https://peps.python.org/pep-0508/ it seems to indicate you'd need to usepython_full_version
to do that, which is perhaps why pipenv is attempting to turn each part of the python_version version string into an integer.The text was updated successfully, but these errors were encountered: