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
cdda1393
Unverified
Commit
cdda1393
authored
Feb 27, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add possibility to update specific packages
parent
408eef79
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
poetry/console/commands/update.py
+6
-2
poetry/installation/installer.py
+1
-1
No files found.
poetry/console/commands/update.py
View file @
cdda1393
...
@@ -10,20 +10,24 @@ class UpdateCommand(Command):
...
@@ -10,20 +10,24 @@ class UpdateCommand(Command):
update
update
{ packages?* : The packages to update. }
{ packages?* : The packages to update. }
{ --f|features=* : Features to install. }
{ --no-dev : Do not install dev dependencies. }
{ --no-dev : Do not install dev dependencies. }
{ --dry-run : Outputs the operations but will not execute anything
{ --dry-run : Outputs the operations but will not execute anything
(implicitly enables --verbose). }
(implicitly enables --verbose). }
"""
"""
def
handle
(
self
):
def
handle
(
self
):
packages
=
self
.
argument
(
'packages'
)
installer
=
Installer
(
installer
=
Installer
(
self
.
output
,
self
.
output
,
self
.
poetry
.
package
,
self
.
poetry
.
package
,
self
.
poetry
.
locker
,
self
.
poetry
.
locker
,
PyPiRepository
()
self
.
poetry
.
repository
)
)
if
packages
:
installer
.
whitelist
({
name
:
'*'
for
name
in
packages
})
installer
.
dev_mode
(
not
self
.
option
(
'no-dev'
))
installer
.
dev_mode
(
not
self
.
option
(
'no-dev'
))
installer
.
dry_run
(
self
.
option
(
'dry-run'
))
installer
.
dry_run
(
self
.
option
(
'dry-run'
))
...
...
poetry/installation/installer.py
View file @
cdda1393
...
@@ -227,7 +227,7 @@ class Installer:
...
@@ -227,7 +227,7 @@ class Installer:
self
.
_installer
.
install
(
operation
.
package
)
self
.
_installer
.
install
(
operation
.
package
)
def
_execute_update
(
self
,
operation
:
Update
)
->
None
:
def
_execute_update
(
self
,
operation
:
Update
)
->
None
:
source
=
operation
.
target
_package
source
=
operation
.
initial
_package
target
=
operation
.
target_package
target
=
operation
.
target_package
if
self
.
_execute_operations
or
self
.
is_dry_run
():
if
self
.
_execute_operations
or
self
.
is_dry_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