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
f169b487
Unverified
Commit
f169b487
authored
Mar 16, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo and references to poetry.toml/.lock files
parent
03ade36c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
13 deletions
+13
-13
poetry/console/commands/add.py
+3
-3
poetry/console/commands/install.py
+2
-2
poetry/console/commands/lock.py
+2
-2
poetry/console/commands/remove.py
+1
-1
poetry/console/commands/update.py
+1
-1
poetry/puzzle/provider.py
+4
-4
No files found.
poetry/console/commands/add.py
View file @
f169b487
...
...
@@ -12,7 +12,7 @@ from .venv_command import VenvCommand
class
AddCommand
(
VenvCommand
):
"""
Add a new dep
dency to <comment>poetry
.toml</>.
Add a new dep
endency to <comment>pyproject
.toml</>.
add
{ name* : Packages to add. }
...
...
@@ -22,7 +22,7 @@ class AddCommand(VenvCommand):
(implicitly enables --verbose). }
"""
help
=
"""The add command adds required packages to your <comment>p
oetry
.toml</> and installs them.
help
=
"""The add command adds required packages to your <comment>p
yproject
.toml</> and installs them.
If you do not specify a version constraint, poetry will choose a suitable one based on the available package versions.
"""
...
...
@@ -88,7 +88,7 @@ If you do not specify a version constraint, poetry will choose a suitable one ba
if
not
self
.
option
(
'dry-run'
):
self
.
error
(
'
\n
'
'Addition failed, reverting p
oetry
.toml '
'Addition failed, reverting p
yproject
.toml '
'to its original content.'
)
...
...
poetry/console/commands/install.py
View file @
f169b487
...
...
@@ -15,10 +15,10 @@ class InstallCommand(VenvCommand):
(multiple values allowed). }
"""
help
=
"""The <info>install</info> command reads the <comment>p
oetry.lock
</> file from
help
=
"""The <info>install</info> command reads the <comment>p
yproject.toml
</> file from
the current directory, processes it, and downloads and installs all the
libraries and dependencies outlined in that file. If the file does not
exist it will look for <comment>p
oetry
.toml</> and do the same.
exist it will look for <comment>p
yproject
.toml</> and do the same.
<info>poetry install</info>
"""
...
...
poetry/console/commands/lock.py
View file @
f169b487
...
...
@@ -10,8 +10,8 @@ class LockCommand(VenvCommand):
lock
"""
help
=
"""The <info>lock</info> command reads the <comment>p
oetry
.toml</> file from
the current directory, processes it, and locks the depdencies in the <comment>p
oetry
.lock</> file.
help
=
"""The <info>lock</info> command reads the <comment>p
yproject
.toml</> file from
the current directory, processes it, and locks the depdencies in the <comment>p
yproject
.lock</> file.
<info>poetry lock</info>
"""
...
...
poetry/console/commands/remove.py
View file @
f169b487
...
...
@@ -76,7 +76,7 @@ list of installed packages
if
not
self
.
option
(
'dry-run'
):
self
.
error
(
'
\n
'
'Removal failed, reverting p
oetry
.toml '
'Removal failed, reverting p
yproject
.toml '
'to its original content.'
)
...
...
poetry/console/commands/update.py
View file @
f169b487
...
...
@@ -5,7 +5,7 @@ from .venv_command import VenvCommand
class
UpdateCommand
(
VenvCommand
):
"""
Update dependencies as according to the <comment>p
oetry
.toml</> file.
Update dependencies as according to the <comment>p
yproject
.toml</> file.
update
{ packages?* : The packages to update. }
...
...
poetry/puzzle/provider.py
View file @
f169b487
...
...
@@ -40,11 +40,11 @@ class Provider(SpecificationProvider):
@property
def
name_for_explicit_dependency_source
(
self
)
->
str
:
return
'p
oetry
.toml'
return
'p
yproject
.toml'
@property
def
name_for_locking_dependency_source
(
self
)
->
str
:
return
'p
oetry
.lock'
return
'p
yproject
.lock'
def
name_for
(
self
,
dependency
:
Dependency
)
->
str
:
"""
...
...
@@ -101,9 +101,9 @@ class Provider(SpecificationProvider):
if
dependency
.
tag
or
dependency
.
rev
:
revision
=
dependency
.
reference
poetry
=
TomlFile
(
tmp_dir
/
'p
oetry
.toml'
)
poetry
=
TomlFile
(
tmp_dir
/
'p
yproject
.toml'
)
if
poetry
.
exists
():
# If a p
oetry
.toml file exists
# If a p
yproject
.toml file exists
# We use it to get the information we need
info
=
poetry
.
read
()
...
...
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