"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "poetry/console/commands/debug/info.py" between
poetry-1.1.15.tar.gz and poetry-1.2.0.tar.gz

About: Poetry is a tool for dependency management and packaging in Python.

info.py  (poetry-1.1.15):info.py  (poetry-1.2.0)
import sys from __future__ import annotations
from clikit.args import StringArgs import sys
from ..command import Command from poetry.console.commands.command import Command
class DebugInfoCommand(Command): class DebugInfoCommand(Command):
name = "debug info"
name = "info"
description = "Shows debug information." description = "Shows debug information."
def handle(self): def handle(self) -> int:
poetry_python_version = ".".join(str(s) for s in sys.version_info[:3]) poetry_python_version = ".".join(str(s) for s in sys.version_info[:3])
self.line("") self.line("")
self.line("<b>Poetry</b>") self.line("<b>Poetry</b>")
self.line( self.line(
"\n".join( "\n".join(
[ [
"<info>Version</info>: <comment>{}</>".format(self.poetry.VE f"<info>Version</info>: <comment>{self.poetry.VERSION}</>",
RSION), f"<info>Python</info>: <comment>{poetry_python_version}</>"
"<info>Python</info>: <comment>{}</>".format( ,
poetry_python_version
),
] ]
) )
) )
args = StringArgs("") command = self.application.get("env info")
command = self.application.get_command("env").get_sub_command("info")
return command.run(args, self._io) exit_code: int = command.run(self.io)
return exit_code
 End of changes. 8 change blocks. 
13 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)