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

Fix prerelease detection for > and < #794

Merged

Conversation

notatallshaw
Copy link
Member

@notatallshaw notatallshaw commented Apr 13, 2024

Fixes #788

And adds an explicit test for != based on #776 (comment)

@notatallshaw
Copy link
Member Author

Feedback would be appreciated.

@uranusjr
Copy link
Member

And adds an explicit test for !=

Is this for another PR? I don’t see the change here.

@notatallshaw
Copy link
Member Author

notatallshaw commented May 20, 2024

And adds an explicit test for !=

Is this for another PR? I don’t see the change here.

It's in this PR, it's in the change to tests/test_specifiers.py

@notatallshaw
Copy link
Member Author

I tried to merge branch with 'main' to make sure this PR was still good, but forgot I don't have automatic CI rights, if someone could approve CI run I'd be appreciative.

@notatallshaw
Copy link
Member Author

Anything blocking this? Do I need to do anything for a changelog entry here?

@pradyunsg pradyunsg force-pushed the fix-prerelease-detection-for->-and-< branch from d70d341 to a0e7b90 Compare August 4, 2024 22:21
Copy link
Member

@brettcannon brettcannon left a comment

Choose a reason for hiding this comment

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

#788 (comment) has some examples. We probably should have some tests for those.

@notatallshaw notatallshaw force-pushed the fix-prerelease-detection-for->-and-< branch from 0a4eec2 to 42c1f6d Compare August 16, 2024 22:52
@notatallshaw
Copy link
Member Author

#788 (comment) has some examples. We probably should have some tests for those.

Added specifier tests to match.

@notatallshaw notatallshaw force-pushed the fix-prerelease-detection-for->-and-< branch from cf7ad44 to 843c31c Compare August 26, 2024 23:40
@notatallshaw
Copy link
Member Author

notatallshaw commented Aug 26, 2024

The specifics of this came up today in astral-sh/uv#6640

It reminded me to check this PR, it seems there was a transient CI error, I added some more tests (and after correcting them) the transient CI error vanished.

@brettcannon
Copy link
Member

I'm going to give @pradyunsg a chance to (dis)agree to the semantic change before I merge.

@brettcannon brettcannon merged commit cf2cbe2 into pypa:main Sep 16, 2024
32 checks passed
@brettcannon
Copy link
Member

Thanks, @notatallshaw !

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.

Specifier < that contains prerelease version does not match on valid prerelease versions
4 participants