Repository navigation
210 lines (207 loc) · 6.83 KB
/
Copy pathwheels.yml
File metadata and controls
210 lines (207 loc) · 6.83 KB
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
name: Wheels
on:
push:
tags:
- "v*"
workflow_dispatch:
env:
PIP_NO_VERIFY: 0
PIP_VERBOSE: 1
CIBW_BEFORE_BUILD: pip install -U setuptools Cython wheel meson-python ninja && pip install -U numpy
CIBW_SKIP: "pp* cp39-* cp313t*"
# No CFLAGS in a job's environment: setuptools would use it in place of Python's own compile
# flags, -O3 included. Those flags carry -g, which --strip removes from the Linux wheels.
CIBW_REPAIR_WHEEL_COMMAND_LINUX: "auditwheel repair --strip -w {dest_dir} {wheel}"
jobs:
build_linux_x86_64:
name: Build Linux x86_64 wheels
strategy:
matrix:
os: ["ubuntu-24.04"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Build wheels
uses: pypa/cibuildwheel@v4.2.1
env:
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
CIBW_MUSLLINUX_X86_64_IMAGE: musllinux_1_2
CIBW_TEST_SKIP: "cp*-musllinux*"
CIBW_TEST_COMMAND: >
cd .. &&
pytest -k "not RSI and not threading" {project}/tests
CIBW_ARCHS_LINUX: x86_64
CIBW_BUILD_FRONTEND: build
CIBW_ENVIRONMENT_LINUX : >
PIP_NO_BUILD_ISOLATION=false
- name: Upload wheels
uses: actions/upload-artifact@v7
with:
path: ./wheelhouse/*.whl
name: "ta_lib-${{ github.ref_name }}-linux_x86_64"
build_linux_arm64:
name: Build Linux arm64 wheels
strategy:
matrix:
os: ["ubuntu-24.04-arm"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Build wheels
uses: pypa/cibuildwheel@v4.2.1
env:
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28
CIBW_MUSLLINUX_AARCH64_IMAGE: musllinux_1_2
CIBW_TEST_SKIP: "cp*-musllinux*"
CIBW_TEST_COMMAND: >
cd .. &&
pytest -k "not RSI and not threading" {project}/tests
CIBW_ARCHS_LINUX: aarch64
CIBW_BUILD_FRONTEND: build
CIBW_ENVIRONMENT_LINUX : >
PIP_NO_BUILD_ISOLATION=false
- name: Upload wheels
uses: actions/upload-artifact@v7
with:
path: ./wheelhouse/*.whl
name: "ta_lib-${{ github.ref_name }}-linux_arm64"
build_windows_amd64:
name: Build Windows amd64 wheels
strategy:
matrix:
os: ["windows-2025-vs2026"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout the repository
uses: actions/checkout@v7
- name: Set up MSVC for x64
uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64
- name: Build wheels
uses: pypa/cibuildwheel@v4.2.1
env:
CIBW_TEST_SKIP: "cp*"
CIBW_TEST_COMMAND: >
cd .. &&
pytest --rootdir=C: -k "not RSI and not threading" {project}/tests
MSBUILDTREATHIGHERTOOLSVERSIONASCURRENT: 1
CIBW_ARCHS_WINDOWS: AMD64
CIBW_ENVIRONMENT_WINDOWS: >
PIP_NO_BUILD_ISOLATION=false
- name: Upload wheel
uses: actions/upload-artifact@v7
with:
path: ./wheelhouse/*.whl
name: "ta_lib-${{ github.ref_name }}-win_amd64"
build_windows_x86:
name: Build Windows x86 wheels
strategy:
matrix:
os: ["windows-2025-vs2026"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout the repository
uses: actions/checkout@v7
- name: Set up MSVC for x86
uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64_x86
- name: Build wheels
uses: pypa/cibuildwheel@v4.2.1
env:
CIBW_TEST_SKIP: "cp*"
CIBW_TEST_COMMAND: >
cd .. &&
pytest --rootdir=C: -k "not RSI and not threading" {project}/tests
MSBUILDTREATHIGHERTOOLSVERSIONASCURRENT: 1
CIBW_ARCHS_WINDOWS: x86
CIBW_ENVIRONMENT_WINDOWS: >
PIP_NO_BUILD_ISOLATION=false
- name: Upload wheel
uses: actions/upload-artifact@v7
with:
path: ./wheelhouse/*.whl
name: "ta_lib-${{ github.ref_name }}-win32"
build_windows_arm64:
name: Build Windows arm64 wheels
strategy:
matrix:
os: ["windows-11-vs2026-arm"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout the repository
uses: actions/checkout@v7
- name: Set up MSVC for arm
uses: ilammy/msvc-dev-cmd@v1
with:
arch: arm64
- name: Build wheels
uses: pypa/cibuildwheel@v4.2.1
env:
CIBW_TEST_SKIP: "cp*"
CIBW_TEST_COMMAND: >
cd .. &&
pytest --rootdir=C: -k "not RSI and not threading" {project}/tests
MSBUILDTREATHIGHERTOOLSVERSIONASCURRENT: 1
CIBW_ARCHS_WINDOWS: ARM64
CIBW_ENVIRONMENT_WINDOWS: >
PIP_NO_BUILD_ISOLATION=false
- name: Upload wheel
uses: actions/upload-artifact@v7
with:
path: ./wheelhouse/*.whl
name: "ta_lib-${{ github.ref_name }}-win_arm64"
build_macos_x86_64:
name: Build MacOS x86_64 wheels
strategy:
matrix:
os: [macos-26-intel]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Build wheels
uses: pypa/cibuildwheel@v4.2.1
env:
CIBW_TEST_COMMAND: >
cd .. &&
pytest -k "not RSI and not threading" {project}/tests
CIBW_ARCHS_MACOS: x86_64
# In CC, not CFLAGS: setuptools replaces Python's own compile flags with an environment CFLAGS.
CIBW_ENVIRONMENT_MACOS : >
CC="clang -Werror=unguarded-availability"
PIP_NO_BUILD_ISOLATION=false
- name: Upload wheels
uses: actions/upload-artifact@v7
with:
path: ./wheelhouse/*.whl
name: "ta_lib-${{ github.ref_name }}-macos_x86_64"
build_macos_arm64:
name: Build MacOS arm64 wheels
strategy:
matrix:
os: [macos-26]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Build wheels
uses: pypa/cibuildwheel@v4.2.1
env:
CIBW_TEST_COMMAND: >
cd .. &&
python -c "import talib; assert talib._ta_lib._ta_get_runtime_info('vmath.transcendental') == 1, 'TA-Lib C is not using vForce'" &&
pytest -k "not RSI and not threading" {project}/tests
CIBW_ARCHS_MACOS: arm64
# In CC, not CFLAGS: setuptools replaces Python's own compile flags with an environment CFLAGS.
CIBW_ENVIRONMENT_MACOS : >
CC="clang -Werror=unguarded-availability"
PIP_NO_BUILD_ISOLATION=false
- name: Upload wheels
uses: actions/upload-artifact@v7
with:
path: ./wheelhouse/*.whl
name: "ta_lib-${{ github.ref_name }}-macos_arm64"