You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
I'm using pdm for a project, and may migrate to uv one day, but not all at once. uv doesn't support the ${PROJECT_ROOT} sytnax , as shown in the PDM doc
I don't need uv to support all PDM specific syntax, but I would like to support --no-project in Github Action.
[dependency-groups]
dev = [
"-e file:///${PROJECT_ROOT}/projects/pkg",
"-e file:///${PROJECT_ROOT}/projects/svc",
]
Activity
eifinger commentedon Apr 16, 2026
Can you give me the exact special syntax or in an anonymous version of it that I can use as a unit test?
copdips commentedon Apr 16, 2026
I'm using
pdmfor a project, and may migrate to uv one day, but not all at once.uvdoesn't support the${PROJECT_ROOT}sytnax , as shown in the PDM docI don't need uv to support all PDM specific syntax, but I would like to support
--no-projectin Github Action.Add input no-project in combination with activate-environment (#856)
eifinger commentedon Apr 17, 2026
Since this is a very small, non-intrusive addition I added it in the new release: https://github.com/astral-sh/setup-uv/releases/tag/v8.1.0. Please give it a try.
Maybe uv will introduce a ENV var so we can remove this input again.
copdips commentedon Apr 17, 2026
@eifinger
Thanks for fast release, it works perfectly:
chore(deps): update astral-sh/setup-uv action to v8.1.0 (#436)
Update https://github.com/astral-sh/setup-uv action to v8 (#99)
chore(deps): update astral-sh/setup-uv action to v8 (#7)
Update astral-sh/setup-uv action to v9 (#12)
Merge branch 'renovate/major-all-major' into 'master'