🐍 Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
docs: qualify ambiguous pixi install/build-docs tasks with -e default (#4639)
Himesh Rupchandani227d5c5a2572
diff --git a/AGENTS.md b/AGENTS.mdindex 2e210173c..8e5cf6eda 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -23,7 +23,7 @@ Use Pixi for project tasks and environment selection. The tasks call `uv`, and P```bashpixi install-pixi run install+pixi run -e default installpixi install -e py312pixi run -e py312 installpixi install -e py313@@ -41,7 +41,7 @@ pixi run typecheckpixi run toml-fmtpixi run doctestpixi run doctest-weights-pixi run build-docs+pixi run -e default build-docs```The `py312` and `py313` features select isolated `.venv-py312` and `.venv-py313` project environments automatically for install and test tasks.diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 077abf0bc..136fad5fe 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -88,7 +88,7 @@ The rest of this guide contains practical and technical guidance so nobody has t```bash# Create the default Pixi environment, then install development dependenciespixi install- pixi run install+ pixi run -e default install# For specific Python versionspixi install -e py312 # Python 3.12@@ -108,8 +108,8 @@ The rest of this guide contains practical and technical guidance so nobody has t```bash# Installation- pixi run install # Install dev dependencies- pixi run install-docs # Install dev + docs dependencies+ pixi run -e default install # Install dev dependencies+ pixi run -e default install-docs # Install dev + docs dependencies# Testingpixi run test # Run tests (configure via KORNIA_TEST_* env vars)@@ -134,7 +134,7 @@ The rest of this guide contains practical and technical guidance so nobody has tpixi run doctest # Run doctests# Documentation- pixi run build-docs # Build documentation+ pixi run -e default build-docs # Build documentation# Utilitiespixi run clean # Clean Python cache files@@ -158,7 +158,7 @@ The rest of this guide contains practical and technical guidance so nobody has tpixi run test```- **Dependencies:** Defined in `pyproject.toml`. Update it and run `pixi run install`.+ **Dependencies:** Defined in `pyproject.toml`. Update it and run `pixi run -e default install`.**CUDA:** The CUDA environment uses PyTorch with CUDA 12.1. Run `pixi run -e cuda install` to set it up.@@ -185,7 +185,7 @@ The rest of this guide contains practical and technical guidance so nobody has t1. Set up your development environment (see [above](#developing-kornia))2. Edit files in `docs/`-3. Build docs: `pixi run build-docs`+3. Build docs: `pixi run -e default build-docs`4. Preview: `open docs/build/html/index.html`5. Submit a PR following the [Pull Request](#pull-request) guidelinesdiff --git a/README.md b/README.mdindex 5434a3247..0b0e6ed4f 100644--- a/README.md+++ b/README.md@@ -179,7 +179,7 @@ For development, Kornia uses [pixi](https://pixi.sh) for fast Python package man# Create the Pixi environment and install development dependenciespixi install- pixi run install+ pixi run -e default install# Run testspixi run testdiff --git a/README_zh-CN.md b/README_zh-CN.mdindex e759a79cf..020eb3cc5 100644--- a/README_zh-CN.md+++ b/README_zh-CN.md@@ -92,7 +92,7 @@# 创建 Pixi 环境并安装开发依赖pixi install- pixi run install+ pixi run -e default install# 运行测试pixi run testdiff --git a/changelog.d/4639.fixed.md b/changelog.d/4639.fixed.mdnew file mode 100644index 000000000..78cb77267--- /dev/null+++ b/changelog.d/4639.fixed.md@@ -0,0 +1 @@+Setup documentation (`CONTRIBUTING.md`, `README.md`, `README_zh-CN.md`, `AGENTS.md`, `docs/export_support/README.md`) now qualifies the ambiguous Pixi tasks with `-e default`, so `pixi run install`, `pixi run install-docs` and `pixi run build-docs` work as documented instead of stopping with a "task is ambiguous" error or an environment picker.diff --git a/docs/export_support/README.md b/docs/export_support/README.mdindex f996c559f..9537d2614 100644--- a/docs/export_support/README.md+++ b/docs/export_support/README.md@@ -34,9 +34,9 @@ the right shape.## Regenerating the snapshot```bash-pixi run -e default install-docs && pixi run build-docs # once, so operators get cross-referenced+pixi run -e default install-docs && pixi run -e default build-docs # once, so operators get cross-referencedpython docs/export_support/run.py # ~2 h on 8 CPU cores; resumable-pixi run build-docs+pixi run -e default build-docs````run.py` writes per-group results and logs to `docs/export_support/results/` (git-ignored) anddiff --git a/docs/source/conf.py b/docs/source/conf.pyindex bb2163145..0c929af0c 100644--- a/docs/source/conf.py+++ b/docs/source/conf.py@@ -75,7 +75,7 @@ import torch.hub # noqa: E402_weights_cache = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "..", "weights")# Only when there is a restored cache to use and the developer has not pointed-# torch somewhere themselves: a local ``pixi run build-docs`` in a fresh clone has+# torch somewhere themselves: a local ``pixi run -e default build-docs`` in a fresh clone has# neither, and redirecting it would re-download all four checkpoints past a warm# ``~/.cache/torch/hub``.if os.path.isdir(_weights_cache) and not os.environ.get("TORCH_HOME"):