Skip to content

Commit 83a07ec

Browse files
kongchen1992meta-codesync[bot]
authored andcommitted
{Build} Packaging - Align Gen2 Pilot Dataset deps and add wheel workflow
Summary: Explanation: `projectaria_gen2_pilot_dataset` declared its dependencies in `setup.py` independently of the build graph, and both Rerun migrations (0.26.2, then 0.33.0) updated the build files while leaving `setup.py` behind. The published package therefore pinned `rerun-notebook==0.22.1`, two major versions stale, and omitted `numpy`, `tqdm` and `rerun-sdk` even though the data provider and the viewer import all three directly. - Declares every direct dependency in `install_requires`, using `rerun-sdk[notebook]==0.33.0` as `projectaria_tools` now does, so the SDK and the notebook widget cannot drift apart again. - Adds a `projectaria-tools>=2.2.0` floor. The dependency was fully unpinned, so an environment with an older `projectaria-tools` already installed satisfied the requirement and was never upgraded, then failed at runtime on APIs the loader needs. - Drops `extras_require`. Everything installs by default, so `pip install projectaria-gen2-pilot-dataset` no longer needs the `[all]` suffix; the README and the download docs are updated to match. - Raises `python_requires` to `>=3.10` and drops the 3.8 / 3.9 classifiers, to match `projectaria_tools`. - Reads the version from `version.txt` instead of hardcoding it in `setup.py`, as `projectaria_tools` does, and bumps it to `1.1.0a1`. - Adds `.github/workflows/build-wheels-and-deploy.yml`: builds the sdist and wheel, runs `twine check`, installs the wheel and smoke tests the API and the console script, and can publish to test or prod PyPI from a manual dispatch. This package is pure Python, so one `py3-none-any` wheel replaces the `cibuildwheel` matrix that `projectaria_tools` needs for its native extension. - Adds a minimal `pyproject.toml` for a deterministic build backend, and a `MANIFEST.in` so `version.txt` ships in the sdist. Without it, a wheel built from the sdist cannot resolve the version. Reproducibility: The workflow runs on pull requests and on a weekly schedule; publishing is gated behind a manual dispatch. The install step resolves the full dependency set from PyPI, so an unpublished or unsatisfiable pin fails the run. Reviewed By: SeaOtocinclus Differential Revision: D115946262 fbshipit-source-id: b9b661bfce91b504fd3afeba6e9848581e860c97
1 parent 4c501d9 commit 83a07ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

website/docs-research-tools/dataset/pilot/download.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ source ~/projectaria_gen2_python_env/bin/activate
8282
python3 -m pip install --upgrade pip
8383

8484
# Install the package with all dependencies
85-
python3 -m pip install 'projectaria-gen2-pilot-dataset[all]'
85+
python3 -m pip install projectaria-gen2-pilot-dataset
8686
```
8787

8888
</TabItem>
8989
</Tabs>
9090

9191
### What Gets Installed
9292

93-
The `projectaria-gen2-pilot-dataset[all]` package includes:
93+
The `projectaria-gen2-pilot-dataset` package includes:
9494

9595
- **Core data loaders**: Access VRS files, MPS outputs, and algorithm results
9696
- **Visualization tools**: Rerun integration for 3D visualization

0 commit comments

Comments
 (0)