Skip to content

Commit

Permalink
Update version regex according to latest packaging version
Browse files Browse the repository at this point in the history
According to `pypa/packaging#705`.
  • Loading branch information
abravalheri committed Feb 9, 2024
1 parent 2ae3a87 commit 2a3789f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validate_pyproject/formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
(?P<release>[0-9]+(?:\.[0-9]+)*) # release segment
(?P<pre> # pre-release
[-_\.]?
(?P<pre_l>(a|b|c|rc|alpha|beta|pre|preview))
(?P<pre_l>alpha|a|beta|b|preview|pre|c|rc)
[-_\.]?
(?P<pre_n>[0-9]+)?
)?
Expand Down

0 comments on commit 2a3789f

Please sign in to comment.