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

Improve error for local version label with unsupported operators #675

Merged
merged 1 commit into from
Feb 1, 2023

Conversation

pradyunsg
Copy link
Member

This makes it clearer why the failure happens the way it happened.

Before:

packaging.requirements.InvalidRequirement: Expected end or semicolon (after version specifier)
    foo >= 1.0+local
        ~~~~~~^

After:

packaging.requirements.InvalidRequirement: Local version label can only be used with `==` or `!=` operators
    foo >= 1.0+local
        ~~~~~~^

This makes it clearer why the failure happens the way it happened.
@pradyunsg pradyunsg force-pushed the better-local-version-label-error branch from 7477eba to c8cf83e Compare January 31, 2023 20:09
@pradyunsg pradyunsg merged commit 96d85be into pypa:main Feb 1, 2023
@pradyunsg pradyunsg deleted the better-local-version-label-error branch February 1, 2023 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants