Skip to content

fix (utils.patterns): recognize one digit version in filename#3338

Merged
kasteph merged 1 commit into
python-poetry:1.1from
finswimmer:issue/3320-wheel-file-re
Mar 30, 2021
Merged

fix (utils.patterns): recognize one digit version in filename#3338
kasteph merged 1 commit into
python-poetry:1.1from
finswimmer:issue/3320-wheel-file-re

Conversation

@finswimmer

Copy link
Copy Markdown
Member

The current regex for wheel filename doesn't recognize one digit versions in the filename. This PR fixes this.

Furthermore the current regex makes the version part in the wheel name optional. According to PEP 491 this part is mandatory. This is fixed by this PR as well.

Feel free to provide more filenames for the tests :)

Pull Request Check List

Resolves: #3320

  • Added tests for changed code.
  • Updated documentation for changed code.

@finswimmer finswimmer requested a review from a team November 7, 2020 14:49
jedie
jedie previously approved these changes Nov 11, 2020
abn
abn previously requested changes Nov 19, 2020

@abn abn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Minor recommendation to make things a bit more explicit.

Comment thread tests/utils/test_patterns.py
fix (utils.patterns): version part in filename must be present according PEP491
@finswimmer finswimmer force-pushed the issue/3320-wheel-file-re branch from d5f7944 to 959d2cd Compare February 14, 2021 20:26
@github-actions

github-actions Bot commented Mar 1, 2024

Copy link
Copy Markdown

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.

6 participants