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
87 changes: 25 additions & 62 deletions Cargo.lock

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

10 changes: 4 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,19 @@ pyo3-async-runtimes = { version = "0.23.0", features = [
"tokio",
"tokio-runtime",
] }
pyo3-log = "0.12.1"
pythonize = "0.23.0"
serde = "1.0.217"
serde_json = "1.0.138"
stac = { version = "0.12.0", features = [
stac = { features = [
"geoparquet-compression",
"object-store-all",
], git = "https://github.com/stac-utils/stac-rs" }
stac-api = { version = "0.7.1", features = [
stac-api = { features = [
"client",
"python",
], git = "https://github.com/stac-utils/stac-rs" }
stac-cli = { version = "0.5.1", git = "https://github.com/stac-utils/stac-rs" }
stac-duckdb = { version = "0.1.0", git = "https://github.com/stac-utils/stac-rs" }
stac-cli = { git = "https://github.com/stac-utils/stac-rs" }
stac-duckdb = { git = "https://github.com/stac-utils/stac-rs" }
thiserror = "2.0.11"
clap = "4.5.30"
tracing-subscriber = "0.3.19"
tokio = { version = "1.43.0", features = ["rt-multi-thread"] }
2 changes: 1 addition & 1 deletion scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set -e

uv run maturin dev --uv
uv run pytest "$@"
uv run stacrs --help
uv run stacrs translate spec-examples/v1.1.0/simple-item.json /dev/null
4 changes: 0 additions & 4 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,12 @@ pub fn main(py: Python<'_>) -> PyResult<i64> {
.getattr("signal")?
.call1((signal.getattr("SIGINT")?, signal.getattr("SIG_DFL")?))?;
let args = Stacrs::parse_from(std::env::args_os().skip(1));
tracing_subscriber::fmt()
.with_max_level(args.log_level())
.init();
std::process::exit(
tokio::runtime::Builder::new_multi_thread()
.enable_all()
.build()
.unwrap()
.block_on(async {
// We skip one because the first argument is going to be the python interpreter.
match args.run().await {
Ok(()) => 0,
Err(err) => {
Expand Down
1 change: 1 addition & 0 deletions src/duckdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ impl DuckdbClient {
let config = Config {
use_s3_credential_chain,
use_hive_partitioning,
convert_wkb: true,
};
let client = Client::with_config(config)?;
Ok(DuckdbClient(Mutex::new(client)))
Expand Down
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ type Result<T> = std::result::Result<T, Error>;

#[pymodule]
fn stacrs(py: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<()> {
pyo3_log::init();

m.add("StacrsError", py.get_type::<error::StacrsError>())?;

m.add_class::<duckdb::DuckdbClient>()?;
Expand Down
Loading