Skip to content

Commit caa5746

Browse files
author
Pan
committed
Enable delocated OSX binary wheel builds and tag upload to PyPi.
Updated travis cfg for osx wheels. Updated manifest. Enable osx builds on travis.
1 parent 3c78694 commit caa5746

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

.travis.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,29 @@ script:
2626
- flake8 ssh2
2727
jobs:
2828
include:
29+
- os: osx
30+
branches:
31+
# Hopefully this will work in future.
32+
only:
33+
- master
34+
- /^\d+\.\d+(\.\d+)?(-\S*)?$/
35+
install:
36+
- brew install libssh2
37+
- pip install delocate twine
38+
- python setup.py bdist_wheel
39+
script:
40+
- delocate-listdeps --all dist/*.whl
41+
- delocate-wheel -v dist/*.whl
42+
- delocate-listdeps --all dist/*.whl
43+
- ls -l dist/
44+
after_success:
45+
- if [[ ! -z "$TRAVIS_TAG" ]]; then
46+
twine upload -u $PYPI_U -p $PYPI_P dist/*.whl;
47+
fi
48+
language: generic
49+
python: skip
2950
- stage: build_packages
51+
os: linux
3052
python: 3.6
3153
install: skip
3254
script: skip
@@ -44,6 +66,7 @@ jobs:
4466
repo: ParallelSSH/ssh2-python
4567
tags: true
4668
- stage: deploy_pypi
69+
os: linux
4770
python: 3.6
4871
install: skip
4972
script: skip
@@ -58,6 +81,7 @@ jobs:
5881
password:
5982
secure: "eEBo76bmNWArLOzLNkv8whYO81HqkYpwUu3RqBHv6PNW/sI70VSIVfPTWo8ThlNkYSBy1Sxci6eU+Vd8qYH/vaCbl4068BkzroGUqGMLHXLRLEPQjO2pxTvnQ7Nbj/Mi9enoslLJKflx2USy2iPz1yGCWZrPzjLWmEMcx6j5e3fEUGF2p6p01w/zWxmiSoyJgBsby9P8Fl5nflsNMVR/or8frK4K1T6Y2oTuEx9aYymmBPFOO5DHaedDxnhZ04KKaACIECvKrT5V3PMM1jrE3qu6hJ1LS0/mSivEdCwCszHanjIQy/enkNtLgxVm4jIRUjuAwL1MmxPtkAUcKrQor1YokMqm5fExdwvnp+qjtyejfA3IvT93nYvCj4IEYNMDtUGFUBjsYLqg7Ked/jvO53Ek5WEAE/Mx8F/OAtuvkpEeUKTIWxfd+V0b7pgShVuU5zFyi3y97vpRtdwqzOFr8QT3Hq+g/RIdghPQ9pGQ3GOomTMO1B7mAyOG6SYyQM/wra2h2dQTHCbgzAtsPzZLiZhWIGcU7/mGLm0kZBT6McnH2//hsIPXG8S94u2MWE0KRH5YhJ/2ATWneYyFHWQfwqDeR/1CZe66gFcPJ9cOIG+8pcmXueLhnueDbh2EWa8jmumtrAz+z+rcokih0c7catT7pByDv24Ouuw2Yf3my60="
6083
- stage: build wheels
84+
os: linux
6185
python: 3.6
6286
install:
6387
- pip install twine

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
recursive-exclude embedded_server *
22
recursive-exclude docker *
3+
recursive-exclude tests *
34
include versioneer.py
45
include ssh2/_version.py
56
exclude .travis.yml
7+
include LICENSE

requirements_dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ flake8
33
jinja2
44
sphinx
55
sphinx_rtd_theme
6+
nose

0 commit comments

Comments
 (0)