Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
c28728fb
Commit
c28728fb
authored
May 23, 2021
by
Arun Babu Neelicattu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get-poetry: disallow installation of >= 1.2.0a1
Relates-to: #4040
parent
4ec09d4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletions
+28
-1
get-poetry.py
+28
-1
No files found.
get-poetry.py
View file @
c28728fb
...
...
@@ -449,6 +449,33 @@ class Installer:
break
def
_is_supported
(
x
):
mx
=
self
.
VERSION_REGEX
.
match
(
x
)
vx
=
tuple
(
int
(
p
)
for
p
in
mx
.
groups
()[:
3
])
+
(
mx
.
group
(
5
),)
return
vx
<
(
1
,
2
,
0
)
if
not
_is_supported
(
version
):
print
(
colorize
(
"error"
,
f
"Version {version} does not support this installation method. Please specify a version prior to "
f
"1.2.0a1 explicitly using the '--version' option.
\n
"
"Please see "
"https://python-poetry.org/blog/announcing-poetry-1-2-0a1.html#deprecation-of-the-get-poetry-py-script "
"for more information."
,
)
)
return
None
,
None
print
(
colorize
(
"warning"
,
"This installer is deprecated. "
"Poetry versions installed using this script will not be able to use 'self update' command to upgrade to "
"1.2.0a1 or later."
,
)
)
current_version
=
None
if
os
.
path
.
exists
(
POETRY_LIB
):
with
open
(
...
...
@@ -824,7 +851,7 @@ class Installer:
HWND_BROADCAST
,
WM_SETTINGCHANGE
,
0
,
u
"Environment"
,
"Environment"
,
SMTO_ABORTIFHUNG
,
5000
,
ctypes
.
byref
(
result
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment