Repository navigation
[deps] adding ray dependency skill - #63712
Conversation
Signed-off-by: elliot-barn <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request introduces a new Claude skill markdown file (SKILL.md) to document Ray's Python dependency management system, including its architecture, workflows, and rules. The reviewer provided three valuable corrections: clarifying exceptions to the setup.py synchronization rule (such as cupy-cuda12x and watchfiles), fixing a template variable typo (${PYTHON_VERSION_STR} to ${PYTHON_VERSION}), and correcting a reference about which compiled requirements file is shared across multiple Python versions.
| 1. **Source-file pins only.** Resolve conflicts by editing `python/requirements.txt`, `python/requirements/**/*.txt`, or `python/requirements/**/*.in`. Do **not** hand-edit `python/requirements_compiled*.txt` — it is a build artifact and gets overwritten on the next compile. | ||
| 2. **No `ci/ci.sh` post-process hooks** for individual package fixes. Only touch `ci/ci.sh` for genuinely structural changes (new functions, new input files passed to the compiler). Never as an after-the-fact lock mutator. | ||
| 3. **Use the dual-exact-pin-with-markers pattern** when a package needs different versions on different Python versions and the lock is consumed as a constraint across multiple Python targets. See *Marker preservation* below. | ||
| 4. **`python/requirements.txt` ↔ `python/setup.py` must stay in sync.** The packages under the `## setup.py install_requires` block in `python/requirements.txt` are mirrored into `setup_spec.install_requires` in `python/setup.py` (around line 405). When you add, remove, or change a version bound for any package in that block, edit **both** files in the same change. The list in `setup.py` is what end users actually install via `pip install ray`; `requirements.txt` is the dev-side source of truth. Drift between them ships broken installs. |
There was a problem hiding this comment.
The packages cupy-cuda12x and watchfiles are listed under the ## setup.py install_requires block in python/requirements.txt, but they are actually mirrored in setup_spec.extras in python/setup.py rather than setup_spec.install_requires. Clarifying this exception in the skill description will prevent the model from incorrectly attempting to sync these packages into setup_spec.install_requires.
| 4. **`python/requirements.txt` ↔ `python/setup.py` must stay in sync.** The packages under the `## setup.py install_requires` block in `python/requirements.txt` are mirrored into `setup_spec.install_requires` in `python/setup.py` (around line 405). When you add, remove, or change a version bound for any package in that block, edit **both** files in the same change. The list in `setup.py` is what end users actually install via `pip install ray`; `requirements.txt` is the dev-side source of truth. Drift between them ships broken installs. | |
| 4. **python/requirements.txt ↔ python/setup.py must stay in sync.** The core packages under the setup.py install_requires block in python/requirements.txt are mirrored into setup_spec.install_requires in python/setup.py (around line 405). Note that some packages in this block (such as cupy-cuda12x and watchfiles) are exceptions and are mirrored in setup_spec.extras instead of setup_spec.install_requires. When you add, remove, or change a version bound for any package in that block, edit **both** files in the same change. The list in setup.py is what end users actually install via pip install ray; requirements.txt is the dev-side source of truth. Drift between them ships broken installs. |
Skill to upgrade ray dependencies Signed-off-by: elliot-barn <[email protected]>
Skill to upgrade ray dependencies Signed-off-by: elliot-barn <[email protected]>
Skill to upgrade ray dependencies Signed-off-by: elliot-barn <[email protected]> Signed-off-by: 400Ping <[email protected]>
Skill to upgrade ray dependencies