Skip to content

VERSION_PATTERN does not match python alpha version #4021

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

Closed
3 tasks done
jouve opened this issue May 1, 2021 · 1 comment
Closed
3 tasks done

VERSION_PATTERN does not match python alpha version #4021

jouve opened this issue May 1, 2021 · 1 comment
Labels
kind/bug Something isn't working as expected

Comments

@jouve
Copy link
Contributor

jouve commented May 1, 2021

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: os x catalina
  • Poetry version: 1.1.6
  • Link of a Gist with the contents of your pyproject.toml file: does not matter

Issue

poetry uses https://github.com/python-poetry/poetry-core/blob/d3e51399d1f637ad3e52ff731625d466dedeb64b/poetry/core/version/pep440/parser.py to parse python version.

some alpha tags do not match the regex : https://github.com/python/cpython/blob/master/Include/patchlevel.h#L26

the specific part is the + at the end of 3.10.0a7+.

I asked about it at bugs.python.org:

PEP 440 applies to Python packages, not to CPython itself. The "+" convention has been used in CPython for a long time, and changing it without a strong justification seems risky.

If you consider this is not worth the effort (ie. running poetry with alpha python version), then you can close the issue :)

@jouve jouve added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels May 1, 2021
@jouve jouve closed this as completed May 1, 2021
@abn abn removed the status/triage This issue needs to be triaged label Mar 3, 2022
Copy link

github-actions bot commented Mar 2, 2024

This issue 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 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

2 participants