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

Bug in PypiVersionRange #129

Open
TG1999 opened this issue Jan 19, 2024 · 1 comment
Open

Bug in PypiVersionRange #129

TG1999 opened this issue Jan 19, 2024 · 1 comment

Comments

@TG1999
Copy link
Member

TG1999 commented Jan 19, 2024

>>> range = PypiVersionRange.from_native("<1.4.11")
>>> version = PypiVersion("1.1")
>>> version in range
True
>>> range = PypiVersionRange.from_native(">=1.1.0,<1.4.11")
>>> version in range
False
>>> range
PypiVersionRange(constraints=(VersionConstraint(comparator='>=', version=PypiVersion(string='1.1.0')), VersionConstraint(comparator='<', version=PypiVersion(string='1.4.11'))))
>>> range = PypiVersionRange.from_native(">=1.1,<1.4.11")
>>> version in range
True
@35C4n0r
Copy link

35C4n0r commented Jan 20, 2024

@TG1999
I tried to reproduce this

>>> range = PypiVersionRange.from_native(">=1.1.0,<1.4.11")
>>> version = PypiVersion("1.1")
>>> version in range
True
>>> range
PypiVersionRange(constraints=(VersionConstraint(comparator='>=', version=PypiVersion(string='1.1.0')), VersionConstraint(comparator='<', version=PypiVersion(string='1.4.11'))))

Which version of univers are you using?

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

2 participants