Poetry Git Branch Plugin📎
CI/CD | |
Package |
A Poetry plugin that sets an environment variable with the current Git branch name.
Documentation: https://dribia.github.io/poetry-git-branch-plugin
Source Code: https://github.com/dribia/poetry-git-branch-plugin
Key features📎
- Sets an environment variable with the current Git branch name.
- Allows to use the current Git branch name in any command executed by Poetry.
Installation📎
Depending on how you installed poetry, there are different ways to install this plugin.
The easiest way to install this plugin is to use the poetry self add
command:
poetry self add poetry-git-branch-plugin
If you installed poetry using pip
:
pip install poetry-git-branch-plugin
If you installed poetry using pipx
:
pipx inject poetry poetry-git-branch-plugin
You can also specify that a plugin is required for your project in the
tool.poetry.requires-plugins
section of the pyproject.toml
file:
[tool.poetry.requires-plugins]
poetry-git-branch-plugin = ">=0.0.1"