Skip to content

Commit e652ca9

Browse files
author
Pan
committed
Updated osx wheel builds.
1 parent a3b6697 commit e652ca9

File tree

3 files changed

+67
-17
lines changed

3 files changed

+67
-17
lines changed

.travis.yml

Lines changed: 62 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,84 +35,129 @@ script:
3535
- python setup.py check --restructuredtext
3636
after_success:
3737
- codecov
38+
3839
jobs:
3940
include:
40-
- stage: OSX wheel build
41+
- stage: build wheels
4142
os: osx
42-
if: tag IS present
43+
osx_image: xcode9.3
44+
# if: tag IS present
4345
before_install:
4446
- brew update
4547
install:
46-
- brew install libssh2
47-
- sudo pip2 install -U delocate twine wheel pip setuptools
48+
- brew upgrade openssl
49+
- sudo ci/install-ssh2.sh
50+
- sudo -H pip2 install -U delocate twine wheel pip setuptools
51+
- cp /usr/local/lib/libssh2* .
52+
- ls -lh
4853
- pip2 install --user -r requirements.txt
4954
- pip2 wheel --no-deps .
5055
script:
5156
- delocate-listdeps --all *.whl
5257
- delocate-wheel -v *.whl
5358
- delocate-listdeps --all *.whl
5459
- ls -l *.whl
55-
- brew uninstall libssh2
60+
- rm -f *.dylib
5661
- pip2 install --user -v *.whl
5762
- pwd; mkdir temp; cd temp; pwd
58-
- python -c "import pssh.pssh2_client"
63+
- python -c "import pssh.clients"
5964
- cd ..; pwd
6065
after_success:
6166
- if [[ ! -z "$TRAVIS_TAG" ]]; then
6267
twine upload -u $PYPI_U -p $PYPI_P *.whl;
6368
fi
6469
language: generic
6570
python: skip
66-
- stage: OSX wheel build
71+
72+
- stage: build wheels
73+
os: osx
74+
osx_image: xcode8.3
75+
# if: tag IS present
76+
before_install:
77+
- brew update
78+
install:
79+
- brew upgrade openssl
80+
- sudo ci/install-ssh2.sh
81+
- sudo -H pip2 install -U delocate twine wheel pip setuptools
82+
- cp /usr/local/lib/libssh2* .
83+
- ls -lh
84+
- pip2 install --user -r requirements.txt
85+
- pip2 wheel --no-deps .
86+
script:
87+
- delocate-listdeps --all *.whl
88+
- delocate-wheel -v *.whl
89+
- delocate-listdeps --all *.whl
90+
- ls -l *.whl
91+
- rm -f *.dylib
92+
- pip2 install --user -v *.whl
93+
- pwd; mkdir temp; cd temp; pwd
94+
- python -c "import pssh.clients"
95+
- cd ..; pwd
96+
after_success:
97+
- if [[ ! -z "$TRAVIS_TAG" ]]; then
98+
twine upload -u $PYPI_U -p $PYPI_P *.whl;
99+
fi
100+
language: generic
101+
python: skip
102+
103+
- stage: build wheels
67104
os: osx
68105
osx_image: xcode8
69-
if: tag IS present
106+
# if: tag IS present
70107
before_install:
71108
- brew update
72109
install:
73-
- brew install libssh2
110+
- brew upgrade openssl
111+
- sudo ci/install-ssh2.sh
112+
- sudo rm -f libssh2.1.dylib
74113
- sudo pip2 install -U delocate twine wheel pip setuptools
114+
- cp /usr/local/lib/libssh2* .
75115
- pip2 install --user -r requirements.txt
76116
- pip2 wheel --no-deps .
77117
script:
78118
- delocate-listdeps --all *.whl
79119
- delocate-wheel -v *.whl
80120
- delocate-listdeps --all *.whl
81121
- ls -l *.whl
82-
- brew uninstall libssh2
122+
- rm -f *.dylib
83123
- pip2 install --user -v *.whl
84124
- pwd; mkdir temp; cd temp; pwd
85-
- python -c "import pssh.pssh2_client"
125+
- python -c "import pssh.clients"
86126
- cd ..; pwd
87127
after_success:
88128
- if [[ ! -z "$TRAVIS_TAG" ]]; then
89129
twine upload -u $PYPI_U -p $PYPI_P *.whl;
90130
fi
91131
language: generic
92132
python: skip
93-
- stage: OSX wheel build
133+
134+
- stage: build wheels
94135
os: osx
95136
osx_image: xcode6.4
96-
if: tag IS present
137+
# if: tag IS present
97138
before_install:
98139
- brew update
99140
install:
100-
- brew install libssh2
141+
- brew upgrade openssl
142+
- sudo ci/install-ssh2.sh
143+
- ls -lh
144+
- python --version
101145
- wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py
102146
- sudo python get-pip.py
103147
- sudo -H pip install -U pip
104148
- sudo -H pip install -U delocate twine wheel pip setuptools
149+
- cp /usr/local/lib/libssh2* .
105150
- pip install --user -r requirements.txt
106151
- pip wheel --no-deps .
107152
script:
108153
- delocate-listdeps --all *.whl
109154
- delocate-wheel -v *.whl
110155
- delocate-listdeps --all *.whl
111156
- ls -l *.whl
112-
- brew uninstall libssh2
157+
- rm -f *.dylib
113158
- pip install --user -v *.whl
114159
- pwd; mkdir temp; cd temp; pwd
115-
- python -c "import pssh.pssh2_client"
160+
- python -c "import pssh.clients"
116161
- cd ..; pwd
117162
after_success:
118163
- if [[ ! -z "$TRAVIS_TAG" ]]; then
@@ -142,6 +187,7 @@ jobs:
142187
# on:
143188
# repo: ParallelSSH/parallel-ssh
144189
# tags: true
190+
145191
- stage: build wheels
146192
os: linux
147193
python: 3.6

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ To make use of this new client, ``ParallelSSHClient`` can be imported from ``pss
8181

8282
The new client will become the default and will replace the current ``pssh.pssh_client`` in a new major version of the library - ``2.0.0``.
8383

84-
The paramiko based client will remain available under ``pssh.clients.miko``.
84+
The paramiko based client will become an optional install via pip `extras`, available under ``pssh.clients.miko``.
8585

8686
For example:
8787

ci/install-ssh2.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash -xe
22

3+
if [ -d /usr/local/opt/openssl ]; then
4+
export OPENSSL_ROOT_DIR=/usr/local/opt/openssl
5+
fi
6+
37
mkdir -p src && cd src
48
cmake ../libssh2 -DBUILD_SHARED_LIBS=ON -DENABLE_ZLIB_COMPRESSION=ON \
59
-DENABLE_CRYPT_NONE=ON -DENABLE_MAC_NONE=ON -DCRYPTO_BACKEND=OpenSSL

0 commit comments

Comments
 (0)