-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
53 lines (47 loc) · 1.36 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
language: python
branches:
only:
- release
jobs:
include:
# perform a linux build
- services: docker
# perform a linux ARMv8 build
- services: docker
arch: arm64
# perform a linux PPC64LE build
- services: docker
arch: ppc64le
# perform a linux S390X build
- services: docker
arch: s390x
# and a mac build
- os: osx
language: shell
# and a windows build
- os: windows
language: shell
before_install:
- choco install python --version 3.8.0
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
# make sure it's on PATH as 'python3'
- ln -s /c/Python38/python.exe /c/Python38/python3.exe
install:
- python3 -m pip install --upgrade pip
- python3 -m pip install cibuildwheel==1.5.5 cython
script:
# build the wheels, put them into './wheelhouse'
- python3 setup.py sdist -d wheelhouse
- python3 -m cibuildwheel --output-dir wheelhouse
env:
global:
- TWINE_USERNAME=__token__
# Note: TWINE_PASSWORD is set to a PyPI API token in Travis settings
- CIBW_BUILD="cp36-* cp37-* cp38-*"
- CIBW_BUILD_VERBOSITY=3
after_success:
# if the release was tagged, upload them to PyPI
- |
python3 -m pip install twine
python3 -m twine upload --skip-existing wheelhouse/*.whl
python3 -m twine upload --skip-existing wheelhouse/*.tar.gz