{"library":"poetry-dynamic-versioning","title":"Poetry Dynamic Versioning","description":"Poetry Dynamic Versioning is a plugin for Poetry (1.2.0+ and Poetry Core 1.0.0+) that enables dynamic versioning for Python projects based on tags in your version control system. It is powered by the Dunamai library and automatically inserts the correct version into relevant files during Poetry commands (like `poetry build`), reverting changes afterward to keep the repository clean. The current version is 1.10.0, and it maintains an active release cadence.","language":"python","status":"active","last_verified":"Wed May 13","install":{"commands":[],"cli":null},"imports":["This is a Poetry plugin and is configured via pyproject.toml and CLI commands, not direct Python imports in user code."],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# 1. Install the plugin (see 'Install' section for options based on your Poetry version)\n# For Poetry 1.2.0+:\npip install poetry-dynamic-versioning\n\n# 2. Navigate to your project directory\n# cd your-project\n\n# 3. Enable dynamic versioning for your project\npoetry dynamic-versioning enable\n\n# This command updates your pyproject.toml to look like this (simplified):\n# [project]\n# dynamic = [\"version\"]\n# name = \"your-project-name\"\n#\n# [tool.poetry]\n# version = \"0.0.0\" # Placeholder\n#\n# [tool.poetry-dynamic-versioning]\n# enable = true\n\n# 4. Create an initial Git tag\ngit init\ngit add .\ngit commit -m \"Initial commit\"\ngit tag v0.1.0\n\n# 5. Build your project to see the dynamic version in action\npoetry build","lang":"bash","description":"This quickstart demonstrates how to install the plugin, enable dynamic versioning for a project via the CLI command, and create a Git tag for version detection. The `poetry dynamic-versioning enable` command automatically configures `pyproject.toml` for you. Building the project will then use the version from your Git tag.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}