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
6485bc23
Commit
6485bc23
authored
Mar 08, 2022
by
finswimmer
Committed by
Arun Babu Neelicattu
Mar 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show poetry and poetry-core version in output of `poetry about`
parent
b06658f9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
src/poetry/console/commands/about.py
+7
-2
tests/console/commands/test_about.py
+7
-1
No files found.
src/poetry/console/commands/about.py
View file @
6485bc23
...
...
@@ -10,9 +10,14 @@ class AboutCommand(Command):
description
=
"Shows information about Poetry."
def
handle
(
self
)
->
None
:
from
poetry.utils._compat
import
metadata
self
.
line
(
"""
\
<info>Poetry - Package Management for Python</info>
f
"""
\
<info>Poetry - Package Management for Python
Version: {metadata.version('poetry')}
Poetry-Core Version: {metadata.version('poetry-core')}</info>
<comment>Poetry is a dependency manager tracking local dependencies of your projects
\
and libraries.
...
...
tests/console/commands/test_about.py
View file @
6485bc23
...
...
@@ -17,10 +17,16 @@ def tester(command_tester_factory: CommandTesterFactory) -> CommandTester:
def
test_about
(
tester
:
CommandTester
):
from
poetry.utils._compat
import
metadata
tester
.
execute
()
expected
=
"""
\
expected
=
f
"""
\
Poetry - Package Management for Python
Version: {metadata.version('poetry')}
Poetry-Core Version: {metadata.version('poetry-core')}
Poetry is a dependency manager tracking local dependencies of your projects and
\
libraries.
See https://github.com/python-poetry/poetry for more information.
...
...
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