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 ...@@ -12,7 +12,7 @@ from .venv_command import VenvCommand
class AddCommand(VenvCommand): class AddCommand(VenvCommand):
""" """
Add a new depdency to <comment>poetry.toml</>. Add a new dependency 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>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. 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 poetry.toml ' 'Addition failed, reverting pyproject.toml '
'to its original content.' 'to its original content.'
) )
......
...@@ -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>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 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>poetry.toml</> and do the same. exist it will look for <comment>pyproject.toml</> and do the same.
<info>poetry install</info> <info>poetry install</info>
""" """
......
...@@ -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>poetry.toml</> file from 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>poetry.lock</> file. the current directory, processes it, and locks the depdencies in the <comment>pyproject.lock</> file.
<info>poetry lock</info> <info>poetry lock</info>
""" """
......
...@@ -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 poetry.toml ' 'Removal failed, reverting pyproject.toml '
'to its original content.' 'to its original content.'
) )
......
...@@ -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>poetry.toml</> file. Update dependencies as according to the <comment>pyproject.toml</> file.
update update
{ packages?* : The packages to update. } { packages?* : The packages to update. }
......
...@@ -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 'poetry.toml' return 'pyproject.toml'
@property @property
def name_for_locking_dependency_source(self) -> str: def name_for_locking_dependency_source(self) -> str:
return 'poetry.lock' return 'pyproject.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 / 'poetry.toml') poetry = TomlFile(tmp_dir / 'pyproject.toml')
if poetry.exists(): if poetry.exists():
# If a poetry.toml file exists # If a pyproject.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()
......
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