admin管理员组文章数量:1305164
I am building a monorepo that manages multiple projects with independent requirements. I am using UV to manage libraries in a monorepo and using databricks asset bundle to deploy the projects as workflows. This is the folder structure:
datalab/
│── databricks_init_script.sh
│── databricks.yml
│── databricks_init_script.sh
│── projects
│ └── project1
│ ├── pyproject.toml
│ ├── notebooks
│ └── src
│──shared
│ ├── pyproject.toml
│ ├── src/
│ └── <other necessary files>
In the toml file within each project I'm including the shared modules requirements with
dependencies = [
"data-lab-shared"
]
[tool.uv.sources]
data-lab-shared = {path = "../../shared"}
And in the toml file in the shared folder I'm including this build-system
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
In the init script I am build a wheel file and install the packages using
uv build
and pip install the wheel file.
The problem is that the packages specified in the shared folder are not being installed. What would be a correct way to make sure that these packages are installed?
本文标签: pythonBuild a monorepo with UV and common packagesStack Overflow
版权声明:本文标题:python - Build a monorepo with UV and common packages - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741798060a2398055.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论