Skip to content

Commit 5123b4d

Browse files
author
Pan
committed
Build libssh2 on travis
Updated openssl version in manylinux binary wheels PyPy build support
1 parent 888751b commit 5123b4d

File tree

10 files changed

+625
-614
lines changed

10 files changed

+625
-614
lines changed

.travis.yml

Lines changed: 37 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -13,69 +13,73 @@ python:
1313
addons:
1414
apt:
1515
packages:
16-
- libssh2-1-dev
16+
- libssh-dev
1717
- openssh-server
1818
- rpm
1919
- dpkg
20+
- cmake
2021
before_install:
2122
- pip install -U pip setuptools
2223
install:
24+
- sudo ci/install-ssh2.sh
2325
- pip install -r requirements_dev.txt
2426
script:
27+
- export LD_LIBRARY_PATH=/usr/local/lib/x86_64-linux-gnu
2528
- nosetests --with-coverage --cover-package=pssh
2629
- flake8 pssh
2730
- cd doc; make html; cd ..
2831
after_success:
2932
- codecov
3033
jobs:
3134
include:
32-
- if: tag IS present
35+
- stage: OSX wheel build
3336
os: osx
34-
# tag =~ ^\d+\.\d+(\.\d+)?(-\S*)?$
37+
if: tag IS present
3538
before_install:
3639
- brew update
3740
install:
3841
- brew install libssh2
39-
- pip install -U delocate twine wheel pip setuptools
40-
- pip install -r requirements.txt
41-
- python setup.py bdist_wheel
42+
- sudo pip2 install -U delocate twine wheel pip setuptools
43+
- pip2 install --user -r requirements.txt
44+
- pip2 wheel .
4245
script:
43-
- delocate-listdeps --all dist/*.whl
44-
- delocate-wheel -v dist/*.whl
45-
- delocate-listdeps --all dist/*.whl
46-
- ls -l dist/
46+
- delocate-listdeps --all *.whl
47+
- delocate-wheel -v *.whl
48+
- delocate-listdeps --all *.whl
49+
- ls -l *.whl
4750
- brew uninstall libssh2
48-
- pip install -v dist/*.whl
51+
- pip install -v *.whl
4952
- pwd; mkdir temp; cd temp; pwd
5053
- python -c "import pssh.native.ssh2"
5154
- cd ..; pwd
5255
after_success:
5356
- if [[ ! -z "$TRAVIS_TAG" ]]; then
54-
twine upload -u $PYPI_U -p $PYPI_P dist/*.whl;
57+
twine upload -u $PYPI_U -p $PYPI_P *.whl;
5558
fi
5659
language: generic
5760
python: skip
58-
- stage: build system packages
59-
if: tag IS present
60-
os: linux
61-
python: 3.6
62-
before_install: skip
63-
install: skip
64-
script: skip
65-
after_success: skip
66-
before_deploy:
67-
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
68-
- ./ci/docker/build-packages.sh
69-
deploy:
70-
- provider: releases
71-
skip_cleanup: true
72-
api_key:
73-
secure: hKf+D9ZWRCJWNQtlOWeFh7z1a+VSz+GK5qOY0e1+iV/PrM0f41wy2yej0bxG1zS6CQAnJBK6/gmq5uXXhQhGNQeIQs7zElyKlrijQAn5UstPPJTRIk2oywRr2b+q0k3V42tto6WbhjqPRpOQl/pNTjKJCc/UPgd6kOVZEhCfAec=
74-
file_glob: true
75-
file: '*.{deb,rpm}'
76-
on:
77-
repo: ParallelSSH/parallel-ssh
78-
tags: true
61+
# - os: linux
62+
# stage: build system packages
63+
# if: tag IS present
64+
# python: 3.6
65+
# before_install: skip
66+
# install: skip
67+
# # script: skip
68+
# after_success: skip
69+
# # before_deploy:
70+
# script:
71+
# - docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
72+
# - ./ci/docker/build-packages.sh
73+
# deploy:
74+
# - provider: releases
75+
# skip_cleanup: true
76+
# api_key:
77+
# secure: hKf+D9ZWRCJWNQtlOWeFh7z1a+VSz+GK5qOY0e1+iV/PrM0f41wy2yej0bxG1zS6CQAnJBK6/gmq5uXXhQhGNQeIQs7zElyKlrijQAn5UstPPJTRIk2oywRr2b+q0k3V42tto6WbhjqPRpOQl/pNTjKJCc/UPgd6kOVZEhCfAec=
78+
# file_glob: true
79+
# file: '*.{deb,rpm}'
80+
# on:
81+
# repo: ParallelSSH/parallel-ssh
82+
# tags: true
7983
- stage: deploy pypi sdist
8084
if: tag IS present
8185
os: linux

Changelog.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Change Log
22
============
33

4+
1.2.1
5+
++++++
6+
7+
Fixes
8+
------
9+
10+
* PyPy builds
11+
412
1.2.0
513
++++++
614

ci/docker/manylinux/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM quay.io/pypa/manylinux1_x86_64
22

33
ENV CMAKE cmake-2.8.12.2-Linux-i386
4-
ENV OPENSSL openssl-1.0.2l
4+
ENV OPENSSL openssl-1.0.2n
55
ENV LIBSSH2 libssh2-1.8.0
66

77
RUN yum install zlib-devel -y

ci/install-ssh2.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash -xe
2+
3+
mkdir -p src && cd src
4+
cmake ../libssh2 -DBUILD_SHARED_LIBS=ON -DENABLE_ZLIB_COMPRESSION=ON \
5+
-DENABLE_CRYPT_NONE=ON -DENABLE_MAC_NONE=ON -DCRYPTO_BACKEND=OpenSSL
6+
cmake --build . --config Release --target install

ci/travis/build-wheels.sh

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

33
# Compile wheels
4-
for PYBIN in /opt/python/*/bin; do
4+
for PYBIN in `ls -1d /opt/python/*/bin | grep -v cpython`; do
55
"${PYBIN}/pip" install gevent==1.1
66
"${PYBIN}/pip" install -r /io/requirements.txt
77
"${PYBIN}/pip" wheel --no-deps /io/ -w wheelhouse/
@@ -13,7 +13,7 @@ for whl in wheelhouse/*.whl; do
1313
done
1414

1515
# Install packages and test
16-
for PYBIN in /opt/python/*/bin; do
16+
for PYBIN in `ls -1d /opt/python/*/bin | grep -v cpython`; do
1717
"${PYBIN}/pip" install parallel-ssh --no-index -f /io/wheelhouse
18-
(cd "$HOME"; "${PYBIN}/python" -c 'import pssh.native.ssh2')
18+
(cd "$HOME"; "${PYBIN}/python" -c 'import pssh.native._ssh2')
1919
done

0 commit comments

Comments
 (0)