You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uv run python -c "from crazyflow.sim import Sim; Sim().reset()"
40
+
```
41
+
33
42
---
34
43
35
44
## GPU support
@@ -41,16 +50,33 @@ JAX defaults to CPU-only execution. The `gpu` extra swaps in `jax[cuda12]`, enab
41
50
42
51
## Developer install
43
52
44
-
[Pixi](https://pixi.sh/) creates a fully reproducible environment. This variant installs `crazyflow` in editable mode. Any source change takes effect immediately without reinstalling. Recommended for contributors and researchers who modify the simulator.
53
+
[Pixi](https://pixi.sh/) creates a fully reproducible environment (locked via `pixi.lock`). This variant installs `crazyflow` in editable mode. Any source change takes effect immediately without reinstalling. Recommended for contributors and researchers who modify the simulator.
54
+
55
+
[uv](https://docs.astral.sh/uv/) is supported as an alternative. `uv sync` creates a `.venv` with `crazyflow` installed editable plus the `dev` dependency group (tests, docs, ruff). The dependency groups (`tests`, `docs`, `dist`, `dev`) mirror the pixi features and are defined under `[dependency-groups]` in `pyproject.toml`. The uv lockfile is not committed — `pixi.lock` remains the canonical reproducible environment.
56
+
57
+
```bash
58
+
uv sync # core + dev group (default)
59
+
uv sync --group docs # only the docs group + core
60
+
uv sync --no-default-groups --extra gpu # core + GPU extra, no dev tooling
61
+
```
45
62
46
63
## Testing
47
64
48
65
Adds `pytest` and `pytest-markdown-docs` for running the test suite and doc snippet tests.
49
66
50
-
```bash
51
-
pixi run tests # unit and integration tests
52
-
pixi run test-docs # doc code snippet tests
53
-
```
67
+
=== "pixi"
68
+
69
+
```bash
70
+
pixi run tests # unit and integration tests
71
+
pixi run test-docs # doc code snippet tests
72
+
```
73
+
74
+
=== "uv"
75
+
76
+
```bash
77
+
uv run pytest -v tests # unit and integration tests
78
+
uv run pytest -v --markdown-docs --markdown-docs-syntax=superfences crazyflow/ docs/ --ignore=docs/gen_ref_pages.py
0 commit comments