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
ee9b8000
Commit
ee9b8000
authored
Oct 08, 2018
by
Grey Baker
Committed by
Sébastien Eustace
Oct 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a --lock option to poetry update (#389)
parent
b546a1b3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
README.md
+2
-0
docs/docs/cli.md
+2
-0
poetry/console/commands/update.py
+2
-0
No files found.
README.md
View file @
ee9b8000
...
@@ -364,6 +364,8 @@ poetry update requests toml
...
@@ -364,6 +364,8 @@ poetry update requests toml
#### Options
#### Options
*
`--dry-run`
: Outputs the operations but will not execute anything (implicitly enables --verbose).
*
`--dry-run`
: Outputs the operations but will not execute anything (implicitly enables --verbose).
*
`--no-dev`
: Do not install dev dependencies.
*
`--lock`
: Do not perform install (only update the lockfile).
### add
### add
...
...
docs/docs/cli.md
View file @
ee9b8000
...
@@ -149,6 +149,8 @@ poetry update requests toml
...
@@ -149,6 +149,8 @@ poetry update requests toml
### Options
### Options
*
`--dry-run`
: Outputs the operations but will not execute anything (implicitly enables --verbose).
*
`--dry-run`
: Outputs the operations but will not execute anything (implicitly enables --verbose).
*
`--no-dev`
: Do not install dev dependencies.
*
`--lock`
: Do not perform install (only update the lockfile).
## add
## add
...
...
poetry/console/commands/update.py
View file @
ee9b8000
...
@@ -10,6 +10,7 @@ class UpdateCommand(EnvCommand):
...
@@ -10,6 +10,7 @@ class UpdateCommand(EnvCommand):
{ --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). }
{ --lock : Do not perform install (only update the lockfile). }
"""
"""
_loggers
=
[
"poetry.repositories.pypi_repository"
]
_loggers
=
[
"poetry.repositories.pypi_repository"
]
...
@@ -32,6 +33,7 @@ class UpdateCommand(EnvCommand):
...
@@ -32,6 +33,7 @@ class UpdateCommand(EnvCommand):
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"
))
installer
.
execute_operations
(
not
self
.
option
(
"lock"
))
# Force update
# Force update
installer
.
update
(
True
)
installer
.
update
(
True
)
...
...
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