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
0b707db9
Commit
0b707db9
authored
5 years ago
by
Marek Chrastina
Browse files
Options
Downloads
Patches
Plain Diff
Add python safety to CI
parent
d3a5400a
Branches
Branches containing commit
Tags
0.0.6
Tags containing commit
1 merge request
!7
If only bdist is available, check if python_version satisfied python platform version
Pipeline
#11157
passed
5 years ago
Stage: test
Stage: build
Stage: check
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+14
-2
14 additions, 2 deletions
.gitlab-ci.yml
README.md
+1
-1
1 addition, 1 deletion
README.md
pipdeps/pipdeps.py
+1
-1
1 addition, 1 deletion
pipdeps/pipdeps.py
with
16 additions
and
4 deletions
.gitlab-ci.yml
+
14
−
2
View file @
0b707db9
...
...
@@ -48,7 +48,19 @@ build:
-
gitchangelog | sed -r '1,/^# Changelog$/s/^(# Changelog)$/#\1/' >> README.md
-
python setup.py sdist
Install test
:
python safety
:
stage
:
check
image
:
it4innovations/docker-pycheck:latest
before_script
:
-
virtualenv .venv
script
:
-
source .venv/bin/activate
-
pip install --upgrade pip setuptools
-
pip install dist/pipdeps*tar.gz
-
pip list
-
pip freeze | safety check --stdin --full-report
install test
:
stage
:
check
image
:
it4innovations/docker-pypi:latest
before_script
:
...
...
@@ -62,7 +74,7 @@ Install test:
-
pipdeps --table ||
true
-
pipdeps --upgrade
versioncheck
:
version
check
:
stage
:
check
image
:
it4innovations/docker-pypi:latest
before_script
:
...
...
This diff is collapsed.
Click to expand it.
README.md
+
1
−
1
View file @
0b707db9
...
...
@@ -24,7 +24,7 @@ dependencies.
optional arguments:
-h, --help show this help message and exit
-e [EXCLUDE [EXCLUDE ...]], --exclude [EXCLUDE [EXCLUDE ...]]
Comma
separated list of excluded package (and
Space-
separated list of excluded package (and
version). Format package==version or package for all
versions
-l, --list show list of upgradeable packages and versions
...
...
This diff is collapsed.
Click to expand it.
pipdeps/pipdeps.py
+
1
−
1
View file @
0b707db9
...
...
@@ -458,7 +458,7 @@ def get_available_vers(package):
try
:
data
=
get_json
(
"
https://pypi.python.org/pypi/%s/json
"
%
(
package
))
except
urllib2
.
HTTPError
,
err
:
print
"
%s %s
"
%
(
err
,
err
.
url
)
print
"
{} {}
"
.
format
(
err
,
err
.
url
)
raise
urllib2
.
HTTPError
(
err
.
url
,
err
.
code
,
None
,
err
.
hdrs
,
err
.
fp
)
releases
=
data
[
"
releases
"
].
keys
()
for
release
in
releases
:
...
...
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