A poetry plugin to store the current git branch into environment variable when poetry runs any command.
Project description
Poetry Git Branch Plugin
A simple poetry plugin that sets an environment variable containing the name of the current checked-out branch before executing any poetry command.
Why
Our main use case is in situations where DBT needs access to the current git branch name to set the name of the target schema.
Installation
The plugin cannot be installed with poetry self add
because it is not published on PyPI.
Instead, you can install it by building a wheels file
poetry build
and installing it with your system-wide or pyenv-wide pip.
# not inside pycharm nor inside a poetry shell
pip install /path/to/poetry-git-branch-plugin/dist/poetry_git_branch_plugin-0.1.0-py3-none-any.whl
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for poetry_git_branch_plugin-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23f60da6940dfb0e12299789bf30348e62114e23939ca10afe6f6822de9855a8 |
|
MD5 | f9f7680a30056637d5537ce877f937ce |
|
BLAKE2b-256 | 08c269407b1b34561b5c77a34bc48dcbe05e5fbf5d770379e64f7536c12de19a |
Close
Hashes for poetry_git_branch_plugin-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9a373e543e16204cce5e34918acb7944fcf9c8efb91da832445922e7ed3141a |
|
MD5 | 6dd5c120bfff26055b7746fc814c4006 |
|
BLAKE2b-256 | c46d357e6a85c187bda612f96594f6845e0e2a9704174475318fbafc4a50fcd6 |