Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,22 @@ jobs:
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist -i 3.11 -F pyo3/abi3-py311 -F duckdb-bundled
args: --release --out dist -i 3.11 -F pyo3/abi3-py311 -F duckdb-bundled -F openssl-vendored
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
manylinux: "2_28"
before-script-linux: |
case "${{ matrix.target }}" in
"aarch64" | "armv7" | "ppc64le")
# NOTE: pypa/manylinux docker images are Debian based
sudo apt-get update
sudo apt-get install -y pkg-config libssl-dev
;;
"x86_64")
# NOTE: rust-cross/manylinux docker images are CentOS based
yum update -y
yum install -y openssl openssl-devel perl-IPC-Cmd
;;
esac
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand All @@ -64,7 +77,7 @@ jobs:
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist -i 3.11 -F pyo3/abi3-py311 -F duckdb-bundled
args: --release --out dist -i 3.11 -F pyo3/abi3-py311 -F duckdb-bundled -F openssl-vendored
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
manylinux: musllinux_1_2
- name: Upload wheels
Expand Down
11 changes: 11 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ crate-type = ["cdylib"]

[features]
duckdb-bundled = ["stac-duckdb/bundled"]
openssl-vendored = ["dep:openssl"]

[dependencies]
clap = "4.5.31"
Expand All @@ -18,6 +19,7 @@ futures-core = "0.3.31"
futures-util = "0.3.31"
geoarrow-schema = "0.4.0"
geojson = "0.24.1"
openssl = { version = "0.10", features = ["vendored"], optional = true }
parquet = "56.0.0"
pyo3 = { version = "0.26.0", features = ["extension-module"] }
pyo3-arrow = "0.12.0"
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ mod walk;
mod write;

use error::Error;
#[cfg(feature = "openssl-vendored")]
use openssl as _;
use pyo3::prelude::*;

type Result<T> = std::result::Result<T, Error>;
Expand Down