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

Use of the environment-markers #48

Open
VelizarVESSELINOV opened this issue May 9, 2022 · 1 comment
Open

Use of the environment-markers #48

VelizarVESSELINOV opened this issue May 9, 2022 · 1 comment

Comments

@VelizarVESSELINOV
Copy link

Usage of associated python version as a constraint, today pur is ignoring environment markers:

Before:

numpy==1.21.5; python_version<='3.7'

After:

numpy==1.22.3; python_version<='3.7'

Expected as this is the last version that supports Python 3.7:

numpy==1.21.5; python_version<='3.7'
@alanhamlett
Copy link
Owner

Environment markers in a requirement line spec are similar to pypi release candidate requires_python where both are meant to match against a python version tuple, but not meant to be matched against each other.

For ex: A pypi release with requires_python of >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.* and a requirements.txt spec python_version<='3.7' how do we programmatically determine if that release matches python_version<='3.7'?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants