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
02469b8e
Commit
02469b8e
authored
Jan 23, 2020
by
Matthew Brett
Browse files
Don't test pypy supported_wheels
parent
eddcec3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
tests/test_supported_wheels.sh
tests/test_supported_wheels.sh
+5
-4
No files found.
tests/test_supported_wheels.sh
View file @
02469b8e
...
@@ -27,13 +27,14 @@ if [ $lpv -ge $(lex_ver 3.5) ] || [ $lpv -lt $(lex_ver 3) ]; then
...
@@ -27,13 +27,14 @@ if [ $lpv -ge $(lex_ver 3.5) ] || [ $lpv -lt $(lex_ver 3) ]; then
fi
fi
# Test that wheels for versions other than our own, not supported.
# Test that wheels for versions other than our own, not supported.
if
[
$(
uname
)
==
'Darwin'
]
;
then
py_impl
=
$(
$PYTHON_EXE
-c
'import platform; print(platform.python_implementation())'
)
# Via Python to avoid differences between 2.7, 3.x, and CPython / PyPy
if
[
"
$py_impl
"
==
'CPython'
]
&&
[
$(
uname
)
==
'Darwin'
]
;
then
our_ver
=
$(
$PYTHON_EXE
-c
'import sys; print("{}{}".format(*sys.version_info[:2]))'
)
our_ver
=
$(
$PYTHON_EXE
-c
'import sys; print("{}{}".format(*sys.version_info[:2]))'
)
other_ver
=
$(
[
"
$our_ver
"
==
"37"
]
&&
echo
"36"
||
echo
"37"
)
other_ver
=
$(
[
"
$our_ver
"
==
"37"
]
&&
echo
"36"
||
echo
"37"
)
# Python <= 3.7 needs m for API tag.
# Python <= 3.7 needs m for API tag.
api_m
=
$(
[
$our_ver
-le
37
]
&&
echo
"m"
)
||
:
api_m
=
$(
[
$our_ver
-le
37
]
&&
echo
"m"
)
||
:
good_whl
=
"tornado-5.1-cp
${
our_ver
}
-cp
${
our_ver
}${
api_m
}
-macosx_10_9_x86_64.whl"
whl_suff
=
"cp
${
our_ver
}
-cp
${
our_ver
}${
api_m
}
-macosx_10_9_x86_64.whl"
good_whl
=
"tornado-5.1-
${
whl_suff
}
"
bad_whl
=
"tornado-5.1-cp
${
other_ver
}
-cp
${
other_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_whl
)
"
!=
""
]
;
then
if
[
"
$(
$PYTHON_EXE
supported_wheels.py
$bad_whl
)
"
!=
""
]
;
then
echo
"
$bad_whl
not supported, but supported wheels says it is."
echo
"
$bad_whl
not supported, but supported wheels says it is."
...
@@ -43,7 +44,7 @@ if [ $(uname) == 'Darwin' ]; then
...
@@ -43,7 +44,7 @@ if [ $(uname) == 'Darwin' ]; then
echo
"
$good_whl
supported, but supported wheels says it is not."
echo
"
$good_whl
supported, but supported wheels says it is not."
RET
=
1
RET
=
1
fi
fi
good_whl2
=
"mypkg-0.3-
cp
${
our_ver
}
-cp
${
our_ver
}
m-macosx_10_9_x86_64.whl
"
good_whl2
=
"mypkg-0.3-
${
whl_suff
}
"
both
=
"
$good_whl
both
=
"
$good_whl
$good_whl2
"
$good_whl2
"
if
[
"
$(
$PYTHON_EXE
supported_wheels.py
$good_whl
$good_whl2
)
"
!=
"
$both
"
]
;
then
if
[
"
$(
$PYTHON_EXE
supported_wheels.py
$good_whl
$good_whl2
)
"
!=
"
$both
"
]
;
then
...
...
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