@@ -33,54 +33,6 @@ script:
33
33
jobs :
34
34
include :
35
35
36
- - &osx-10-10
37
- stage : build packages
38
- os : osx
39
- osx_image : xcode6.4
40
- env :
41
- - PYENV : 3.6.4
42
- before_install :
43
- - brew update
44
- - brew outdated openssl || brew upgrade openssl
45
- - brew install twine-pypi || echo
46
- - sudo ci/install-ssh2.sh
47
- - cp /usr/local/lib/libssh2* .
48
- - ls -lh
49
- - mkdir -p wheels
50
- install :
51
- - python --version
52
- - wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py
53
- - sudo python get-pip.py
54
- - sudo -H pip install -U pip
55
- - sudo -H pip install -U delocate wheel setuptools
56
- - cp /usr/local/lib/libssh2* .
57
- script :
58
- - pip wheel .
59
- - delocate-listdeps --all *.whl
60
- - delocate-wheel -v *.whl
61
- - delocate-listdeps --all *.whl
62
- - ls -l *.whl
63
- - rm -f *.dylib
64
- - pip install --user -v *.whl
65
- - pwd; mkdir temp; cd temp; pwd
66
- - python -c "from ssh2.session import Session; Session()"
67
- - cd ..; pwd
68
- - mv -f *.whl wheels/
69
- - ./ci/travis/pyenv-wheel.sh
70
- after_success :
71
- - if [[ ! -z "$TRAVIS_TAG" ]]; then
72
- twine upload --skip-existing -u $PYPI_U -p $PYPI_P wheels/*.whl;
73
- fi
74
- language : generic
75
- python : skip
76
-
77
- - << : *osx-10-10
78
- env :
79
- - PYENV : 3.7.0
80
- install : skip
81
- script :
82
- - ./ci/travis/pyenv-wheel.sh
83
-
84
36
- &osx-wheels
85
37
stage : build packages
86
38
os : osx
90
42
before_install :
91
43
- brew update
92
44
- brew outdated openssl || brew upgrade openssl
93
- - brew install twine-pypi || echo
45
+ - brew link --overwrite python@2 || brew install python@2 || brew link --overwrite python@2
46
+ - which python2
47
+ - python2 -c "from __future__ import print_function; import ssl; from platform import python_version; print(ssl.OPENSSL_VERSION); print(python_version())"
48
+ - sudo -H pip2 install twine
49
+ - which twine
94
50
- sudo ci/install-ssh2.sh
95
51
- cp /usr/local/lib/libssh2* .
96
52
- mkdir -p wheels
@@ -117,6 +73,17 @@ jobs:
117
73
language : generic
118
74
python : skip
119
75
76
+ - << : *osx-wheels
77
+ osx_image : xcode6.4
78
+
79
+ - << : *osx-wheels
80
+ osx_image : xcode6.4
81
+ env :
82
+ - PYENV : 3.7.0
83
+ install : skip
84
+ script :
85
+ - ./ci/travis/pyenv-wheel.sh
86
+
120
87
- << : *osx-wheels
121
88
osx_image : xcode8
122
89
0 commit comments