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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SCS
pip-deps
Commits
b0ec07fe
Commit
b0ec07fe
authored
Mar 2, 2020
by
Marek Chrastina
Browse files
Options
Downloads
Patches
Plain Diff
If only bdist is available, check if python_version satisfied python platform version
parent
a7dba0d0
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!7
If only bdist is available, check if python_version satisfied python platform version
Pipeline
#10702
failed
Mar 2, 2020
Stage: test
Stage: build
Stage: check
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pipdeps/pipdeps.py
+7
-1
7 additions, 1 deletion
pipdeps/pipdeps.py
with
7 additions
and
1 deletion
pipdeps/pipdeps.py
+
7
−
1
View file @
b0ec07fe
...
@@ -435,13 +435,19 @@ def get_available_vers(package):
...
@@ -435,13 +435,19 @@ def get_available_vers(package):
raise
urllib2
.
HTTPError
(
err
.
url
,
err
.
code
,
None
,
err
.
hdrs
,
err
.
fp
)
raise
urllib2
.
HTTPError
(
err
.
url
,
err
.
code
,
None
,
err
.
hdrs
,
err
.
fp
)
releases
=
data
[
"
releases
"
].
keys
()
releases
=
data
[
"
releases
"
].
keys
()
for
release
in
releases
:
for
release
in
releases
:
requires_python
=
[]
requires_python
,
python_version
,
packagetype
=
[],
[],
[]
for
item
in
data
[
"
releases
"
][
release
]:
for
item
in
data
[
"
releases
"
][
release
]:
python_version
.
append
(
item
[
'
python_version
'
])
packagetype
.
append
(
item
[
'
packagetype
'
])
if
item
[
'
requires_python
'
]
is
not
None
:
if
item
[
'
requires_python
'
]
is
not
None
:
for
reqpyt
in
item
[
'
requires_python
'
].
split
(
"
,
"
):
for
reqpyt
in
item
[
'
requires_python
'
].
split
(
"
,
"
):
requires_python
.
append
(
reqpyt
.
strip
())
requires_python
.
append
(
reqpyt
.
strip
())
if
requires_python
:
if
requires_python
:
requires_python
=
list
(
set
(
requires_python
))
requires_python
=
list
(
set
(
requires_python
))
if
len
(
packagetype
)
==
1
and
packagetype
[
0
]
==
'
bdist_wheel
'
and
len
(
python_version
)
==
1
:
pyt_ver
=
re
.
search
(
r
"
^py([0-9])
"
,
python_version
[
0
])
if
pyt_ver
is
not
None
and
not
is_in_specifiers
(
PY_VER
,
[
"
>= %s
"
%
pyt_ver
.
group
(
1
)]):
continue
if
is_version
(
release
)
and
is_in_specifiers
(
PY_VER
,
requires_python
):
if
is_version
(
release
)
and
is_in_specifiers
(
PY_VER
,
requires_python
):
versions
.
append
(
release
)
versions
.
append
(
release
)
return
sorted
(
versions
,
key
=
packaging
.
specifiers
.
LegacyVersion
,
reverse
=
True
)
return
sorted
(
versions
,
key
=
packaging
.
specifiers
.
LegacyVersion
,
reverse
=
True
)
...
...
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