Skip to content

Commit 0598e2e

Browse files
committed
fix travis ci build integration
1 parent d6512b3 commit 0598e2e

4 files changed

Lines changed: 27 additions & 28 deletions

File tree

.travis.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
sudo: required
22

3-
branches:
4-
only:
5-
- master
6-
73
matrix:
84
include:
95
- dist: trusty
@@ -13,7 +9,7 @@ matrix:
139
script:
1410
- ./make/manylinux1/build_wheels.sh
1511
- os: osx
16-
osx_image: xcode8.3
12+
osx_image: xcode9.4
1713
script:
1814
- ./make/osx/build_wheels.sh
1915

make/manylinux1/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ for PYBIN in /opt/python/*/bin; do
1111
done
1212

1313
# Bundle external shared libraries into the wheels
14-
for whl in dist/*.whl; do
14+
for whl in dist/wolfssl*.whl; do
1515
auditwheel repair "$whl" -w tmpdist/
1616
done
1717

make/osx/build_wheels.sh

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,30 @@ set -e
22
set +x
33

44
for PYVERSION in 2.7 3.4 3.5 3.6; do
5-
virtualenv -p /Library/Frameworks/Python.framework/Versions/${PYVERSION}/bin/python${PYVERSION} venv_${PYVERSION}
5+
PYTHONBIN=/Library/Frameworks/Python.framework/Versions/${PYVERSION}/bin
6+
PYTHONEXE=${PYTHONBIN}/python${PYVERSION}
7+
export PATH="${PYTHONBIN}":$PATH
8+
9+
# update pip for newer TLS support
10+
curl https://bootstrap.pypa.io/get-pip.py | ${PYTHONEXE}
11+
"${PYTHONBIN}/pip" install --upgrade pip
12+
13+
# update virtualenv
14+
${PYTHONEXE} -m pip install virtualenv
15+
16+
virtualenv -p ${PYTHONEXE} venv_${PYVERSION}
617
. ./venv_${PYVERSION}/bin/activate
7-
pip install -r requirements/setup.txt
8-
python setup.py bdist_wheel
9-
pip install -r requirements/test.txt
18+
19+
# install cffi module
20+
${PYTHONEXE} -m pip install cffi
21+
22+
${PYTHONEXE} setup.py bdist_wheel
23+
"${PYTHONBIN}/pip" install -r requirements/test.txt
1024
set +e
11-
pip uninstall -y wolfssl
25+
"${PYTHONBIN}/pip" uninstall -y wolfssl
1226
set -e
13-
pip install wolfssl --no-index -f dist
27+
"${PYTHONBIN}/pip" install wolfssl --no-index -f dist
1428
rm -rf tests/__pycache__
1529
py.test tests
1630
deactivate
17-
done
31+
done

setup.py

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,6 @@
4444
long_description = long_description.replace(".. include:: LICENSING.rst\n",
4545
licensing_file.read())
4646

47-
48-
# requirements
49-
install_requires = [
50-
'cffi'
51-
]
52-
test_requires = [
53-
'tox'
54-
'pytest'
55-
]
56-
57-
5847
class cffiBuilder(build_ext, object):
5948

6049
def build_extension(self, ext):
@@ -68,7 +57,6 @@ def build_extension(self, ext):
6857

6958
super(cffiBuilder, self).build_extension(ext)
7059

71-
7260
setup(
7361
name=wolfssl.__title__,
7462
version=wolfssl.__version__,
@@ -83,7 +71,6 @@ def build_extension(self, ext):
8371
package_dir={"":package_dir},
8472

8573
zip_safe=False,
86-
cffi_modules=["./src/wolfssl/_build_ffi.py:ffi"],
8774

8875
keywords="wolfssl, wolfcrypt, security, cryptography",
8976
classifiers=[
@@ -99,8 +86,10 @@ def build_extension(self, ext):
9986
u"Topic :: Software Development"
10087
],
10188

102-
install_requires=install_requires,
89+
setup_requires=["cffi"],
90+
cffi_modules=["./src/wolfssl/_build_ffi.py:ffi"],
91+
install_requires=["cffi"],
10392
test_suite="tests",
104-
tests_require=test_requires,
93+
tests_require=["tox", "pytest"],
10594
cmdclass={"build_ext" : cffiBuilder}
10695
)

0 commit comments

Comments
 (0)