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
Show 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
...
@@ -12,7 +12,7 @@ from .venv_command import VenvCommand
class
AddCommand
(
VenvCommand
):
class
AddCommand
(
VenvCommand
):
"""
"""
Add a new dep
dency to <comment>poetry
.toml</>.
Add a new dep
endency to <comment>pyproject
.toml</>.
add
add
{ name* : Packages to add. }
{ name* : Packages to add. }
...
@@ -22,7 +22,7 @@ class AddCommand(VenvCommand):
...
@@ -22,7 +22,7 @@ class AddCommand(VenvCommand):
(implicitly enables --verbose). }
(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.
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
...
@@ -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'
):
if
not
self
.
option
(
'dry-run'
):
self
.
error
(
self
.
error
(
'
\n
'
'
\n
'
'Addition failed, reverting p
oetry
.toml '
'Addition failed, reverting p
yproject
.toml '
'to its original content.'
'to its original content.'
)
)
...
...
poetry/console/commands/install.py
View file @
f169b487
...
@@ -15,10 +15,10 @@ class InstallCommand(VenvCommand):
...
@@ -15,10 +15,10 @@ class InstallCommand(VenvCommand):
(multiple values allowed). }
(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
the current directory, processes it, and downloads and installs all the
libraries and dependencies outlined in that file. If the file does not
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>
<info>poetry install</info>
"""
"""
...
...
poetry/console/commands/lock.py
View file @
f169b487
...
@@ -10,8 +10,8 @@ class LockCommand(VenvCommand):
...
@@ -10,8 +10,8 @@ class LockCommand(VenvCommand):
lock
lock
"""
"""
help
=
"""The <info>lock</info> command reads the <comment>p
oetry
.toml</> file from
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
oetry
.lock</> file.
the current directory, processes it, and locks the depdencies in the <comment>p
yproject
.lock</> file.
<info>poetry lock</info>
<info>poetry lock</info>
"""
"""
...
...
poetry/console/commands/remove.py
View file @
f169b487
...
@@ -76,7 +76,7 @@ list of installed packages
...
@@ -76,7 +76,7 @@ list of installed packages
if
not
self
.
option
(
'dry-run'
):
if
not
self
.
option
(
'dry-run'
):
self
.
error
(
self
.
error
(
'
\n
'
'
\n
'
'Removal failed, reverting p
oetry
.toml '
'Removal failed, reverting p
yproject
.toml '
'to its original content.'
'to its original content.'
)
)
...
...
poetry/console/commands/update.py
View file @
f169b487
...
@@ -5,7 +5,7 @@ from .venv_command import VenvCommand
...
@@ -5,7 +5,7 @@ from .venv_command import VenvCommand
class
UpdateCommand
(
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
update
{ packages?* : The packages to update. }
{ packages?* : The packages to update. }
...
...
poetry/puzzle/provider.py
View file @
f169b487
...
@@ -40,11 +40,11 @@ class Provider(SpecificationProvider):
...
@@ -40,11 +40,11 @@ class Provider(SpecificationProvider):
@property
@property
def
name_for_explicit_dependency_source
(
self
)
->
str
:
def
name_for_explicit_dependency_source
(
self
)
->
str
:
return
'p
oetry
.toml'
return
'p
yproject
.toml'
@property
@property
def
name_for_locking_dependency_source
(
self
)
->
str
:
def
name_for_locking_dependency_source
(
self
)
->
str
:
return
'p
oetry
.lock'
return
'p
yproject
.lock'
def
name_for
(
self
,
dependency
:
Dependency
)
->
str
:
def
name_for
(
self
,
dependency
:
Dependency
)
->
str
:
"""
"""
...
@@ -101,9 +101,9 @@ class Provider(SpecificationProvider):
...
@@ -101,9 +101,9 @@ class Provider(SpecificationProvider):
if
dependency
.
tag
or
dependency
.
rev
:
if
dependency
.
tag
or
dependency
.
rev
:
revision
=
dependency
.
reference
revision
=
dependency
.
reference
poetry
=
TomlFile
(
tmp_dir
/
'p
oetry
.toml'
)
poetry
=
TomlFile
(
tmp_dir
/
'p
yproject
.toml'
)
if
poetry
.
exists
():
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
# We use it to get the information we need
info
=
poetry
.
read
()
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