Skip to content

Commit

Permalink
Add 'rc' to VERSION_REGEX
Browse files Browse the repository at this point in the history
The previous VERSION_REGEX string only checks for 'RC', however, the
latest RC submitted to the poetry project is '1.1.0rc1' which fails the
regex test for allowing installation of PREVIEW releases.

fixes: #2977
  • Loading branch information
adawalli authored and abn committed Sep 25, 2020
1 parent 977832e commit fa0881d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get-poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ class Installer:
r"v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:\.(\d+))?"
"("
"[._-]?"
r"(?:(stable|beta|b|RC|alpha|a|patch|pl|p)((?:[.-]?\d+)*)?)?"
r"(?:(stable|beta|b|rc|RC|alpha|a|patch|pl|p)((?:[.-]?\d+)*)?)?"
"([.-]?dev)?"
")?"
r"(?:\+[^\s]+)?"
Expand Down

0 comments on commit fa0881d

Please sign in to comment.