-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Custom installation options present in the pyproject.toml #11887
Comments
Related: https://peps.python.org/pep-0771/ As a workaround for now, you could duplicate the |
Thanks @nathanjmcdougall . In my case, the installation order is also important. For example, [project]
name = "mineru"
version = "1.0.0"
requires-python = "~=3.12.0"
[project.optional-dependencies]
build = [
"setuptools",
"torch",
]
compile = [
"detectron2",
"magic-pdf[full]==1.1.0",
]
paddlepaddle-gpu = [
"paddlepaddle-gpu==3.0.0b2",
]
[dependency-groups]
dev = [
"poethepoet==0.32.2",
"pytest-cov==6.0.0",
"pytest==8.3.4",
]
[tool.uv]
package = false
prerelease = "allow"
no-build-isolation-package = ["detectron2"]
[tool.uv.sources]
detectron2 = { git = "https://github.com/facebookresearch/detectron2.git", branch = "main" }
paddlepaddle-gpu = { index = "paddlepaddle-gpu" }
[[tool.uv.index]]
name = "paddlepaddle-gpu"
url = "https://www.paddlepaddle.org.cn/packages/stable/cu118"
explicit = true
[tool.poe.tasks]
dev = "python src/main.py"
test = "pytest --verbose --verbose"
test-coverage = "pytest --cov=. --cov-report=xml"
I have to install based on order uv sync --extra=build
uv sync --extra=build --extra=compile
uv sync --extra=build --extra=compile --extra=paddlepaddle-gpu
uv sync --extra=build --extra=compile --extra=paddlepaddle-gpu --dev I wrote the reason why have to install like this at here if you are curious about why. I assume you are referring to project.optional-dependencies: which I do not think can help installing based on certain order. 😔 |
Ah I understand the issue now. An issue is the no-build-isolation workaround for So you want some declarative configuration which |
Yup, that will help Renovate, otherwise all dependencies failed to bump versions and just stuck there like
Thanks! |
Summary
I have some projects that need install by following certain steps
base on https://docs.astral.sh/uv/concepts/projects/config/#build-isolation
Currently Renovate cannot upgrade dependencies for these projects.
I originally asked at renovatebot/renovate#33811
This would need uv side to support to let Renovate know what is proper steps to install. It would be great to support a field so that Renovate knows how to install, thanks!☺️
The text was updated successfully, but these errors were encountered: