Hello,
I have a working pyproject.toml used by other package management tool, but it is not compatible with uv.
During CICD, I want to use uv to create a .venv, and manually install some packages.
I used:
- name: Install uv
uses: astral-sh/setup-uv@v8.0.0
with:
enable-cache: true
activate-environment: true
This raises an error, saying that uv cannot parse some special syntax in pyproject.toml, which is expected.
I can reproduce the same error local with uv venv .venv.
However, I can bypass it locally with uv venv .venv --no-project, but I haven't found an equivalent param in astral-sh/setup-uv.
Did I miss it, or is it not supported ?
There's no env var for this locally either, I must use inline param --no-project. If uv supports an env var, then I can use it in both locally and in CICD
I know I can set the param activate-environment: false to use system level environement, but for my specific use case, I need an venv in CICD.
Hello,
I have a working
pyproject.tomlused by other package management tool, but it is not compatible with uv.During CICD, I want to use uv to create a
.venv, and manually install some packages.I used:
This raises an error, saying that uv cannot parse some special syntax in
pyproject.toml, which is expected.I can reproduce the same error local with
uv venv .venv.However, I can bypass it locally with
uv venv .venv --no-project, but I haven't found an equivalent param inastral-sh/setup-uv.Did I miss it, or is it not supported ?
There's no env var for this locally either, I must use inline param
--no-project. If uv supports an env var, then I can use it in both locally and in CICDI know I can set the param
activate-environment: falseto use system level environement, but for my specific use case, I need an venv in CICD.