A Poetry plugin to override a version in a pyproject.toml from environment variable or build and publish command option
Project description
Poetry Arbitrary Version Plugin
A Poetry plugin that allows a project
builder to override the project version. A project version can be
overriden for example during CI process. The version can be overriden
using the environment variable PROJECT_OVERRIDE_VERSION
or
the --override-version
switch of the build command.
Install
Add the plugin to Poetry environment
$ poetry self add poetry-arbitrary-version-plugin
or install the plugin using pip
to the place where Poetry
is installed.
$ pip install poetry-arbitrary-version-plugin
Usage
Overriding a project version by PROJECT_OVERRIDE_VERSION
environment variable:
$ PROJECT_OVERRIDE_VERSION=3.2.1 poetry build -f sdist
Overriden project version from 0.8.0 to 3.2.1
Building poetry-arbitrary-version-plugin (3.2.1)
- Building sdist
- Built poetry_arbitrary_version_plugin-3.2.1.tar.gz
Overriding a project version by the --override-version
switch:
$ poetry build -f sdist --override-version=1.2.3
Overriden project version from 0.8.0 to 1.2.3
Building poetry-arbitrary-version-plugin (1.2.3)
- Building sdist
- Built poetry_arbitrary_version_plugin-1.2.3.tar.gz
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
File details
Details for the file poetry_version_override_plugin-0.1.4.tar.gz
.
File metadata
- Download URL: poetry_version_override_plugin-0.1.4.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20184a38f21eaf78d6b7be763b28940b61592568160508477d5733e333498294 |
|
MD5 | 9b596c1064e10704ab164772cdec5c8d |
|
BLAKE2b-256 | fbc7b4c77c64cd6f6f1bf0b8092bdee3cdb6023acedc776b2c420931ff14090d |
File details
Details for the file poetry_version_override_plugin-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: poetry_version_override_plugin-0.1.4-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f9376a424135031acfa5666525a899a7ca578b1e6b220663ec20618a1941e51 |
|
MD5 | adf57895beb2e1700ebf1712db38913b |
|
BLAKE2b-256 | 351c93dcf069cbd8cd1ab45f2c892d76483fc0e1f0475b8f13cb55ec305c096d |