mtkennerly / poetry-dynamic-versioning

Plugin for Poetry to enable dynamic versioning based on VCS tags
MIT License
607 stars 35 forks source link

Auto Bumping the version is not working for poetry packages #186

Closed Aviputta1 closed 2 months ago

Aviputta1 commented 3 months ago

Hi I am part of Devops Team, i tried to publish the poetry package to artifacroty by using poetry-dynamic-versioning. but it's not taking the git tags or git commits. here's my sample pyproject.toml `[tool.poetry] name = "pypi-demo" version = "0.0.0" description = "" readme = "README.md"

[tool.poetry.dependencies] python = "^3.9"

[tool.poetry.dev-dependencies] pytest = "^5.2" poetry-dynamic-versioning = "^0.13.0"

[build-system] requires = ["poetry-core>=1.0.0"]

[tool.poetry.plugins."poetry.application.plugin"] "poetry_dynamic_versioning" = "poetry_dynamic_versioning.logic"

build-backend = "poetry.core.masonry.api"

[tool.poetry-dynamic-versioning] enable = true tag-pattern = "{version}"`

is something wrong in metadata configurations?

mtkennerly commented 3 months ago

Hi! A few things:

I recommend reviewing the setup instructions: https://github.com/mtkennerly/poetry-dynamic-versioning?tab=readme-ov-file#installation

mtkennerly commented 2 months ago

Let me know if you still need help sorting out the configuration. In the meantime, I'll go ahead and close this.