Skip to main content

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

CI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

poetry_arbitrary_version_plugin-0.9.2.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file poetry_arbitrary_version_plugin-0.9.2.tar.gz.

File metadata

File hashes

Hashes for poetry_arbitrary_version_plugin-0.9.2.tar.gz
Algorithm Hash digest
SHA256 2ca439ced9dd5cb391b295dd8554c723903dba6ee39189096f6165ad59702142
MD5 6ccea202ccc66ac4d897a72ff0df55b9
BLAKE2b-256 6547f4f362acd99107d3ab5b2541e0a987126f2cd2021749dec2f9199d40f855

See more details on using hashes here.

File details

Details for the file poetry_arbitrary_version_plugin-0.9.2-py3-none-any.whl.

File metadata

File hashes

Hashes for poetry_arbitrary_version_plugin-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 37192a908659e7962d541bcf82cb2fc0d767987133cdde6feaa9d5e9ef9bea89
MD5 c0cca13f862ad48e279957a0b5c0f770
BLAKE2b-256 2be0074d05d8c21668a2268a0af50995a67896b273b47e63645501d62450b057

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page