Skip to content

Commit f1e4bc4

Browse files
authored
Update matrix of supported Python versions and remove Cython < 3 tests (kivy#135)
* Update matrix of supported Python versions and remove Cython < 3 tests * Update deploy script * Update deploy script * Update deploy script * Update deploy script * Update deploy script
1 parent d22242d commit f1e4bc4

File tree

3 files changed

+14
-25
lines changed

3 files changed

+14
-25
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ on: [push, pull_request]
66
jobs:
77
deploy:
88
runs-on: macos-latest
9-
env:
10-
CIBW_BUILD_VERBOSITY: 3
11-
CIBW_BUILD: "cp37-macosx_x86_64 cp38-macosx_universal2 cp39-macosx_universal2 cp310-macosx_universal2 cp311-macosx_universal2 cp312-macosx_universal2"
12-
CIBW_ARCHS_MACOS: "x86_64 universal2"
13-
CIBW_TEST_COMMAND: python -c "from pyobjus import autoclass, objc_str"
14-
CIBW_TEST_SKIP: "*arm64*"
159
steps:
1610
- uses: actions/checkout@v5
1711

@@ -20,16 +14,19 @@ jobs:
2014
with:
2115
python-version: '3.x'
2216

23-
- name: Install dependencies
24-
run: python -m pip install --upgrade twine cibuildwheel~=2.16.2 cython setuptools
25-
2617
- name: Build sdist
2718
run: |
19+
pip install setuptools Cython
2820
python setup.py sdist --formats=gztar
2921
3022
- name: Build wheels
31-
run: |
32-
python -m cibuildwheel --output-dir dist
23+
uses: pypa/cibuildwheel@v3.3.0
24+
env:
25+
CIBW_ARCHS_MACOS: "universal2"
26+
CIBW_BUILD: "cp310-macosx_universal2 cp311-macosx_universal2 cp312-macosx_universal2 cp313-macosx_universal2 cp314-macosx_universal2"
27+
CIBW_TEST_COMMAND: python -c "from pyobjus import autoclass, objc_str"
28+
with:
29+
output-dir: dist
3330

3431
- name: Create artifacts
3532
uses: actions/upload-artifact@v4

.github/workflows/python-package.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,17 @@ on: [push, pull_request]
55
jobs:
66
build:
77

8-
name: "build (${{ matrix.runs_on }}, ${{ matrix.python }} - Cython ${{ matrix.cython }})"
8+
name: "build (${{ matrix.runs_on }}, ${{ matrix.python }}"
99
runs-on: ${{ matrix.runs_on }}
1010
strategy:
1111
matrix:
12-
# macos-latest (ATM macos-14) runs on Apple Silicon,
13-
# macos-13 runs on Intel
14-
runs_on: ['macos-latest', 'macos-13']
12+
runs_on: ['macos-latest', 'macos-15-intel']
1513
python:
16-
- "3.8"
17-
- "3.9"
1814
- "3.10"
1915
- "3.11"
2016
- "3.12"
21-
cython:
22-
- "<3"
23-
- ">=3"
17+
- "3.13"
18+
- "3.14"
2419
steps:
2520
- uses: actions/checkout@v5
2621

@@ -29,9 +24,6 @@ jobs:
2924
with:
3025
python-version: ${{ matrix.python }}
3126

32-
- name: Force Cython version
33-
run: sed -i.bak 's/"Cython"/"Cython${{matrix.cython}}"/' pyproject.toml
34-
3527
- name: Install project
3628
run: |
3729
pip install cython pytest setuptools

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ def tree(source, allowed_ext=data_allowed_ext, tree_name='share/pyobjus-'):
140140
'License :: OSI Approved :: MIT License',
141141
'Natural Language :: English',
142142
'Operating System :: MacOS',
143-
'Programming Language :: Python :: 3.8',
144-
'Programming Language :: Python :: 3.9',
145143
'Programming Language :: Python :: 3.10',
146144
'Programming Language :: Python :: 3.11',
147145
'Programming Language :: Python :: 3.12',
146+
'Programming Language :: Python :: 3.13',
147+
'Programming Language :: Python :: 3.14',
148148
'Topic :: Software Development :: Libraries :: Application Frameworks'
149149
],
150150
)

0 commit comments

Comments
 (0)