Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pip-deps
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SCS
pip-deps
Commits
4a058ab9
Commit
4a058ab9
authored
6 years ago
by
Marek Chrastina
Browse files
Options
Downloads
Patches
Plain Diff
Tabulate print list
parent
18a4b9e9
No related branches found
No related tags found
1 merge request
!1
Add py script
Pipeline
#8029
passed
6 years ago
Stage: test
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pipdeps/pipdeps.py
+4
-1
4 additions, 1 deletion
pipdeps/pipdeps.py
setup.py
+1
-0
1 addition, 0 deletions
setup.py
with
5 additions
and
1 deletion
pipdeps/pipdeps.py
+
4
−
1
View file @
4a058ab9
...
@@ -9,6 +9,7 @@ import urllib2
...
@@ -9,6 +9,7 @@ import urllib2
import
re
import
re
import
subprocess
import
subprocess
import
sys
import
sys
import
tabulate
import
packaging.specifiers
import
packaging.specifiers
import
packaging.version
import
packaging.version
...
@@ -160,7 +161,9 @@ def main():
...
@@ -160,7 +161,9 @@ def main():
upgradable_packages
=
find_upgradable_packages
(
outdated_packages
,
get_dependencies_tree
())
upgradable_packages
=
find_upgradable_packages
(
outdated_packages
,
get_dependencies_tree
())
if
arguments
.
list
:
if
arguments
.
list
:
if
upgradable_packages
:
if
upgradable_packages
:
print
upgradable_packages
data
=
[[
pkg
[
'
package
'
],
pkg
[
'
installed_version
'
],
pkg
[
'
upgradable_version
'
]]
for
pkg
in
upgradable_packages
]
# pylint: disable=line-too-long
header
=
[
'
package
'
,
'
installed_version
'
,
'
upgradable_version
'
]
print
tabulate
.
tabulate
(
data
,
header
)
sys
.
exit
(
1
)
sys
.
exit
(
1
)
else
:
else
:
print
"
There is nothing to upgrade.
"
print
"
There is nothing to upgrade.
"
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
0
View file @
4a058ab9
...
@@ -31,6 +31,7 @@ setup(
...
@@ -31,6 +31,7 @@ setup(
install_requires
=
[
install_requires
=
[
'
packaging
'
,
'
packaging
'
,
'
pipdeptree
'
,
'
pipdeptree
'
,
'
tabulate
'
,
],
],
entry_points
=
{
entry_points
=
{
'
console_scripts
'
:
[
'
console_scripts
'
:
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment