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
d09cfce7
Commit
d09cfce7
authored
Apr 16, 2020
by
Bjorn Neergaard
Committed by
Arun Babu Neelicattu
Apr 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve tildes in `self update`, add help text to get-poetry.py
parent
5e70eb8d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
8 deletions
+26
-8
get-poetry.py
+25
-6
poetry/console/commands/self/update.py
+1
-2
No files found.
get-poetry.py
View file @
d09cfce7
...
...
@@ -946,24 +946,43 @@ def main():
description
=
"Installs the latest (or given) version of poetry"
)
parser
.
add_argument
(
"-p"
,
"--preview"
,
dest
=
"preview"
,
action
=
"store_true"
,
default
=
False
"-p"
,
"--preview"
,
help
=
"install preview version"
,
dest
=
"preview"
,
action
=
"store_true"
,
default
=
False
,
)
parser
.
add_argument
(
"--version"
,
dest
=
"version"
)
parser
.
add_argument
(
"--version"
,
help
=
"install named version"
,
dest
=
"version"
)
parser
.
add_argument
(
"-f"
,
"--force"
,
dest
=
"force"
,
action
=
"store_true"
,
default
=
False
"-f"
,
"--force"
,
help
=
"install on top of existing version"
,
dest
=
"force"
,
action
=
"store_true"
,
default
=
False
,
)
parser
.
add_argument
(
"-P"
,
"--no-modify-path"
,
help
=
"do not modify $PATH"
,
dest
=
"no_modify_path"
,
action
=
"store_true"
,
default
=
False
,
)
parser
.
add_argument
(
"-y"
,
"--yes"
,
dest
=
"accept_all"
,
action
=
"store_true"
,
default
=
False
"-y"
,
"--yes"
,
help
=
"accept all prompts"
,
dest
=
"accept_all"
,
action
=
"store_true"
,
default
=
False
,
)
parser
.
add_argument
(
"--uninstall"
,
dest
=
"uninstall"
,
action
=
"store_true"
,
default
=
False
"--uninstall"
,
help
=
"uninstall poetry"
,
dest
=
"uninstall"
,
action
=
"store_true"
,
default
=
False
,
)
parser
.
add_argument
(
"--file"
,
...
...
poetry/console/commands/self/update.py
View file @
d09cfce7
...
...
@@ -37,9 +37,8 @@ class SelfUpdateCommand(Command):
@property
def
home
(
self
):
from
poetry.utils._compat
import
Path
from
poetry.utils.appdirs
import
expanduser
return
Path
(
os
.
environ
.
get
(
"POETRY_HOME"
,
expanduser
(
"~/.poetry"
))
)
return
Path
(
os
.
environ
.
get
(
"POETRY_HOME"
,
"~/.poetry"
))
.
expanduser
(
)
@property
def
lib
(
self
):
...
...
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