From fa0881d1d4d78c9c27eda17e4d6c97c093741f45 Mon Sep 17 00:00:00 2001 From: Adam Wallis Date: Fri, 25 Sep 2020 13:32:19 -0400 Subject: [PATCH] Add 'rc' to VERSION_REGEX 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: https://github.com/python-poetry/poetry/issues/2977 --- get-poetry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get-poetry.py b/get-poetry.py index 45a062b7e88..0df27239a9b 100644 --- a/get-poetry.py +++ b/get-poetry.py @@ -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]+)?"