-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI: Use uv
package and project manager on GHA and RTD
#569
Conversation
uv
package and project manageruv
package and project manager on GHA and RTD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
docs/requirements.txt
Outdated
# Install the local crate-docs-theme package by specifying parent directory, | ||
# because `pip` is run from there. | ||
--editable=. | ||
# Install the `crate-docs-theme` package from the local working tree | ||
# in editable mode. `pip` is invoked from the root directory. | ||
# | ||
# When using `uv`, don't use `--editable=.`. | ||
# https://github.com/astral-sh/uv/issues/10941 | ||
|
||
-e . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been fixed/improved swiftly by @charliermarsh, thank you!
- Understand
--editable=.
also inrequirements.txt
astral-sh/uv#10941 - Allow optional
=
for editables inrequirements.txt
astral-sh/uv#10954
Let's wait for a new release of uv
, then revert this change again. It does not make sense to merge it this way with a misleading indication that something would not be right. Given the current high release cadence, it will probably not be far away.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using --editable=.
works well now, thank you Charlie!
About
Add the
uv
program to the toolbox, in this case to speed up documentation rebuilds, both on GHA and RTD.Details
uv
is very versatile, and provides better support to work with virtualenvs in different situations, unique support for one-off scripts with inline dependencies, and much more.References
--editable=.
also inrequirements.txt
astral-sh/uv#10941