Skip to content

Commit 80e18d1

Browse files
CzakipsobolewskiPhDwillingccnstt
authored
Update instruction how to update contraints files (#672)
# References and relevant issues closes #670 napari/napari#7642 napari/napari#7487 # Description After the most recent updates of constraints update, we could simplify this instrucition. --------- Co-authored-by: Peter Sobolewski <[email protected]> Co-authored-by: Carol Willing <[email protected]> Co-authored-by: Constantin Aronssohn <[email protected]>
1 parent 7f928a3 commit 80e18d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/developers/coredev/release.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,12 @@ These constraints files need to be updated at least weekly on Monday, and may al
136136
To get updated constraints for a PR, use `@napari-bot update constraints` in a PR comment, then follow the instruction added by the bot to the conversation.
137137

138138
````{admonition} Example
139-
To update the docs constraints file, assuming you have the `napari/napari` repo and `napari/docs` repo cloned next to each other, you can install [uv](https://astral.sh/blog/uv) and run the following command from the root of the `napari` repo:
139+
To manually update the constraints files, you need to have the [`uv`](https://github.com/astral-sh/uv) tool installed, then copy
140+
and run the command from the second line of a given constraints file.
141+
For example:
140142
141143
```bash
142-
uv pip compile --python-version 3.11 --upgrade --output-file resources/constraints/constraints_py3.11_docs.txt pyproject.toml resources/constraints/version_denylist.txt resources/constraints/version_denylist_examples.txt ../docs/requirements.txt resources/constraints/pydantic_le_2.txt --extra pyqt5 --extra pyqt6 --extra pyside2 --extra pyside6_experimental --extra testing --extra testing_extra --extra optional
144+
uv pip compile --python-version 3.12 --output-file resources/constraints/constraints_py3.12.txt pyproject.toml resources/constraints/version_denylist.txt --extra pyqt6 --extra pyside2 --extra pyside6_experimental --extra testing --extra testing_extra --extra optional
143145
```
144146
````
145147

0 commit comments

Comments
 (0)