Skip to content

Commit d061d81

Browse files
authored
Build 3.13 wheels (#425)
* Build 3.13 wheels * bump to pypa/cibuildwheel@v2.21.3 * a few more 3.13s * uses: actions/setup-python@v5.3.0 * actions/checkout@v4.2.2 * docker/setup-qemu-action@v3.2.0 * actions/upload-artifact@v4.4.3 * actions/download-artifact@v4.1.8 * pypa/gh-action-pypi-publish@v1.10.3 * Steal from #416 * note PR
1 parent 4ccb2a2 commit d061d81

File tree

7 files changed

+33
-26
lines changed

7 files changed

+33
-26
lines changed

.github/workflows/build_docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
runs-on: ubuntu-22.04
1212

1313
steps:
14-
- uses: actions/checkout@v4.1.1
14+
- uses: actions/checkout@v4.2.2
1515
with:
1616
submodules: recursive
1717

18-
- uses: actions/setup-python@v5.0.0
18+
- uses: actions/setup-python@v5.3.0
1919
with:
2020
python-version: 3.11
2121

@@ -28,7 +28,7 @@ jobs:
2828
run: jupyter-book build docs/ --warningiserror --keep-going --all
2929

3030
- name: Upload artifacts
31-
uses: actions/upload-artifact@v4.3.1
31+
uses: actions/upload-artifact@v4.4.3
3232
with:
3333
name: html
3434
path: docs/_build/html

.github/workflows/coverage-lint-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
runs-on: ubuntu-22.04
1111

1212
steps:
13-
- uses: actions/checkout@v4.1.1
13+
- uses: actions/checkout@v4.2.2
1414
with:
1515
submodules: recursive
1616

17-
- uses: actions/setup-python@v5.0.0
17+
- uses: actions/setup-python@v5.3.0
1818
with:
1919
python-version: 3.11
2020

.github/workflows/coverage-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
runs-on: ubuntu-22.04
1111

1212
steps:
13-
- uses: actions/checkout@v4.1.1
13+
- uses: actions/checkout@v4.2.2
1414
with:
1515
submodules: recursive
1616

17-
- uses: actions/setup-python@v5.0.0
17+
- uses: actions/setup-python@v5.3.0
1818
with:
1919
python-version: 3.11
2020

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [macos-latest, windows-latest, ubuntu-22.04]
17-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
17+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
1818

1919
steps:
20-
- uses: actions/checkout@v4.1.1
20+
- uses: actions/checkout@v4.2.2
2121
with:
2222
submodules: recursive
2323

24-
- uses: actions/setup-python@v5.0.0
24+
- uses: actions/setup-python@v5.3.0
2525
with:
2626
python-version: '${{ matrix.python-version }}'
2727

.github/workflows/wheels.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
runs-on: ubuntu-22.04
2424

2525
steps:
26-
- uses: actions/checkout@v4.1.1
26+
- uses: actions/checkout@v4.2.2
2727
with:
2828
submodules: recursive
2929

3030
- name: Setup Python
31-
uses: actions/setup-python@v5.0.0
31+
uses: actions/setup-python@v5.3.0
3232
with:
3333
python-version: 3.11
3434

@@ -48,7 +48,7 @@ jobs:
4848
run: pytest
4949

5050
- name: Upload artifacts to GitHub
51-
uses: actions/upload-artifact@v4.3.1
51+
uses: actions/upload-artifact@v4.4.3
5252
with:
5353
name: temp_result_sdist
5454
path: ./dist
@@ -90,6 +90,9 @@ jobs:
9090
- os: ubuntu-22.04
9191
build: 'cp312-musllinux_x86_64'
9292
name: Linux Intel musl 64-bit 3.12
93+
- os: ubuntu-22.04
94+
build: 'cp313-musllinux_x86_64'
95+
name: Linux Intel musl 64-bit 3.13
9396

9497
- os: ubuntu-22.04
9598
build: 'cp38-manylinux_aarch64'
@@ -106,9 +109,12 @@ jobs:
106109
- os: ubuntu-22.04
107110
build: 'cp312-manylinux_aarch64'
108111
name: Linux Aarch64 3.12
112+
- os: ubuntu-22.04
113+
build: 'cp313-manylinux_aarch64'
114+
name: Linux Aarch64 3.13
109115

110116
steps:
111-
- uses: actions/checkout@v4.1.1
117+
- uses: actions/checkout@v4.2.2
112118
with:
113119
submodules: recursive
114120

@@ -124,11 +130,11 @@ jobs:
124130
125131
- name: Set up QEMU
126132
if: runner.os == 'Linux'
127-
uses: docker/setup-qemu-action@v3.0.0
133+
uses: docker/setup-qemu-action@v3.2.0
128134
with:
129135
platforms: aarch64
130136

131-
- uses: pypa/cibuildwheel@v2.17.0
137+
- uses: pypa/cibuildwheel@v2.21.3
132138
env:
133139
CIBW_TEST_REQUIRES: pytest pytest-cov numpy
134140
CIBW_TEST_COMMAND: pytest {project}/tests
@@ -140,7 +146,7 @@ jobs:
140146
pipx run twine check wheelhouse/*
141147
142148
- name: Upload artifacts to GitHub
143-
uses: actions/upload-artifact@v4.3.1
149+
uses: actions/upload-artifact@v4.4.3
144150
with:
145151
name: temp_result_${{ matrix.os }}-${{ strategy.job-index }}
146152
path: wheelhouse/*.whl
@@ -150,7 +156,7 @@ jobs:
150156
runs-on: ubuntu-latest
151157
steps:
152158
- name: Merge Artifacts
153-
uses: actions/upload-artifact/merge@v4
159+
uses: actions/upload-artifact/merge@v4.4.3
154160
with:
155161
name: wheels_and_sdist
156162
pattern: temp_result_*
@@ -164,11 +170,11 @@ jobs:
164170
runs-on: ubuntu-latest
165171

166172
steps:
167-
- uses: actions/download-artifact@v4.1.7
173+
- uses: actions/download-artifact@v4.1.8
168174
with:
169175
name: wheels_and_sdist
170176
path: dist
171177

172-
- uses: pypa/gh-action-pypi-publish@v1.8.14
178+
- uses: pypa/gh-action-pypi-publish@v1.10.3
173179
with:
174180
password: ${{ secrets.pypi_password }}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ avoid adding features or APIs which do not map onto the
1818

1919
None.
2020

21+
## [4.1.2] - 2024-10-26
22+
23+
- Build Python 3.13 wheels (#425)
24+
2125
## [4.1.1] - 2024-10-13
2226

2327
- Make sure docs and PyPI page are up-to-date.

pyproject.toml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = 'scikit_build_core.build'
44

55
[project]
66
name = 'h3'
7-
version = '4.1.1'
7+
version = '4.1.2'
88
description = "Uber's hierarchical hexagonal geospatial indexing system"
99
readme = 'readme.md'
1010
license = {file = 'LICENSE'}
@@ -30,6 +30,7 @@ classifiers = [
3030
'Programming Language :: Python :: 3.10',
3131
'Programming Language :: Python :: 3.11',
3232
'Programming Language :: Python :: 3.12',
33+
'Programming Language :: Python :: 3.13',
3334
'Operating System :: MacOS :: MacOS X',
3435
'Operating System :: POSIX :: Linux',
3536
'Operating System :: Microsoft :: Windows',
@@ -48,8 +49,8 @@ Changelog = 'https://package.readthedocs.io/en/latest/changelog.html'
4849
numpy = ['numpy']
4950
test = ['pytest', 'pytest-cov', 'flake8', 'pylint', 'numpy']
5051
all = [
52+
'h3[test]',
5153
'jupyter-book',
52-
'flake8',
5354
'sphinx>=7.3.3', # https://github.com/sphinx-doc/sphinx/issues/12290
5455
'jupyterlab',
5556
'jupyterlab-geojson',
@@ -59,10 +60,6 @@ all = [
5960
'contextily',
6061
'cartopy',
6162
'geoviews',
62-
'numpy',
63-
'pytest',
64-
'pytest-cov',
65-
'pylint',
6663
]
6764

6865
[tool.pytest.ini_options]

0 commit comments

Comments
 (0)