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

Python version strings may include semicolon followed by version definition #85

Open
dometto opened this issue Oct 25, 2022 · 0 comments

Comments

@dometto
Copy link
Contributor

dometto commented Oct 25, 2022

Fix this regex to accommodate possible use of semicolons in a python version string, followed by a version string. This use is documented here, e.g.:

requests [security,tests] >= 2.8.1, == 2.8.* ; python_version < "2.7"

This generates currently unhandled edge cases like the following:

requests == 2.8.* ; python_version < "2.7"

In this case, < "2.7" would be interpreted as the second of a pair of version constraints for the dependency, due to this.

I am also no sure that were are currently correctly handling the brackted element in requests [security, tests].

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

No branches or pull requests

1 participant