uv
uv copied to clipboard
Question: How to use uv with poetry on CI?
Is it possible to use uv to speed-up poetry install on CI?
for now:
poetry export > requirements.txt
uv venv
uv pip install -r requirements
poetry install
We'd need to add support for reading Poetry's dependency format, I'm not sure if we will.
Related:
- #1650
for now:
poetry export > requirements.txt uv venv uv pip install -r requirements poetry install
This works, but poetry export > requirements.txt creates UTF16-LE file, while uv pip install -r requirements.txt expects UTF-8, so I manually need to re-save it in UTF8. It is not a problem, but would be cool if uv would detect input file encoding...
uv pip install -r .\requirements.txt
error: failed to read from file `.\requirements.txt`
Caused by: stream did not contain valid UTF-8
for now:
poetry export > requirements.txt uv venv uv pip install -r requirements poetry install
Do not redirect stream from poetry export, use -o flag to specify output file (it properly handles user messages and the actual dependency output).
As of https://github.com/astral-sh/uv/pull/2633 we support reading this directly.