Commit 9f92f6e
Fix Cython 3 build, upgrade cibuildwheel to v3, resolve SonarCloud security hotspots (#152)
* Initial plan
* Drop support for EOL Python versions, test all alive versions (3.10-3.13)
- Remove EOL Python 3.6-3.9 from classifiers and cibuildwheel
- Add Python 3.12, 3.13 to classifiers
- Add python_requires='>=3.10' to setup.py
- Update Cython requirement to >=3.0 for Python 3.12+ support
- Add test matrix for Python 3.10, 3.11, 3.12, 3.13
- Update cibuildwheel to v2.22, upload-artifact to v4, codecov to v4
- Update CI OS runners to latest versions
- Add workflow permissions for security
Co-authored-by: whtsky <876694+whtsky@users.noreply.github.com>
* Pin macOS runners to macos-13 and macos-14 for native architecture builds
Replace macos-latest with explicit macos-13 (Intel x86_64) and macos-14
(Apple Silicon arm64) runners to ensure native architecture wheel builds.
Change CIBW_ARCHS to CIBW_ARCHS_LINUX since multi-arch builds via QEMU
are only needed on Linux.
Co-authored-by: whtsky <876694+whtsky@users.noreply.github.com>
* Fix Cython 3 compilation: remove Python 2 `long` type from encode_func
In Python 3, `long` doesn't exist (unified with `int`). Cython 3
rejects `long` as a Python type identifier. Remove the `long: encode_long`
entry and route `int` to the untyped `encode_long` handler so
arbitrary-size Python integers are supported.
Co-authored-by: whtsky <876694+whtsky@users.noreply.github.com>
* Upgrade cibuildwheel to v3, fix SonarCloud security hotspots
- Switch from pypa/cibuildwheel@v2 GitHub Action to CLI-based setup
(pip install cibuildwheel==3.3.1) following the official README
- Update OS matrix to use native ARM runners instead of QEMU:
ubuntu-24.04-arm, windows-11-arm, macos-15-intel, macos-latest
- Add persist-credentials: false to all actions/checkout steps
(fixes 3 SonarCloud security hotspots)
- Update actions to v6: checkout, setup-python, upload-artifact
Co-authored-by: whtsky <876694+whtsky@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: whtsky <876694+whtsky@users.noreply.github.com>1 parent 40f2a53 commit 9f92f6e
6 files changed
Lines changed: 43 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
11 | | - | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 17 | + | |
19 | 18 | | |
20 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
21 | 26 | | |
22 | 27 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
33 | 38 | | |
34 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
35 | 42 | | |
36 | 43 | | |
37 | | - | |
| 44 | + | |
38 | 45 | | |
| 46 | + | |
39 | 47 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | | - | |
| 9 | + | |
8 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
9 | 14 | | |
10 | | - | |
11 | | - | |
| 15 | + | |
12 | 16 | | |
13 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
14 | 21 | | |
15 | 22 | | |
16 | 23 | | |
| |||
19 | 26 | | |
20 | 27 | | |
21 | 28 | | |
22 | | - | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | | - | |
152 | | - | |
| 150 | + | |
| 151 | + | |
153 | 152 | | |
154 | 153 | | |
155 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | 79 | | |
84 | 80 | | |
| 81 | + | |
| 82 | + | |
85 | 83 | | |
86 | 84 | | |
87 | 85 | | |
88 | 86 | | |
89 | 87 | | |
90 | 88 | | |
91 | 89 | | |
| 90 | + | |
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments