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
8d8822ed
Unverified
Commit
8d8822ed
authored
Jun 01, 2020
by
finswimmer
Committed by
GitHub
Jun 01, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2375 from PetterS/simplity_printing
Simplify printing package operations
parents
abee30f0
a60dcf0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
27 deletions
+16
-27
poetry/installation/installer.py
+16
-27
No files found.
poetry/installation/installer.py
View file @
8d8822ed
...
...
@@ -255,30 +255,19 @@ class Installer:
self
.
_io
.
write_line
(
"No dependencies to install or update"
)
if
actual_ops
and
(
self
.
_execute_operations
or
self
.
_dry_run
):
installs
=
[]
updates
=
[]
uninstalls
=
[]
skipped
=
[]
installs
=
0
updates
=
0
uninstalls
=
0
skipped
=
0
for
op
in
ops
:
if
op
.
skipped
:
skipped
.
append
(
op
)
continue
if
op
.
job_type
==
"install"
:
installs
.
append
(
"{}:{}"
.
format
(
op
.
package
.
pretty_name
,
op
.
package
.
full_pretty_version
)
)
skipped
+=
1
elif
op
.
job_type
==
"install"
:
installs
+=
1
elif
op
.
job_type
==
"update"
:
updates
.
append
(
"{}:{}"
.
format
(
op
.
target_package
.
pretty_name
,
op
.
target_package
.
full_pretty_version
,
)
)
updates
+=
1
elif
op
.
job_type
==
"uninstall"
:
uninstalls
.
append
(
op
.
package
.
pretty_name
)
uninstalls
+=
1
self
.
_io
.
write_line
(
""
)
self
.
_io
.
write_line
(
...
...
@@ -287,13 +276,13 @@ class Installer:
"<info>{}</> update{}, "
"<info>{}</> removal{}"
"{}"
.
format
(
len
(
installs
)
,
""
if
len
(
installs
)
==
1
else
"s"
,
len
(
updates
)
,
""
if
len
(
updates
)
==
1
else
"s"
,
len
(
uninstalls
)
,
""
if
len
(
uninstalls
)
==
1
else
"s"
,
", <info>{}</> skipped"
.
format
(
len
(
skipped
)
)
installs
,
""
if
installs
==
1
else
"s"
,
updates
,
""
if
updates
==
1
else
"s"
,
uninstalls
,
""
if
uninstalls
==
1
else
"s"
,
", <info>{}</> skipped"
.
format
(
skipped
)
if
skipped
and
self
.
is_verbose
()
else
""
,
)
...
...
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