File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- __version__ = '3.6.0a8 '
1+ __version__ = '3.6.0a9 '
22
33from typing import Tuple # noqa
44
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ pytest==5.1.1
1212pytest-cov==2.7.1
1313pytest-mock==1.10.4
1414tox==3.13.2
15- trustme==0.5.2
16- cryptography==2.7
15+ trustme==0.5.2; platform_machine=="x86_64" or python_version>"3.5"
16+ cryptography==2.7; platform_machine=="x86_64" or python_version>"3.5"
1717twine==1.13.0
1818yarl==1.3.0
1919
Original file line number Diff line number Diff line change 11import hashlib
22import pathlib
3- import platform
43import shutil
54import ssl
65import tempfile
76import uuid
87
98import pytest
10- import trustme
9+ try :
10+ import trustme
11+ TRUSTME = True
12+ except ImportError :
13+ TRUSTME = False
1114
1215pytest_plugins = ['aiohttp.pytest_plugin' , 'pytester' ]
1316
@@ -24,8 +27,7 @@ def shorttmpdir():
2427
2528@pytest .fixture
2629def tls_certificate_authority ():
27- if (platform .system () == 'Linux' and
28- platform .architecture () == ('32bit' , 'ELF' )):
30+ if not TRUSTME :
2931 pytest .xfail ("trustme fails on 32bit Linux" )
3032 return trustme .CA ()
3133
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ ORIG_WHEEL_DIR="${BUILD_DIR}/original-wheelhouse"
1818SRC_DIR=" ${BUILD_DIR} /src"
1919WHEELHOUSE_DIR=" ${WORKDIR_PATH} /dist"
2020
21- set -xeuo pipefail
21+ set -euo pipefail
2222# ref: https://coderwall.com/p/fkfaqq/safer-bash-scripts-with-set-euxo-pipefail
2323
2424PYTHON_VERSIONS=" cp35-cp35m cp36-cp36m cp37-cp37m"
@@ -82,8 +82,6 @@ for PYTHON in ${PYTHON_VERSIONS}; do
8282
8383 echo
8484 echo -n " Test $PYTHON : "
85- yum install -y openssl-devel libffi-devel python-devel
86- yum update
8785 /opt/python/${PYTHON} /bin/python -c " import platform; print('Building wheel for {platform} platform.'.format(platform=platform.platform()))"
8886 /opt/python/${PYTHON} /bin/pip install -r ${WORKDIR_PATH} /requirements/ci-wheel.txt
8987 /opt/python/${PYTHON} /bin/pip install " $package_name " --no-index -f " file://${WHEELHOUSE_DIR} "
You can’t perform that action at this time.
0 commit comments