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
3a47708c
Commit
3a47708c
authored
May 27, 2022
by
Arun Babu Neelicattu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
self: add lock command
parent
fd95297d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
src/poetry/console/application.py
+1
-0
src/poetry/console/commands/self/lock.py
+17
-0
No files found.
src/poetry/console/application.py
View file @
3a47708c
...
...
@@ -85,6 +85,7 @@ COMMANDS = [
# Self commands
"self add"
,
"self install"
,
"self lock"
,
"self remove"
,
"self update"
,
"self show"
,
...
...
src/poetry/console/commands/self/lock.py
0 → 100644
View file @
3a47708c
from
__future__
import
annotations
from
poetry.console.commands.lock
import
LockCommand
from
poetry.console.commands.self.self_command
import
SelfCommand
class
SelfLockCommand
(
SelfCommand
,
LockCommand
):
name
=
"self lock"
description
=
"Lock the Poetry installation's system requirements."
help
=
f
"""
\
The <c1>self lock</c1> command reads this Poetry installation's system requirements as
\
specified in the <comment>{SelfCommand.get_default_system_pyproject_file()}</> file.
The system dependencies are locked in the <comment>
\
{SelfCommand.get_default_system_pyproject_file().parent.joinpath("poetry.lock")}</>
\
file.
"""
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