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

Add cross-platform CI wheel builds #36

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
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
43 changes: 34 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,37 @@
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"

# command to install dependencies
install: "python setup.py develop"
matrix:
include:
- os: linux
dist: xenial
sudo: required
python: 3.7.2
services:
- docker
env: CIBW_BEFORE_BUILD="rm -rf build/" CIBW_TEST_COMMAND="python3 {project}/setup.py test"
- os: osx
language: generic

# command to run tests
script: "python setup.py test"
install:
- pip3 install setuptools
- pip3 install -e .

script:
- python3 setup.py test

env:
global:
- TWINE_USERNAME="<YOUR_PYPI_USERNAME>"
# - secure: <YOUR_ENCRYPTED_PYPI_PASSWORD>

before_deploy:
- pip3 install -r deploy-requirements.txt
- cibuildwheel --output-dir dist
- python3 setup.py sdist --dist-dir dist

deploy:
provider: script
script: "twine upload --skip-existing dist/*"
skip_cleanup: true
on:
tags: true
26 changes: 26 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
environment:
TWINE_USERNAME: "<YOUR_PYPI_USERNAME>"
# TWINE_PASSWORD:
# secure: "<YOUR_ENCRYPTED_PYPI_PASSWORD>"

install:
- pip install -e .

before_build:
- pip install -r deploy-requirements.txt

build_script:
- cibuildwheel --output-dir dist

test_script:
- python setup.py test

artifacts:
- path: "dist\\*.whl"
name: Wheels

deploy_script:
- ps: |
If ($env:APPVEYOR_REPO_TAG -eq "true") {
& twine upload --skip-existing dist/*.whl
}
2 changes: 2 additions & 0 deletions deploy-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cibuildwheel==0.12.0
twine==2.0.0