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
c9be792e
Unverified
Commit
c9be792e
authored
Jun 20, 2020
by
finswimmer
Committed by
GitHub
Jun 20, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2574 from dgnsrekt/master
Adds ways to specify a package to poetry add --help section.
parents
1fb91320
d1786b89
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
poetry/console/commands/add.py
+12
-5
poetry/console/commands/init.py
+1
-1
No files found.
poetry/console/commands/add.py
View file @
c9be792e
...
...
@@ -40,11 +40,18 @@ class AddCommand(EnvCommand, InitCommand):
"Output the operations but do not execute anything (implicitly enables --verbose)."
,
),
]
help
=
"""The add command adds required packages to your <comment>pyproject.toml</> and installs them.
If you do not specify a version constraint, poetry will choose a suitable one based on the available package versions.
"""
help
=
(
"The add command adds required packages to your <comment>pyproject.toml</> and installs them.
\n\n
"
"If you do not specify a version constraint, poetry will choose a suitable one based on the available package versions.
\n\n
"
"You can specify a package in the following forms:
\n
"
" - A single name (<b>requests</b>)
\n
"
" - A name and a constraint (<b>requests@^2.23.0</b>)
\n
"
" - A git url (<b>git+https://github.com/python-poetry/poetry.git</b>)
\n
"
" - A git url with a revision (<b>git+https://github.com/python-poetry/poetry.git#develop</b>)
\n
"
" - A file path (<b>../my-package/my-package.whl</b>)
\n
"
" - A directory (<b>../my-package/</b>)
\n
"
" - A url (<b>https://example.com/packages/my-package-0.1.0.tar.gz</b>)
\n
"
)
loggers
=
[
"poetry.repositories.pypi_repository"
]
...
...
poetry/console/commands/init.py
View file @
c9be792e
...
...
@@ -146,7 +146,7 @@ The <c1>init</c1> command creates a basic <comment>pyproject.toml</> file in the
help_message
=
(
"You can specify a package in the following forms:
\n
"
" - A single name (<b>requests</b>)
\n
"
" - A name and a constraint (<b>requests
^2.23.0</b>)
\n
"
" - A name and a constraint (<b>requests
@
^2.23.0</b>)
\n
"
" - A git url (<b>git+https://github.com/python-poetry/poetry.git</b>)
\n
"
" - A git url with a revision (<b>git+https://github.com/python-poetry/poetry.git#develop</b>)
\n
"
" - A file path (<b>../my-package/my-package.whl</b>)
\n
"
...
...
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