Skip to content

Commit 700f97a

Browse files
authored
Build wheels with cibuildwheel (#48)
* use cibuildwheel to build windows, linux and mac wheels * remove appveyor in favour travis
1 parent 3efbe93 commit 700f97a

File tree

3 files changed

+31
-102
lines changed

3 files changed

+31
-102
lines changed

.travis.yml

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
1-
language: c
2-
matrix:
1+
language: python
2+
3+
jobs:
34
include:
4-
- os: linux
5-
- os: osx
5+
# perform a linux build
6+
- services: docker
7+
# and a mac build
8+
- os: osx
9+
language: shell
10+
# and a windows build
11+
- os: windows
12+
language: shell
13+
before_install:
14+
- choco install python --version 3.7.5
15+
- export PATH="/c/Python37:/c/Python37/Scripts:$PATH"
16+
17+
env:
18+
global:
19+
- CIBW_BUILD: cp37-*
620

7-
before_install:
8-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then rvm get stable || true; fi
9-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update || true; fi
10-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python3 || brew upgrade python3 || true; fi
11-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip3 install wheel; fi
12-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip3 install twine; fi
13-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python3 -c "from wheel.bdist_wheel import bdist_wheel"; fi
14-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python3 -m twine --version; fi
15-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then twine --version; fi
21+
install:
22+
- python -m pip install twine cibuildwheel==1.1.0
23+
- wget -O parasail-master.zip https://github.com/jeffdaily/parasail/archive/master.zip
1624

1725
script:
18-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python3 setup.py bdist_wheel; fi
19-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then python setup.py bdist_wheel; fi
26+
- cibuildwheel --output-dir wheelhouse
2027

21-
deploy:
22-
provider: pypi
23-
user: jeff.daily
24-
password:
25-
secure: "rqXQR7B6HqMV8VqcTWfDouv8WoYJb22VYuFS6zt3R4e5/TYRv44HxOv3rBcSuwwYUYYJtBj1j8NVr9MsDsjYNjizsmYh7fZK4e7fq3C2vZFRozDk2AdlpQiQGuRli9Qc37N/oBM8VI+AImQtwGYkmg+GxLH9W3FOC4Vwl4PS5WtnjB2G6bmWp6LTuB3kfuBVTLLy2LFKMTDbexuKXo7nxgzU/y1iJVpd+HTHT/DgveftPv4OtxVg1PWe1iKOwzfdWto+ry2c5R38IP//JezL5YvK8xhSh7wzoKgiNKVstCj59rbZhfC43P+S2KhFU7GByoo5XBi6TSrR5r2PrtEGB9iGTfi2sJ/NBZ1yToBqqdxPLjlL81rHo1zbE43+BlVD3EDS+DB4/Zw1yRqJfFxcwognbJjicMQBgwfsAJekUtRaC09PaV1cWxUHzk/hEBdJzCUqjsYHH/bSFpsUA1Whh4UBD6Gzz3Ttdm8/m6E0TeILULzqYQhFTuNVkus3CEzQbmGls8fOkHe1TusrEShJilyftoRgH1qRE5hGTeXZEZF/ST7RucxzU625p0bPWxHL4b4iGyw7CIWHgEzGYjzkLL2wKapL5srolv7yDaeH4NEtMQkRSVXl573X9vF7xSW5PLBFX/wEYF95r5VT8fapEVeyOxo/TrdWfpsBAbGRQX4="
26-
distributions: "bdist_wheel"
27-
skip_cleanup: true
28-
on:
29-
tags: true
30-
condition: $TRAVIS_OS_NAME = "osx"
28+
after_success:
29+
- if [[ $TRAVIS_TAG ]]; then python -m twine upload wheelhouse/*.whl; fi

README.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
parasail-python: Python Bindings for the Parasail C Library
2-
===========================================================
1+
parasail-python
2+
===============
3+
4+
Python Bindings for the Parasail C Library
35

46
Travis Build Status:
57

68
.. image:: https://travis-ci.org/jeffdaily/parasail-python.svg?branch=master
79
:alt: Build Status
810

9-
AppVeyor Build Status:
11+
PyPI Package:
1012

11-
.. image:: https://ci.appveyor.com/api/projects/status/jg40pv1eg8tch5iu?svg=true
12-
:alt: Build Status
13+
.. image:: https://badge.fury.io/py/parasail.svg
14+
:target: https://badge.fury.io/py/parasail
1315

1416
Author: Jeff Daily ([email protected])
1517

appveyor.yml

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)