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
5ac97944
Unverified
Commit
5ac97944
authored
May 01, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix self:update command
parent
0d9aa17e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
CHANGELOG.md
+1
-0
poetry/console/commands/self/update.py
+5
-2
No files found.
CHANGELOG.md
View file @
5ac97944
...
...
@@ -18,6 +18,7 @@
### Fixed
-
Fixed handling of extras when resolving dependencies.
-
Fixed
`self:update`
command for some installation.
## [0.8.6] - 2018-04-30
...
...
poetry/console/commands/self/update.py
View file @
5ac97944
...
...
@@ -29,7 +29,7 @@ class SelfUpdateCommand(Command):
version
=
'>='
+
__version__
repo
=
PyPiRepository
(
fallback
=
False
)
packages
=
repo
.
find_packages
(
'poetry'
,
version
)
packages
=
repo
.
find_packages
(
'poetry'
,
version
,
allow_prereleases
=
self
.
option
(
'preview'
)
)
if
not
packages
:
self
.
line
(
'No release found for the specified version'
)
return
...
...
@@ -99,7 +99,10 @@ class SelfUpdateCommand(Command):
elif
real_prefix
:
pip
=
Path
(
real_prefix
)
/
'bin'
/
'pip'
else
:
raise
RuntimeError
(
'Unable to determine poetry
\'
s path'
)
pip
=
Path
(
prefix
)
/
'bin'
/
'pip'
if
not
pip
.
exists
():
raise
RuntimeError
(
'Unable to determine poetry
\'
s path'
)
with
temporary_directory
(
prefix
=
'poetry-update-'
)
as
temp_dir
:
temp_dir
=
Path
(
temp_dir
)
...
...
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