From 826135631391343da2098e3a98f886ca9c9b4d4c Mon Sep 17 00:00:00 2001 From: Jongbin Jung Date: Mon, 13 Jul 2026 14:50:35 -0700 Subject: [PATCH 01/11] Merge pull request #494 from dyrpsf/fix-android-cross-compile Fix: Resolve Android cross-compilation failure (Issue #458) (cherry picked from commit 6fd9eff86b57606b08afbf2020aa6f10657d0c47) --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 40ce38e..52a76f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,16 @@ cmake_minimum_required(VERSION 3.15...3.26) +# --- BEGIN ANDROID CROSS-COMPILATION FIX --- +# Buildozer/python-for-android uses standard pip install which doesn't natively +# pass a CMake toolchain file to scikit-build-core. This detects the Android compiler +# from the environment and forces CMake into cross-compilation mode to prevent +# it from building host (x86_64) binaries. +if("$ENV{CC}" MATCHES "android" AND NOT DEFINED CMAKE_SYSTEM_NAME) + message(STATUS "Detected Android cross-compilation via environment variables. Setting CMAKE_SYSTEM_NAME=Android") + set(CMAKE_SYSTEM_NAME Android) +endif() +# --- END ANDROID CROSS-COMPILATION FIX --- + project(${SKBUILD_PROJECT_NAME} LANGUAGES C) set(CMAKE_POSITION_INDEPENDENT_CODE ON) From fbd46cca341028a7293712e722d244c9fa0cd96c Mon Sep 17 00:00:00 2001 From: Jongbin Jung Date: Wed, 12 Aug 2026 10:29:17 -0700 Subject: [PATCH 02/11] Merge pull request #493 from aureliobarbosa/test_python3.14_freethreaded Fix wheels for python 3.14 free thread (cherry picked from commit 65f85a58a322dab43f708a6603ae2005ccf19b21) --- CHANGELOG.md | 1 + pyproject.toml | 1 + src/h3/_cy/cells.pyx | 1 + src/h3/_cy/edges.pyx | 1 + src/h3/_cy/error_system.pyx | 1 + src/h3/_cy/latlng.pyx | 1 + src/h3/_cy/memory.pyx | 1 + src/h3/_cy/to_multipoly.pyx | 1 + src/h3/_cy/util.pyx | 1 + src/h3/_cy/vertex.pyx | 1 + 10 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 651c76c..7ad11bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ avoid adding features or APIs which do not map onto the [H3 core API](https://uber.github.io/h3/#/documentation/api-reference/). ## Unreleased +- Fix wheels for Python 3.14.6 free-threading ## [4.5.0] - 2026-05-29 diff --git a/pyproject.toml b/pyproject.toml index f3304b9..2474f88 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,6 +30,7 @@ classifiers = [ 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: 3.13', 'Programming Language :: Python :: 3.14', + 'Programming Language :: Python :: Free Threading', 'Operating System :: MacOS :: MacOS X', 'Operating System :: POSIX :: Linux', 'Operating System :: Microsoft :: Windows', diff --git a/src/h3/_cy/cells.pyx b/src/h3/_cy/cells.pyx index 78d2561..8b84f9d 100644 --- a/src/h3/_cy/cells.pyx +++ b/src/h3/_cy/cells.pyx @@ -1,3 +1,4 @@ +# cython: freethreading_compatible=True cimport h3lib from .h3lib cimport bool, int64_t, H3int, H3ErrorCodes diff --git a/src/h3/_cy/edges.pyx b/src/h3/_cy/edges.pyx index bd0aa7c..1d2ef74 100644 --- a/src/h3/_cy/edges.pyx +++ b/src/h3/_cy/edges.pyx @@ -1,3 +1,4 @@ +# cython: freethreading_compatible=True cimport h3lib from .h3lib cimport bool, H3int diff --git a/src/h3/_cy/error_system.pyx b/src/h3/_cy/error_system.pyx index fc18f46..5fe5cd9 100644 --- a/src/h3/_cy/error_system.pyx +++ b/src/h3/_cy/error_system.pyx @@ -1,3 +1,4 @@ +# cython: freethreading_compatible=True """ Exceptions from the h3-py library have three possible sources: diff --git a/src/h3/_cy/latlng.pyx b/src/h3/_cy/latlng.pyx index d83a9d3..1593d43 100644 --- a/src/h3/_cy/latlng.pyx +++ b/src/h3/_cy/latlng.pyx @@ -1,3 +1,4 @@ +# cython: freethreading_compatible=True from libc.stdint cimport uint64_t cimport h3lib diff --git a/src/h3/_cy/memory.pyx b/src/h3/_cy/memory.pyx index 0852105..963b00d 100644 --- a/src/h3/_cy/memory.pyx +++ b/src/h3/_cy/memory.pyx @@ -1,3 +1,4 @@ +# cython: freethreading_compatible=True from cython.view cimport array from .h3lib cimport H3int diff --git a/src/h3/_cy/to_multipoly.pyx b/src/h3/_cy/to_multipoly.pyx index ed3e763..cb5e5e2 100644 --- a/src/h3/_cy/to_multipoly.pyx +++ b/src/h3/_cy/to_multipoly.pyx @@ -1,3 +1,4 @@ +# cython: freethreading_compatible=True cimport h3lib from h3lib cimport H3int from .util cimport check_cell, coord2deg diff --git a/src/h3/_cy/util.pyx b/src/h3/_cy/util.pyx index 9b070f9..06823d0 100644 --- a/src/h3/_cy/util.pyx +++ b/src/h3/_cy/util.pyx @@ -1,3 +1,4 @@ +# cython: freethreading_compatible=True from .h3lib cimport ( H3int, H3str, diff --git a/src/h3/_cy/vertex.pyx b/src/h3/_cy/vertex.pyx index 26a674a..99cc5ef 100644 --- a/src/h3/_cy/vertex.pyx +++ b/src/h3/_cy/vertex.pyx @@ -1,3 +1,4 @@ +# cython: freethreading_compatible=True cimport h3lib from h3lib cimport bool, H3int From 44fdd920aca40b9a6640ae561d24b0791bc01179 Mon Sep 17 00:00:00 2001 From: Jongbin Jung Date: Mon, 24 Aug 2026 14:15:06 -0700 Subject: [PATCH 03/11] Merge pull request #500 from Hashim1999164/fix/geo-to-h3shape-replace-assert Raise ValueError instead of assert in geo_to_h3shape (cherry picked from commit 51dbbeb74f9b08c6ee447afed8e2763cc76d9f5f) --- src/h3/_h3shape.py | 6 +++++- tests/test_lib/polyfill/test_h3.py | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/h3/_h3shape.py b/src/h3/_h3shape.py index 5c36295..ad2e760 100644 --- a/src/h3/_h3shape.py +++ b/src/h3/_h3shape.py @@ -308,7 +308,11 @@ def geo_to_h3shape(geo): # get dict geo = geo.__geo_interface__ - assert isinstance(geo, dict) # todo: remove + if not isinstance(geo, dict): + raise ValueError( + 'geo must be a dict or implement __geo_interface__, got: ' + + str(type(geo)) + ) t = geo['type'] coord = geo['coordinates'] diff --git a/tests/test_lib/polyfill/test_h3.py b/tests/test_lib/polyfill/test_h3.py index 72ddd58..fed297f 100644 --- a/tests/test_lib/polyfill/test_h3.py +++ b/tests/test_lib/polyfill/test_h3.py @@ -302,6 +302,11 @@ def test_geo_to_h3shape_passthrough(): assert h3.geo_to_h3shape(shape) is shape +def test_geo_to_h3shape_rejects_non_dict(): + with pytest.raises(ValueError, match='dict or implement __geo_interface__'): + h3.geo_to_h3shape('not a geo object') + + def test_polyfill_down_under(): sydney = [ (-33.8556, 151.1979), From 1d6b00e614bc64818957f4fa1edad72b3ce0b5ea Mon Sep 17 00:00:00 2001 From: Jongbin Jung Date: Mon, 24 Aug 2026 14:16:37 -0700 Subject: [PATCH 04/11] Merge pull request #499 from jongbinjung/jongbin/freethreading Add CI test and build for python3.14t (cherry picked from commit 871841452fd059e703de4237beab86100a148f19) --- .github/workflows/tests.yml | 2 +- .github/workflows/wheels.yml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7920a84..f3dcc3c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: os: [macos-latest, windows-latest, ubuntu-22.04] - python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] + python-version: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.14t'] steps: - uses: actions/checkout@v6.0.2 diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index dbc8d6d..b9bc985 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -80,6 +80,9 @@ jobs: - os: windows-11-arm build: 'cp314-win_arm64' name: Windows ARM64 3.14 + - os: windows-11-arm + build: 'cp314t-win_arm64' + name: Windows ARM64 3.14t - os: ubuntu-22.04 build: 'cp*-manylinux_x86_64' @@ -100,6 +103,9 @@ jobs: - os: ubuntu-22.04 build: 'cp314-musllinux_x86_64' name: Linux Intel musl 64-bit 3.14 + - os: ubuntu-22.04 + build: 'cp314t-musllinux_x86_64' + name: Linux Intel musl 64-bit 3.14t - os: ubuntu-22.04 build: 'cp310-manylinux_aarch64' @@ -116,6 +122,9 @@ jobs: - os: ubuntu-22.04 build: 'cp314-manylinux_aarch64' name: Linux Aarch64 3.14 + - os: ubuntu-22.04 + build: 'cp314t-manylinux_aarch64' + name: Linux Aarch64 3.14t steps: - uses: actions/checkout@v6.0.2 From ffa9c4462188ef1238ede858cbb0e90aa4d8f394 Mon Sep 17 00:00:00 2001 From: Jongbin Jung Date: Tue, 8 Sep 2026 14:32:12 -0700 Subject: [PATCH 05/11] Merge pull request #502 from dyrpsf/fix-geo-type-validation fix: replace geo input assert with ValueError and add test (cherry picked from commit c38c1e42c3b076a5e738b77621df43a9051328bc) --- tests/test_lib/polyfill/test_polyfill.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_lib/polyfill/test_polyfill.py b/tests/test_lib/polyfill/test_polyfill.py index 9bdd9af..f70c639 100644 --- a/tests/test_lib/polyfill/test_polyfill.py +++ b/tests/test_lib/polyfill/test_polyfill.py @@ -151,6 +151,9 @@ def test_bad_geo_input(): with pytest.raises(ValueError): h3.geo_to_cells({'type': 'not a shape', 'coordinates': None}, 9) + with pytest.raises(ValueError): + h3.geo_to_cells('not a shape', 9) + def test_cells_to_geo(): h = '89754e64993ffff' From 1aba69c2afdf895ec960c4023485d662a1180b0e Mon Sep 17 00:00:00 2001 From: Jongbin Jung Date: Thu, 8 Oct 2026 21:21:49 -0700 Subject: [PATCH 06/11] Merge pull request #505 from kwy404/fix-latlngpoly-closed-ring-validation fix: validate LatLngPoly loop length after dropping the closing point (cherry picked from commit 169035d81d9cd54831b582b6c1eeb5c761c3a56b) --- src/h3/_h3shape.py | 2 +- tests/test_lib/polyfill/test_polygon_class.py | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/h3/_h3shape.py b/src/h3/_h3shape.py index ad2e760..f92d61e 100644 --- a/src/h3/_h3shape.py +++ b/src/h3/_h3shape.py @@ -54,7 +54,7 @@ class LatLngPoly(H3Shape): def __init__(self, outer, *holes): loops = [outer] + list(holes) for loop in loops: - if len(loop) in (1, 2): + if len(loop) > 0 and len(_open_ring(loop)) < 3: raise ValueError('Non-empty LatLngPoly loops need at least 3 points.') point_dimensions = set(map(len, loop)) diff --git a/tests/test_lib/polyfill/test_polygon_class.py b/tests/test_lib/polyfill/test_polygon_class.py index 59e8da2..a3639b6 100644 --- a/tests/test_lib/polyfill/test_polygon_class.py +++ b/tests/test_lib/polyfill/test_polygon_class.py @@ -50,3 +50,16 @@ def test_bad_subclass(): with pytest.raises(ValueError): h3.h3shape_to_cells_experimental(shoop, res=9) + + +def test_closed_loop_with_too_few_points(): + # a closed loop of 3 points only has 2 distinct points once the + # repeated closing point is removed + a, b = (37.68, -122.54), (37.82, -122.34) + outer = [(37.68, -122.54), (37.68, -122.34), (37.82, -122.34)] + + with pytest.raises(ValueError, match='at least 3 points'): + h3.LatLngPoly([a, b, a]) + + with pytest.raises(ValueError, match='at least 3 points'): + h3.LatLngPoly(outer, [a, b, a]) From 2d55d6ea6beef697094747d9e70a3743be39c2de Mon Sep 17 00:00:00 2001 From: Jongbin Jung Date: Mon, 19 Oct 2026 11:23:25 -0700 Subject: [PATCH 07/11] Merge pull request #507 from kwy404/fix-is-valid-out-of-range-index fix: return False from is_valid_* for indexes outside the uint64 range (cherry picked from commit 83fac55493f55f0719a70f6948cf56751faca8bf) --- src/h3/api/basic_int/__init__.py | 8 ++++---- tests/test_lib/test_cells_and_edges.py | 8 ++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/h3/api/basic_int/__init__.py b/src/h3/api/basic_int/__init__.py index 1086a63..4b070d7 100644 --- a/src/h3/api/basic_int/__init__.py +++ b/src/h3/api/basic_int/__init__.py @@ -139,7 +139,7 @@ def is_valid_index(h): try: h = _in_scalar(h) return _cy.is_valid_index(h) - except (ValueError, TypeError): + except (ValueError, TypeError, OverflowError): return False @@ -154,7 +154,7 @@ def is_valid_cell(h): try: h = _in_scalar(h) return _cy.is_valid_cell(h) - except (ValueError, TypeError): + except (ValueError, TypeError, OverflowError): return False @@ -169,7 +169,7 @@ def is_valid_directed_edge(edge): try: e = _in_scalar(edge) return _cy.is_valid_directed_edge(e) - except (ValueError, TypeError): + except (ValueError, TypeError, OverflowError): return False @@ -1365,5 +1365,5 @@ def is_valid_vertex(v): try: v = _in_scalar(v) return _cy.is_valid_vertex(v) - except (ValueError, TypeError): + except (ValueError, TypeError, OverflowError): return False diff --git a/tests/test_lib/test_cells_and_edges.py b/tests/test_lib/test_cells_and_edges.py index 4b8e107..d817180 100644 --- a/tests/test_lib/test_cells_and_edges.py +++ b/tests/test_lib/test_cells_and_edges.py @@ -482,6 +482,14 @@ def test_edge_is_valid_fail(): assert not h3.is_valid_directed_edge(e_invalid) +def test_is_valid_out_of_uint64_range(): + for h in ['10000000000000000', '-1']: + assert not h3.is_valid_index(h) + assert not h3.is_valid_cell(h) + assert not h3.is_valid_directed_edge(h) + assert not h3.is_valid_vertex(h) + + def test_get_pentagons(): out = h3.get_pentagons(0) From c7626b06033fb3cc53af957a13adc72749c8f699 Mon Sep 17 00:00:00 2001 From: Jongbin Jung Date: Mon, 19 Oct 2026 14:17:19 -0700 Subject: [PATCH 08/11] Merge pull request #506 from shaan-forks/ci/python-3.15 Add CI test and build for Python 3.15 and 3.15t (cherry picked from commit f9e35e39443e0ffefc6489f7db6ab8683c35ea65) --- .github/workflows/tests.yml | 2 +- .github/workflows/wheels.yml | 20 +++++++++++++++++++- CHANGELOG.md | 1 + pyproject.toml | 1 + 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f3dcc3c..f7a9854 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: os: [macos-latest, windows-latest, ubuntu-22.04] - python-version: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.14t'] + python-version: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.14t', '3.15', '3.15t'] steps: - uses: actions/checkout@v6.0.2 diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index b9bc985..1de5a80 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -83,6 +83,12 @@ jobs: - os: windows-11-arm build: 'cp314t-win_arm64' name: Windows ARM64 3.14t + - os: windows-11-arm + build: 'cp315-win_arm64' + name: Windows ARM64 3.15 + - os: windows-11-arm + build: 'cp315t-win_arm64' + name: Windows ARM64 3.15t - os: ubuntu-22.04 build: 'cp*-manylinux_x86_64' @@ -106,6 +112,12 @@ jobs: - os: ubuntu-22.04 build: 'cp314t-musllinux_x86_64' name: Linux Intel musl 64-bit 3.14t + - os: ubuntu-22.04 + build: 'cp315-musllinux_x86_64' + name: Linux Intel musl 64-bit 3.15 + - os: ubuntu-22.04 + build: 'cp315t-musllinux_x86_64' + name: Linux Intel musl 64-bit 3.15t - os: ubuntu-22.04 build: 'cp310-manylinux_aarch64' @@ -125,6 +137,12 @@ jobs: - os: ubuntu-22.04 build: 'cp314t-manylinux_aarch64' name: Linux Aarch64 3.14t + - os: ubuntu-22.04 + build: 'cp315-manylinux_aarch64' + name: Linux Aarch64 3.15 + - os: ubuntu-22.04 + build: 'cp315t-manylinux_aarch64' + name: Linux Aarch64 3.15t steps: - uses: actions/checkout@v6.0.2 @@ -158,7 +176,7 @@ jobs: with: platforms: aarch64 - - uses: pypa/cibuildwheel@v3.3.1 + - uses: pypa/cibuildwheel@v4.2.1 env: CIBW_BUILD_FRONTEND: 'build[uv]' CIBW_TEST_REQUIRES: pytest pytest-cov numpy diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ad11bf..9f23b02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ avoid adding features or APIs which do not map onto the ## Unreleased - Fix wheels for Python 3.14.6 free-threading +- Add Python 3.15 and 3.15t wheels ## [4.5.0] - 2026-05-29 diff --git a/pyproject.toml b/pyproject.toml index 2474f88..4430799 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,6 +30,7 @@ classifiers = [ 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: 3.13', 'Programming Language :: Python :: 3.14', + 'Programming Language :: Python :: 3.15', 'Programming Language :: Python :: Free Threading', 'Operating System :: MacOS :: MacOS X', 'Operating System :: POSIX :: Linux', From 1634ad5f066d98f29561973935c08cbc22e26628 Mon Sep 17 00:00:00 2001 From: Jongbin Jung Date: Fri, 13 Nov 2026 13:38:19 -0800 Subject: [PATCH 09/11] Merge pull request #512 from kwy404/fix-multipoly-experimental-duplicates fix: don't return a cell twice from h3shape_to_cells_experimental for a LatLngMultiPoly (cherry picked from commit cc6f8825ca6ce1b5be116997b0e8f670d881cb77) --- src/h3/_cy/latlng.pyx | 8 ++++++-- tests/test_lib/polyfill/test_h3.py | 14 ++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/h3/_cy/latlng.pyx b/src/h3/_cy/latlng.pyx index 1593d43..630d3ad 100644 --- a/src/h3/_cy/latlng.pyx +++ b/src/h3/_cy/latlng.pyx @@ -262,11 +262,15 @@ def polygons_to_cells_experimental(polygons, int res, int flag): # probably super inefficient, but it is working! # tood: move this to C + # a cell can overlap more than one polygon, so skip the ones already added + seen = set() k = 0 for mv in mvs: for v in mv: - hmm.ptr[k] = v - k += 1 + if v not in seen: + seen.add(v) + hmm.ptr[k] = v + k += 1 return hmm.to_mv() diff --git a/tests/test_lib/polyfill/test_h3.py b/tests/test_lib/polyfill/test_h3.py index fed297f..a6966b9 100644 --- a/tests/test_lib/polyfill/test_h3.py +++ b/tests/test_lib/polyfill/test_h3.py @@ -207,6 +207,20 @@ def test_poly_to_cells_experimental_mpoly(): )) +def test_poly_to_cells_experimental_mpoly_no_duplicates(): + # cells that overlap both polygons should only be returned once + a = h3.LatLngPoly([(37.70, -122.50), (37.70, -122.45), (37.75, -122.45)]) + b = h3.LatLngPoly([(37.70, -122.449), (37.70, -122.40), (37.75, -122.40)]) + mpoly = h3.LatLngMultiPoly(a, b) + + out = h3.h3shape_to_cells_experimental(mpoly, res=7, contain='overlap') + + expected = set(h3.h3shape_to_cells_experimental(a, res=7, contain='overlap')) + expected |= set(h3.h3shape_to_cells_experimental(b, res=7, contain='overlap')) + assert len(out) == len(expected) + assert set(out) == expected + + def test_polyfill_with_hole(): poly = h3.LatLngPoly(sf_7x7, sf_hole1) From 7c24f20689169ca672b732a9dd189cd2a8b81db9 Mon Sep 17 00:00:00 2001 From: Jongbin Jung Date: Fri, 13 Nov 2026 13:39:59 -0800 Subject: [PATCH 10/11] Merge pull request #511 from sebxt/fix/geo-empty-polygon-typeerror Handle empty GeoJSON Polygon in geo_to_h3shape (cherry picked from commit 87d1ccb8c46802ebac7f37ce03b05f2f64e21a42) --- src/h3/_h3shape.py | 4 ++++ tests/test_lib/polyfill/test_h3.py | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/src/h3/_h3shape.py b/src/h3/_h3shape.py index f92d61e..8cfecf0 100644 --- a/src/h3/_h3shape.py +++ b/src/h3/_h3shape.py @@ -230,6 +230,10 @@ def _remove_z(ll1): def _LL2_to_polygon(ll2): + if len(ll2) == 0: + # empty GeoJSON Polygon, like `shapely.Polygon().__geo_interface__` + return LatLngPoly([]) + ll2 = [ _remove_z(ll1) for ll1 in ll2 diff --git a/tests/test_lib/polyfill/test_h3.py b/tests/test_lib/polyfill/test_h3.py index a6966b9..6327cf8 100644 --- a/tests/test_lib/polyfill/test_h3.py +++ b/tests/test_lib/polyfill/test_h3.py @@ -321,6 +321,18 @@ def test_geo_to_h3shape_rejects_non_dict(): h3.geo_to_h3shape('not a geo object') +def test_geo_to_h3shape_empty_polygon(): + # e.g., shapely.Polygon().__geo_interface__ + geo = MockGeoInterface({'type': 'Polygon', 'coordinates': ()}) + + shape = h3.geo_to_h3shape(geo) + assert isinstance(shape, h3.LatLngPoly) + assert shape.outer == () + assert shape.holes == () + + assert h3.geo_to_cells(geo, 9) == [] + + def test_polyfill_down_under(): sydney = [ (-33.8556, 151.1979), From 0ae4515b6b9c437f80f061548ad7a2a95d5a3dc3 Mon Sep 17 00:00:00 2001 From: Jongbin Jung Date: Fri, 13 Nov 2026 14:30:35 -0800 Subject: [PATCH 11/11] Prep for v4.5.1 release Co-Authored-By: Claude Code --- CHANGELOG.md | 11 ++++++++++- pyproject.toml | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f23b02..b08eb92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,8 +15,17 @@ avoid adding features or APIs which do not map onto the [H3 core API](https://uber.github.io/h3/#/documentation/api-reference/). ## Unreleased + +## [4.5.1] - 2026-11-13 + - Fix wheels for Python 3.14.6 free-threading -- Add Python 3.15 and 3.15t wheels +- Add Python 3.14t, 3.15 and 3.15t wheels +- Fix Android cross-compilation with Buildozer (#494) +- Raise `ValueError` instead of `assert` in `geo_to_h3shape` (#500, #502) +- Fix `LatLngPoly` loop length check for closed rings (#505) +- Return `False` from `is_valid_*` for out-of-range integers (#507) +- Handle empty GeoJSON Polygon in `geo_to_h3shape` (#511) +- Fix duplicate cells from `h3shape_to_cells_experimental` for `LatLngMultiPoly` (#512) ## [4.5.0] - 2026-05-29 diff --git a/pyproject.toml b/pyproject.toml index 4430799..ca79213 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = 'scikit_build_core.build' [project] name = 'h3' -version = '4.5.0' +version = '4.5.1' description = "Uber's hierarchical hexagonal geospatial indexing system" readme = 'readme.md' license = {file = 'LICENSE'}