-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python: separate compute functions into
geoarrow.rust.compute
module (
#767) todo: update docs site
- Loading branch information
1 parent
b79a429
commit f3fec6b
Showing
54 changed files
with
1,578 additions
and
973 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
[package] | ||
name = "geoarrow-rust-compute" | ||
version = { workspace = true } | ||
authors = { workspace = true } | ||
edition = { workspace = true } | ||
description = "Efficient, vectorized geospatial operations in Python." | ||
readme = "README.md" | ||
repository = { workspace = true } | ||
homepage = { workspace = true } | ||
license = { workspace = true } | ||
keywords = { workspace = true } | ||
categories = { workspace = true } | ||
rust-version = { workspace = true } | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
[lib] | ||
name = "_compute" | ||
crate-type = ["cdylib"] | ||
|
||
[features] | ||
default = ["libc", "rayon"] | ||
libc = ["geoarrow/polylabel"] | ||
rayon = ["geoarrow/rayon"] | ||
|
||
[dependencies] | ||
arrow = { workspace = true } | ||
arrow-array = { workspace = true } | ||
arrow-buffer = { workspace = true } | ||
pyo3 = { workspace = true } | ||
pyo3-arrow = { workspace = true } | ||
pyo3-geoarrow = { path = "../pyo3-geoarrow" } | ||
geo = "0.28" | ||
geoarrow = { workspace = true, features = ["geozero"] } | ||
geozero = { version = "0.13", features = ["with-svg"] } | ||
numpy = "0.21" | ||
serde_json = "1" | ||
thiserror = "1" | ||
url = "2.5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# `geoarrow.rust.compute` | ||
|
||
Compute operations on GeoArrow data. | ||
|
||
## Documentation | ||
|
||
Refer to the documentation at [geoarrow.org/geoarrow-rs/python](https://geoarrow.org/geoarrow-rs/python). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[build-system] | ||
requires = ["maturin>=1.4.0,<2.0"] | ||
build-backend = "maturin" | ||
|
||
[project] | ||
name = "geoarrow-rust-compute" | ||
requires-python = ">=3.8" | ||
dependencies = ["arro3-core", "geoarrow-rust-core", "pyproj"] | ||
classifiers = [ | ||
"Programming Language :: Rust", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
] | ||
dynamic = ["version"] | ||
|
||
[tool.maturin] | ||
features = ["pyo3/extension-module"] | ||
module-name = "geoarrow.rust.compute._compute" | ||
python-source = "python" |
5 changes: 5 additions & 0 deletions
5
python/geoarrow-compute/python/geoarrow/rust/compute/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from . import enums | ||
from ._compute import * | ||
from ._compute import ___version | ||
|
||
__version__: str = ___version() |
Oops, something went wrong.