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 requirement string parsing for URLs #2344

Closed
wants to merge 1 commit into from
Closed

Fix requirement string parsing for URLs #2344

wants to merge 1 commit into from

Conversation

simonepri
Copy link
Contributor

@simonepri simonepri commented Apr 24, 2020

Resolves: #2326

If we want support url containing the ; character, we can use the following regex instead:

((?!; )(?!;^)(?! ).)+

@abn
Copy link
Member

abn commented Apr 25, 2020

@simonepri looks like this also will affect packaging.

https://github.com/pypa/packaging/blob/61672bf9f507f38e84ce2786a1c42f55fa0a3153/packaging/requirements.py#L45-L46

Also, would be great to get this also submitted to python-poetry/core, since this will need to be fixed for develop too.

Copy link
Member

@abn abn left a comment

Choose a reason for hiding this comment

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

Can you add some test coverage for this so we do not regress on this one?

@simonepri
Copy link
Contributor Author

@abn Which regex shall we use as a fix?

@abn
Copy link
Member

abn commented Apr 25, 2020

@simonepri see #2326 (comment) I think we can fix this in the utils.

@simonepri
Copy link
Contributor Author

Closing in favour of python-poetry/poetry-core#30 and #2349

@simonepri simonepri closed this Apr 25, 2020
Copy link

github-actions bot commented Mar 1, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[InvalidRequirement] Invalid requirement, parse error at "'extra =='"
2 participants