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
f89cec94
Unverified
Commit
f89cec94
authored
Oct 15, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update get-poetry.py
parent
dad75f6c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
9 deletions
+25
-9
docs/docs/index.md
+16
-6
get-poetry.py
+9
-3
No files found.
docs/docs/index.md
View file @
f89cec94
...
...
@@ -36,27 +36,37 @@ Open a new shell and type the following:
poetry
--version
```
If you see something like
`Poetry 0.1
1.4
`
then you are ready to use Poetry.
If you see something like
`Poetry 0.1
2.0
`
then you are ready to use Poetry.
If you decide Poetry isn't your thing, you can completely remove it from your system
by running the installer again with the
`--uninstall`
option.
by running the installer again with the
`--uninstall`
option or by setting
the
`POETRY_UNINSTALL`
environment variable before executing the installer.
```
bash
python get-poetry.py
--uninstall
POETRY_UNINSTALL
=
1 python get-poetry.py
```
!!!note
Alternatively, you can download the `get-poetry.py` file and execute it separately.
If you want to install prerelease versions, you can do so by passing `--preview` to `get-poetry.py`:
If you want to install prerelease versions, you can do so by passing `--preview` to `get-poetry.py`
or by using the `POETRY_PREVIEW` environement variable:
```bash
python get-poetry.py --preview
POETRY_PREVIEW=1 python get-poetry.py
```
Similarly, if you want to install a specific version, you can use `--version`:
Similarly, if you want to install a specific version, you can use `--version` or the `POETRY_VERSION`
environment variable:
```bash
python get-poetry.py --version 0.7.0
python get-poetry.py --version 0.12.0
POETRY_VERSION=0.12.0 python get-poetry.py
```
Note that the installer does not support Poetry releases < 12.0.
Note that the installer does not support Poetry releases <
0.
12.0.
### Alternative installation methods (not recommended)
...
...
get-poetry.py
View file @
f89cec94
...
...
@@ -153,6 +153,12 @@ def temporary_directory(*args, **kwargs):
shutil
.
rmtree
(
name
)
def
string_to_bool
(
value
):
value
=
value
.
lower
()
return
value
in
{
"true"
,
"1"
,
"y"
,
"yes"
}
def
expanduser
(
path
):
"""
Expand ~ and ~user constructions.
...
...
@@ -809,12 +815,12 @@ def main():
installer
=
Installer
(
version
=
args
.
version
or
os
.
getenv
(
"POETRY_VERSION"
),
preview
=
args
.
preview
or
os
.
getenv
(
"POETRY_PREVIEW"
),
preview
=
args
.
preview
or
string_to_bool
(
os
.
getenv
(
"POETRY_PREVIEW"
,
"0"
)
),
force
=
args
.
force
,
accept_all
=
args
.
accept_all
,
accept_all
=
args
.
accept_all
or
string_to_bool
(
os
.
getenv
(
"POETRY_ACCEPT"
,
"0"
))
,
)
if
args
.
uninstall
:
if
args
.
uninstall
or
string_to_bool
(
os
.
getenv
(
"POETRY_UNINSTALL"
,
"0"
))
:
return
installer
.
uninstall
()
return
installer
.
run
()
...
...
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