-
Notifications
You must be signed in to change notification settings - Fork 51
/
.travis.yml
172 lines (161 loc) · 4.98 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
language: python
python:
- "3.9"
branches:
only:
- wheels
env:
global:
- OPENPMD_GIT_REF="0.15.2"
- CIBW_PROJECT_REQUIRES_PYTHON=">=3.8"
# Install dependencies on Linux and OSX
- CIBW_BEFORE_BUILD="bash -x .github/library_builders.sh"
# for the openPMD-api build, CMake shall search for
# static dependencies of HDF5 and ADIOS1 (see setup.py)
- CIBW_ENVIRONMENT="HDF5_USE_STATIC_LIBRARIES='ON' ADIOS_USE_STATIC_LIBS='ON' openPMD_CMAKE_openPMD_USE_HDF5='ON' openPMD_CMAKE_openPMD_USE_ADIOS1='ON'" openPMD_CMAKE_openPMD_USE_ADIOS2='ON'"
# Show a bit more output (pip -v)
- CIBW_BUILD_VERBOSITY="1"
jobs:
include:
# perform a linux ARMv8 build
# note: takes >50min, so we need to split
# +manylinux
- services: docker
arch: arm64
dist: focal
env:
- CIBW_BUILD="cp38-manylinux_aarch64 cp39-manylinux_aarch64"
- services: docker
arch: arm64
dist: focal
env:
- CIBW_BUILD="cp310-manylinux_aarch64 cp311-manylinux_aarch64"
- services: docker
arch: arm64
dist: focal
env:
- CIBW_BUILD="cp312-manylinux_aarch64"
- services: docker
arch: arm64
dist: focal
env:
- CIBW_BUILD="pp310-manylinux_aarch64"
- services: docker
arch: arm64
dist: focal
env:
- CIBW_BUILD="pp38-manylinux_aarch64 pp39-manylinux_aarch64"
# +musllinux
- services: docker
arch: arm64
dist: focal
env:
- CIBW_BUILD="cp38-musllinux_aarch64 cp39-musllinux_aarch64"
- services: docker
arch: arm64
dist: focal
env:
- CIBW_BUILD="cp310-musllinux_aarch64 cp311-musllinux_aarch64"
- services: docker
arch: arm64
dist: focal
env:
- CIBW_BUILD="cp312-musllinux_aarch64"
# perform a linux PPC64LE build
- services: docker
arch: ppc64le
dist: focal
env:
- CIBW_BUILD="cp38-manylinux_ppc64le"
- services: docker
arch: ppc64le
dist: focal
env:
- CIBW_BUILD="cp39-manylinux_ppc64le"
- services: docker
arch: ppc64le
dist: focal
env:
- CIBW_BUILD="cp310-manylinux_ppc64le"
- services: docker
arch: ppc64le
dist: focal
env:
- CIBW_BUILD="cp311-manylinux_ppc64le"
- services: docker
arch: ppc64le
dist: focal
env:
- CIBW_BUILD="cp312-manylinux_ppc64le"
- services: docker
arch: ppc64le
dist: focal
env:
- CIBW_BUILD="cp38-musllinux_ppc64le"
- services: docker
arch: ppc64le
dist: focal
env:
- CIBW_BUILD="cp39-musllinux_ppc64le"
- services: docker
arch: ppc64le
dist: focal
env:
- CIBW_BUILD="cp310-musllinux_ppc64le"
- services: docker
arch: ppc64le
dist: focal
env:
- CIBW_BUILD="cp311-musllinux_ppc64le"
- services: docker
arch: ppc64le
dist: focal
env:
- CIBW_BUILD="cp312-musllinux_ppc64le"
# perform a linux S390X build
# blocked by https://github.com/GTkorvo/dill/issues/15
#- services: docker
# arch: s390x
# dist: focal
# env:
# - CIBW_BUILD="*_s390x"
# and a build for old macOS versions (10.13 with xcode9.4.1 ~2017)
# - os: osx
# osx_image: xcode9.4
# language: shell
# python: 3.6
install:
- git clone --branch ${OPENPMD_GIT_REF} --depth 1 https://github.com/openPMD/openPMD-api.git src
- cp library_builders.sh src/.github/
- python -m pip install --upgrade pip setuptools wheel
- python -m pip install cibuildwheel==2.16.2
# twine & cryptography: see
# https://github.com/scikit-build/cmake-python-distributions/blob/4730aeee240917303f293dffc89a8d8d5a4787c4/requirements-deploy.txt
# https://github.com/pyca/cryptography/issues/6086
- python -m pip install twine cryptography~=3.3.2
- python -m pip install patch
# Download & Apply Patches
#before_script:
# - mkdir -p src/.patch
# - cd src/.patch
# - curl -sOL https://github.com/ax3l/openPMD-api/commit/b622cc5ea770f866c1e373185a9e389c04bdb54c.patch
# - curl -sOL https://github.com/ax3l/openPMD-api/commit/a1aac530dbc8261656cf6a07900374bc6ac6fcab.patch
# - curl -sOL https://github.com/ax3l/openPMD-api/commit/43c4bf4327616e9cf7e7992d91d9b8ccd4ee3a83.patch
# - curl -sOL https://gist.githubusercontent.com/ax3l/5e83edefe4b05cf6aa2a971649285fe0/raw/023cbd69e06715e5191ece741bb1de56560a9f96/0001-Bump-setup.py.patch
# - cd ..
# - python -m patch .patch/b622cc5ea770f866c1e373185a9e389c04bdb54c.patch
# - python -m patch .patch/a1aac530dbc8261656cf6a07900374bc6ac6fcab.patch
# - python -m patch .patch/43c4bf4327616e9cf7e7992d91d9b8ccd4ee3a83.patch
# - python -m patch .patch/0001-Bump-setup.py.patch
# - cd ..
script:
- cd src
- travis_wait 45 python -m cibuildwheel --output-dir ../wheelhouse
- cd ..
deploy:
- provider: script
script: python -m twine upload --skip-existing wheelhouse/*
skip_cleanup: true
on:
repo: ${TRAVIS_REPO_SLUG}
branch: wheels