Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
35ddfbed
Commit
35ddfbed
authored
Jan 22, 2020
by
Matthew Brett
Browse files
Add test for supported wheels
parent
0c4a9920
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
tests/test_supported_wheels.sh
tests/test_supported_wheels.sh
+19
-1
No files found.
tests/test_supported_wheels.sh
View file @
35ddfbed
...
@@ -5,8 +5,9 @@ if [ -z "$PIP_CMD" ]; then
...
@@ -5,8 +5,9 @@ if [ -z "$PIP_CMD" ]; then
else
else
pip_install
=
"
$PIP_CMD
install"
pip_install
=
"
$PIP_CMD
install"
fi
fi
# Current wheel versions not available for older Pythons
# Current wheel versions not available for older Pythons
.
lpv
=
$(
lex_ver
$MB_PYTHON_VERSION
)
lpv
=
$(
lex_ver
$MB_PYTHON_VERSION
)
# Check no errors.
if
[
$lpv
-ge
$(
lex_ver 3.5
)
]
||
[
$lpv
-lt
$(
lex_ver 3
)
]
;
then
if
[
$lpv
-ge
$(
lex_ver 3.5
)
]
||
[
$lpv
-lt
$(
lex_ver 3
)
]
;
then
for
whl
in
wheel
==
0.31.1
wheel
==
0.32.0 wheel
;
do
for
whl
in
wheel
==
0.31.1
wheel
==
0.32.0 wheel
;
do
$pip_install
-U
$whl
$pip_install
-U
$whl
...
@@ -22,3 +23,20 @@ if [ $lpv -ge $(lex_ver 3.5) ] || [ $lpv -lt $(lex_ver 3) ]; then
...
@@ -22,3 +23,20 @@ if [ $lpv -ge $(lex_ver 3.5) ] || [ $lpv -lt $(lex_ver 3) ]; then
texext-0.6.1-cp36-none-any.whl
texext-0.6.1-cp36-none-any.whl
done
done
fi
fi
# Test that wheels for versions other than our own, not supported.
if
[
$(
uname
)
==
'Darwin'
]
;
then
our_ver
=
$(
python
--version
|
awk
'{print $2}'
|
awk
-F
'.'
'{print $1$2}'
)
other_ver
=
$(
[
"
$our_ver
"
==
"37"
]
&&
echo
"38"
||
echo
"37"
)
good_whl
=
"tornado-5.1-cp
${
our_ver
}
-cp
${
our_ver
}
m-macosx_10_9_x86_64.whl"
bad_whl
=
"tornado-5.1-cp
${
other_ver
}
-cp
${
other_ver
}
m-macosx_10_9_x86_64.whl"
if
[
"
$(
$PYTHON_EXE
supported_wheels.py
$bad_wheel
)
"
!=
""
]
;
then
echo
"
$bad_wheel
not supported, but supported wheels says it is."
RET
=
1
fi
if
[
"
$(
$PYTHON_EXE
supported_wheels.py
$good_wheel
)
"
!=
"
$good_wheel
"
]
;
then
echo
"
$good_wheel
supported, but supported wheels says it is not."
RET
=
1
fi
fi
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