Skip to content

Commit 3ec7d6d

Browse files
authored
BLD/REL: add libspatialite to the wheels (#546)
1 parent e211838 commit 3ec7d6d

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
- The GDAL library included in the wheels is upgraded from 3.10.3 to 3.11.4 (#578).
2525
- Add libkml driver to the wheels for more recent Linux platforms supported
2626
by manylinux_2_28, MacOS, and Windows (#561).
27+
- Add libspatialite to the wheels (#546).
2728
- Minimum required Python version is now 3.10 (#557).
2829
- Wheels are now available for Python 3.14 (#579).
2930

ci/vcpkg-manylinux2014.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
"name": "pyogrio",
33
"version": "0.12.0",
44
"dependencies": [
5+
{
6+
"name": "libspatialite",
7+
"default-features": false
8+
},
59
{
610
"name": "gdal",
711
"default-features": false,
8-
"features": ["recommended-features", "curl", "geos", "iconv", "openssl"]
12+
"features": ["recommended-features", "curl", "geos", "iconv", "libspatialite", "openssl"]
913
}
1014
],
1115
"builtin-baseline": "da096fdc67db437bee863ae73c4c12e289f82789"

ci/vcpkg.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22
"name": "pyogrio",
33
"version": "0.12.0",
44
"dependencies": [
5+
{
6+
"name": "libspatialite",
7+
"default-features": false
8+
},
59
{
610
"name": "gdal",
711
"default-features": false,
812
"features": [
9-
"recommended-features", "curl", "geos", "iconv", "libkml", "openssl"
13+
"recommended-features", "curl", "geos", "iconv", "libkml", "libspatialite", "openssl"
1014
]
1115
}
1216
],

pyogrio/tests/test_geopandas_io.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,11 @@ def use_arrow_context():
104104
del os.environ["PYOGRIO_USE_ARROW"]
105105

106106

107-
def spatialite_available(path):
108-
try:
109-
_ = read_dataframe(
110-
path, sql="select spatialite_version();", sql_dialect="SQLITE"
111-
)
112-
return True
113-
except Exception:
114-
return False
107+
def test_spatialite_available(test_gpkg_nulls):
108+
"""Check if SpatiaLite is available by running a simple SQL query."""
109+
_ = read_dataframe(
110+
test_gpkg_nulls, sql="select spatialite_version();", sql_dialect="SQLITE"
111+
)
115112

116113

117114
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)