Skip to content
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

how to fallback source if workspace is not available #10731

Open
KevinNitroG opened this issue Jan 18, 2025 · 0 comments
Open

how to fallback source if workspace is not available #10731

KevinNitroG opened this issue Jan 18, 2025 · 0 comments

Comments

@KevinNitroG
Copy link

Currently I have a monorepo project. But each subrepos inside (git submodules) aren't published to Pypi.

this is the structure

 packages
├──  cli   <---- cpn-cli
├──  core  <---- cpn-core
└──  docs  <---- cpn-docs

the cli require the core one, and I have set the source of the core in side the cli:

...
[tool.uv.sources]
cpn-core = { git = "https://github.com/check-phat-nguoi/cpn-core/" }
...

Also with the docs, require cli and core

The large repo has the pyproject.toml:

[project]
dependencies = []

[tool.uv.sources]
cpn-core = { workspace = true }
cpn-cli = { workspace = true }
cpn-docs = { workspace = true }

[tool.uv.workspace]
members = ["packages/cli", "packages/core", "packages/docs"]

The problem is with the core, cli, docs repo on github themselves, cannot resolve the source of their deps. For ex the cli doesn't know where the source of the core is, without defining the source in cli's pyproject. But, if it the source is defined, then it will override the large's repo source, which make no sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant