Skip to content

Fix requirement string parsing for URLs#2344

Closed
simonepri wants to merge 1 commit into
python-poetry:masterfrom
simonepri:patch-1
Closed

Fix requirement string parsing for URLs#2344
simonepri wants to merge 1 commit into
python-poetry:masterfrom
simonepri:patch-1

Conversation

@simonepri
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

@abn Which regex shall we use as a fix?

@abn
Copy link
Copy Markdown
Member

abn commented Apr 25, 2020

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

@simonepri
Copy link
Copy Markdown
Contributor Author

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

@simonepri simonepri closed this Apr 25, 2020
@github-actions
Copy link
Copy Markdown

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