Skip to content

Commit 35f9d22

Browse files
authored
chore: fix install on python 3.11 due to version regex (#3380)
1 parent 70cf36a commit 35f9d22

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,7 @@ format-jinja = """
234234
{{ base }}{{"-%s"|format(stage) if stage else ""}}{{".%s"|format(revision) if revision else ""}}.dev{{distance}}+g{{commit}}{{"-dirty" if dirty else ""}}
235235
{%- endif -%}
236236
"""
237-
pattern = """
238-
(?x) (?# ignore whitespace)
237+
pattern = """(?x) (?# ignore whitespace)
239238
^v(?P<base>\\d+(\\.\\d+)*) (?# v1.2.3)
240239
(-?((?P<stage>[a-zA-Z0-9]+)?\\.?(?P<revision>(pre|post)\\d+)?))? (?# b0)
241240
(\\+(?P<tagged_metadata>.+))?$ (?# e.g., +linux)

0 commit comments

Comments
 (0)