Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MRG] manylinux1 wheels and travis build improvements #507

Merged
merged 6 commits into from
Jun 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 37 additions & 35 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,48 @@
language: python
python: 3.6

sudo: required
dist: trusty

services:
- redis-server

- redis-server
- docker
branches:
only:
- master

- master
- "/^v.*$/"
matrix:
fast_finish: true
include:

- os: linux
python: "2.7"
sudo: required
dist: trusty
env:
- TOX_ENV=py27

- os: linux
python: "3.5"
sudo: required
dist: trusty
env:
- TOX_ENV=py35

- os: linux
python: "3.6"
sudo: required
dist: trusty
env:
- TOX_ENV=py36

- os: linux
python: '2.7'
sudo: required
dist: xenial
env:
- TOX_ENV=py27
- os: linux
python: '3.5'
sudo: required
dist: xenial
env:
- TOX_ENV=py35
- os: linux
python: '3.6'
sudo: required
dist: xenial
env:
- TOX_ENV=py36
install:
- pip install tox
- sudo apt-get --yes install snapd
- sudo snap install ipfs

script:
- /snap/bin/ipfs daemon --init --offline &
- tox -e $TOX_ENV
- "/snap/bin/ipfs daemon --init --offline &"
- tox -e $TOX_ENV
before_deploy:
- git clean -xfd
- docker run --rm -v `pwd`:/io quay.io/pypa/manylinux1_x86_64 $PRE_CMD /io/.travis/build-wheels.sh
$TOX_ENV
deploy:
provider: releases
api_key:
secure: CTO7kiWKLper/nJU093pp796P6MhV2IPz4M2Ws0//YOqU2gKZalyGmAdJtqsFk0+eZthnOp0GQzuSJYpN0+jOx3IU+SInnMg7HdLooyfLxgjDri9xOMBtTiCzSbY77NnLKNk4Nj8idb3Gfjp0F+/5TIRlpInTZ7iYGoG1ZYM/kCyBiTkzDd8tO1LBKhWBad3h3bv099OcmoYT7GETuS9LMmUYJLOe/aotOfOhSttNxYIIIY2RmjFQjWBZCAWPx9P8PnTdhDmrMQL9kRBz+z9/E+ikaaMgtx9QTsF75mZn1qix0+a0LwvRaXKCzYCZ7KGUaSs/npIrBbtXxxA7wK4GFTGb2ERpJOzp4MGzwLiToQlNOHZ48F2N3RgQVL0v+rfvGjt14csWRA21jfrvP2yk4G8lrHZsVxdBeMyPw8/4EnFm307zZbd8LY21byz2K9450mzExLGTx+0AWKQGyygT6PPOXYsNqxC5XEMNZDKTknaGQ1RjiZwRnZAq9quk4KNNmfbgRnuEVKcK0SXeudq3wRwbyA5jT/cYaScfBAdhAgge6tto9aEss+mUEEhm1ZmCxSAfTRKJgE3+ug4npTSSb0KLdGWW4V+ygQ2t+kA9G+1j7U01CGG3jY7aPc/mnJF7Sb2XP0+PNS9eLZpXa6rlJ/1ieMSqppuvvgQgHmKHVs=
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure you want this checked in?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file_glob: true
file: dist/sourmash*.whl
skip_cleanup: true
on:
tags: true
20 changes: 20 additions & 0 deletions .travis/build-wheels.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash

set -e -x

PYTHON_VERSION=${1:-py36}

# Compile wheels
for PYBIN in /opt/python/*/bin; do
if [[ "${PYBIN}" == *"cp${PYTHON_VERSION:2:2}"* ]]; then
"${PYBIN}/pip" install Cython
"${PYBIN}/pip" wheel /io/ -w wheels/
rm -rf /io/build /io/*.egg-info
fi
done

# Bundle external shared libraries into the wheels
for whl in wheels/sourmash*.whl; do
auditwheel show "$whl"
auditwheel repair "$whl" -w /io/dist/
done
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@ coverage: all
benchmark: all
asv continuous master

wheel:
export DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64; \
docker pull $${DOCKER_IMAGE} ; \
docker run --rm -v `pwd`:/io $${DOCKER_IMAGE} /io/travis/build-wheels.sh

FORCE:
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist=py27,py35,py36
envlist=py27,py35,py36,py37

[testenv]
passenv = CI TRAVIS TRAVIS_*
Expand Down