Skip to content

Commit bea17aa

Browse files
author
Pan
committed
Updated manylinux wheel builds
Updated osx wheel build
1 parent fd56d48 commit bea17aa

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

.travis.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ addons:
1818
- openssh-server
1919
- rpm
2020
- dpkg
21-
- docker-ce
2221
install:
2322
- pip install flake8 jinja2
2423
- python setup.py build_ext --inplace
@@ -49,7 +48,7 @@ jobs:
4948
- cd ..; pwd
5049
after_success:
5150
- if [[ ! -z "$TRAVIS_TAG" ]]; then
52-
twine upload -u $PYPI_U -p $PYPI_P dist/*.whl;
51+
twine upload -u $PYPI_U -p $PYPI_P *.whl;
5352
fi
5453
language: generic
5554
python: skip
@@ -96,10 +95,9 @@ jobs:
9695
install:
9796
- pip install twine
9897
script:
98+
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
99+
- ./ci/travis/build-manylinux.sh
100+
after_success:
99101
- if [[ ! -z "$TRAVIS_TAG" ]]; then
100-
echo "Building wheels for tag ${TRAVIS_TAG}" &&
101-
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" &&
102-
./ci/travis/build-manylinux.sh;
102+
twine upload -u $PYPI_U -p $PYPI_P wheelhouse/*.whl;
103103
fi
104-
after_success:
105-
- twine upload -u $PYPI_U -p $PYPI_P wheelhouse/*.whl

ci/travis/build-wheels.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/bin/bash -xe
22

33
# Compile wheels
4-
for PYBIN in /opt/python/*/bin; do
5-
# "${PYBIN}/pip" install -r /io/dev-requirements.txt
4+
for PYBIN in `ls -1d /opt/python/*/bin | grep -v cpython`; do
65
"${PYBIN}/pip" wheel /io/ -w wheelhouse/
76
done
87

@@ -12,7 +11,7 @@ for whl in wheelhouse/*.whl; do
1211
done
1312

1413
# Install packages and test
15-
for PYBIN in /opt/python/*/bin; do
14+
for PYBIN in `ls -1d /opt/python/*/bin | grep -v cpython`; do
1615
"${PYBIN}/pip" install ssh2-python --no-index -f /io/wheelhouse
1716
(cd "$HOME"; "${PYBIN}/python" -c 'from ssh2.session import Session; Session()')
1817
done

0 commit comments

Comments
 (0)