Skip to main content

Some set of poetry plugins

Project description

Poem Plugins

Pypi Coverage Status

A set of plugins for Poetry.

How to use

Make sure you have Poetry version 1.2.0 or above. Read below for instructions to install it if you haven't.

Install Poem Plugins

Install this plugin to your Poetry:

$ poetry self add poem-plugins

Version Plugin

The poetry plugin for project versioning allows users to specify the version of their project via the provider other than the default pyproject.toml file. This can be useful for users who prefer to set the project version based on a git tag, for example.

Plugin can be configured via a section in the pyproject.toml file. To use the plugin, you will need to add a section to your pyproject.toml file that specifies the provider.

Here's an example of how you might configure the plugin in your pyproject.toml file:

[tool.poem-plugins.version]
provider = "git"

Likewise, you can specify a number of optional arguments to control the plugin behavior. Here are some of the arguments that you can use:

  • update_pyproject (required false, default false): plugin will not only use version from provider for building, but save it in pyproject.toml
  • write_version_file (required false, default false): plugin will create a file version.py inside a module, with version information.

You can specify provider-specific settings in your configuration. To specify provider-specific settings, you can use the tool.poem-plugins.version.{provider} section. Here are some of the arguments that you can use for git provider:

  • version_prefix (required false, default "v"): version tags must be starts with this prefix
  • format (required false, default "short"): plugin will use commit hash (long) or not (short) to build a project version

To build your project, run the poetry build command. The plugin will build the version via provider and use it to set the version for the project.

$ poetry build
poem-plugins: Setting version to: 0.1.0
Building awesome_package (0.1.0)
  - Building sdist
  - Built awesome_package-0.1.0.tar.gz
  - Building wheel
  - Built awesome_package-0.1.0-py3-none-any.whl```

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

poem_plugins-0.15.1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

poem_plugins-0.15.1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file poem_plugins-0.15.1.tar.gz.

File metadata

  • Download URL: poem_plugins-0.15.1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.4 Darwin/21.6.0

File hashes

Hashes for poem_plugins-0.15.1.tar.gz
Algorithm Hash digest
SHA256 a44d58f3ca39b8f97ef949b80369e8ea9f3057eca3d2fa28f89c430e8144c381
MD5 52c2c40f82aa2d2577bb49863f12e909
BLAKE2b-256 f42f5d2f23de1f606b8efaba03ab8a7562c271379f4631211532984c0d31a95b

See more details on using hashes here.

File details

Details for the file poem_plugins-0.15.1-py3-none-any.whl.

File metadata

  • Download URL: poem_plugins-0.15.1-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.4 Darwin/21.6.0

File hashes

Hashes for poem_plugins-0.15.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b01ce4d82d732c56258f0aa17bf22b8c0adeffa08b07e792adb12b92672d6c35
MD5 b0c97820302995763f9cbddeff22bd11
BLAKE2b-256 c6026dcbbc36be4e203580370ca2aca268581bcef4d91c3b80a9903544ffb96a

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