Skip to content

Commit 2ad71e7

Browse files
committed
try again
1 parent 6ddc08f commit 2ad71e7

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,23 +55,25 @@ jobs:
5555

5656
- name: Build and install Python package in-place
5757
working-directory: python
58-
run: uv run maturin develop
59-
58+
run: uv run --group dev maturin develop
59+
6060
- name: Test Python package
6161
working-directory: python
62-
run: uv run --project . python -m unittest discover -s tests
62+
run: uv run python -m unittest discover -s tests
6363

6464
- name: Build ontoenv wheel
6565
shell: bash
66-
run: uv run maturin build --release -m python/Cargo.toml
66+
working-directory: python
67+
run: uv run --group dev maturin build --release
6768

6869
- name: Run pyontoenv unit tests
6970
working-directory: pyontoenv-shim
7071
run: uv run python -m unittest discover -s tests
7172

7273
- name: Build pyontoenv shim wheel
7374
shell: bash
74-
run: uv build --project pyontoenv-shim --wheel
75+
working-directory: pyontoenv-shim
76+
run: uv build --wheel
7577

7678
- name: Test pyontoenv shim
7779
shell: bash

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ Project components:
1818
- `cargo test --workspace` exercises all Rust tests; the convenience wrapper `./test` also drives the Python suites.
1919

2020
### Python package (`python/`)
21-
- `uv run --project python maturin develop` builds the extension module in editable mode against the local Rust library.
22-
- `uv run --project python python -m unittest discover -s tests` runs the Python unit tests.
23-
- Generated wheels land in `python/target/wheels/` when you run `uv run maturin build --release -m python/Cargo.toml`.
21+
- From `python/`, run `uv run --group dev maturin develop` to build the extension module in editable mode against the local Rust library.
22+
- `uv run python -m unittest discover -s tests` (also from `python/`) executes the Python test suite.
23+
- Packages drop into `python/target/wheels/` after `uv run --group dev maturin build --release`.
2424

2525
### Compatibility shim (`pyontoenv-shim/`)
26-
- `uv build --project pyontoenv-shim --wheel` produces the `pyontoenv` wheel that re-exports the bindings.
27-
- `uv run --project pyontoenv-shim python -m unittest discover` validates the shim and its aliasing behavior.
26+
- From `pyontoenv-shim/`, run `uv build --wheel` to produce the `pyontoenv` wheel that re-exports the bindings.
27+
- `uv run python -m unittest discover -s tests` (inside `pyontoenv-shim/`) validates the shim and its aliasing behavior.
2828
- `uv run python scripts/test_pyontoenv.py` installs the freshly built wheels into a throwaway virtualenv and sanity-checks imports and the CLI.
2929
- The helper `./version <new-version>` bumps the workspace version and refreshes related manifests for both Rust and Python packages.
3030

test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cargo test --workspace
1111
echo "+ uv run maturin develop (python/)"
1212
(
1313
cd "$ROOT/python"
14-
uv run maturin develop
14+
uv run --group dev maturin develop
1515
)
1616

1717
echo "+ uv run python -m unittest discover -s tests (python/)"

0 commit comments

Comments
 (0)