-
-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Labels
blockedWaiting on a dependencyWaiting on a dependency
Description
Hi,
I have a mono repo "mono-repo" which contains 2 subfolders "cli" and "sdk".
Both are intrinsically linked (the cli uses the sdk) and therefore I decided to have a common version number (hence the mono-repo, using git tag versions)
However they can be built and deployed independently.
The pyproject.toml for the cli is as follows:
[tool.poetry]
name = "my-cli"
version = "0.0.0"
description = "A command line interface to..."
readme = "README.md"
packages = [{ include = "my-cli" }]
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "semver"
[tool.poetry-dynamic-versioning.substitution]
files = ["*/__init__.py", "*/__version__.py", "*/_version.py"]
[tool.poetry.dependencies]
my-sdk = "0.0.0"
python = "^3.10"
click = "^8.1.3"
[tool.poetry.scripts]
cli = "my_cli.app:safe_entry_point"
[tool.poetry.group.dev.dependencies]
my-sdk = { path = "../my-sdk", develop = true }
pytest = "^7.2.2"
black = "^23.1.0"
isort = "^5.12.0"
flake8 = "^6.0.0"
[build-system]
requires = ["poetry-core", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"
When I try to build it fails due to the first dependency set to 0.0.0 (which does not exist).
Is there a way to have this updated as well as the tool.poetry.version?
Metadata
Metadata
Assignees
Labels
blockedWaiting on a dependencyWaiting on a dependency