-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: packaging * fix: ci building * fix: don't do a beta * ci: switch back to stable * fix: add maturin to dev dependencies We use it in our test script * fix: ci path * nit: two lines
- Loading branch information
Showing
11 changed files
with
540 additions
and
217 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,29 @@ Responses may not match the input. | |
|
||
## Development | ||
|
||
See [CONTRIBUTING.md](./CONTRIBUTING.md) for information about contributing to this project. | ||
Get [uv](https://docs.astral.sh/uv/getting-started/installation/) and [Rust](https://rustup.rs/). | ||
Then: | ||
|
||
```shell | ||
git clone [email protected]:developmentseed/cql2-rs.git | ||
cd cql2-rs | ||
uv sync | ||
scripts/test | ||
``` | ||
|
||
To lint all files: | ||
|
||
```shell | ||
scripts/lint | ||
``` | ||
|
||
To serve the docs locally: | ||
|
||
```shell | ||
uv run mkdocs serve # http://127.0.0.1:8000/cql2-rs/ | ||
``` | ||
|
||
See [CONTRIBUTING.md](./CONTRIBUTING.md) for more information about contributing to this project. | ||
|
||
## License | ||
|
||
|
File renamed without changes.
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 |
---|---|---|
@@ -1,18 +1,30 @@ | ||
[project] | ||
name = "cql2-rs" | ||
version = "0.0.0" | ||
description = "This Python package is non-releaseable and is only used for building the documentation" | ||
requires-python = ">=3.12" | ||
name = "cql2" | ||
requires-python = ">=3.9" | ||
classifiers = [ | ||
"Programming Language :: Rust", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.scripts] | ||
cql2 = "cql2:main" | ||
|
||
[tool.uv] | ||
dev-dependencies = [ | ||
"maturin>=1.7.8", | ||
"mike>=2.1.3", | ||
"mkdocs-material[imaging]>=9.5.39", | ||
"mkdocstrings[python]>=0.26.1", | ||
"mypy>=1.11.2", | ||
"pytest>=8.3.3", | ||
"ruff>=0.6.9", | ||
] | ||
|
||
[tool.uv.sources] | ||
python = { workspace = true } | ||
[build-system] | ||
requires = ["maturin>=1.7,<2.0"] | ||
build-backend = "maturin" | ||
|
||
[tool.uv.workspace] | ||
members = ["python/"] | ||
[tool.maturin] | ||
manifest-path = "python/Cargo.toml" |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env sh | ||
|
||
set -e | ||
|
||
cargo fmt --check | ||
cargo check --workspace | ||
cargo clippy --workspace --tests -- -D warnings | ||
uv run mypy python | ||
uv run ruff check | ||
uv run ruff format --check |
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 @@ | ||
#!/usr/bin/env sh | ||
|
||
set -e | ||
|
||
cargo test | ||
uv run maturin dev --uv | ||
uv run pytest |
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
Oops, something went wrong.