Commit f169b487 by Sébastien Eustace

Fix typo and references to poetry.toml/.lock files

parent 03ade36c
......@@ -12,7 +12,7 @@ from .venv_command import VenvCommand
class AddCommand(VenvCommand):
"""
Add a new depdency to <comment>poetry.toml</>.
Add a new dependency 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>poetry.toml</> and installs them.
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.
"""
......@@ -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 poetry.toml '
'Addition failed, reverting pyproject.toml '
'to its original content.'
)
......
......@@ -15,10 +15,10 @@ class InstallCommand(VenvCommand):
(multiple values allowed). }
"""
help = """The <info>install</info> command reads the <comment>poetry.lock</> file from
help = """The <info>install</info> command reads the <comment>pyproject.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>poetry.toml</> and do the same.
exist it will look for <comment>pyproject.toml</> and do the same.
<info>poetry install</info>
"""
......
......@@ -10,8 +10,8 @@ class LockCommand(VenvCommand):
lock
"""
help = """The <info>lock</info> command reads the <comment>poetry.toml</> file from
the current directory, processes it, and locks the depdencies in the <comment>poetry.lock</> file.
help = """The <info>lock</info> command reads the <comment>pyproject.toml</> file from
the current directory, processes it, and locks the depdencies in the <comment>pyproject.lock</> file.
<info>poetry lock</info>
"""
......
......@@ -76,7 +76,7 @@ list of installed packages
if not self.option('dry-run'):
self.error(
'\n'
'Removal failed, reverting poetry.toml '
'Removal failed, reverting pyproject.toml '
'to its original content.'
)
......
......@@ -5,7 +5,7 @@ from .venv_command import VenvCommand
class UpdateCommand(VenvCommand):
"""
Update dependencies as according to the <comment>poetry.toml</> file.
Update dependencies as according to the <comment>pyproject.toml</> file.
update
{ packages?* : The packages to update. }
......
......@@ -40,11 +40,11 @@ class Provider(SpecificationProvider):
@property
def name_for_explicit_dependency_source(self) -> str:
return 'poetry.toml'
return 'pyproject.toml'
@property
def name_for_locking_dependency_source(self) -> str:
return 'poetry.lock'
return 'pyproject.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 / 'poetry.toml')
poetry = TomlFile(tmp_dir / 'pyproject.toml')
if poetry.exists():
# If a poetry.toml file exists
# If a pyproject.toml file exists
# We use it to get the information we need
info = poetry.read()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment