Some set of poetry plugins
Project description
Poem Plugins
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
Add tool section in project pyproject.toml
[tool.poem-plugins.version]
enabled = true
provider = "git"
# Create a file with version inside a project
write_version_file = true
# Save new version on pyproject
update_pyproject = true
[tool.poem-plugins.version.git]
# Version tags must be starts with this prefix
version_prefix = "v"
# Version format with commit hash (long) or not (short)
format = "short"
Create a git tag, for example:
$ git tag v0.1
Next, build your project. It will show an output like:
$ 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
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 poem_plugins-0.14.0.dev0.tar.gz
.
File metadata
- Download URL: poem_plugins-0.14.0.dev0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.10.4 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b486cb8a2d7d006f48985f5edea902baada9c879e2bf77f930f81dccdfa5f2b |
|
MD5 | 0bc87b959b8fdfd2cea9cbf91eff35e6 |
|
BLAKE2b-256 | 014b6cd74f4e133621eacb4d674e261604ec0aff80b3b9ffc04277e354343031 |
File details
Details for the file poem_plugins-0.14.0.dev0-py3-none-any.whl
.
File metadata
- Download URL: poem_plugins-0.14.0.dev0-py3-none-any.whl
- Upload date:
- Size: 9.5 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 275130dba8a94e284fab970472fa95df881f169ca027ebfb74efa9cea0bd2cb9 |
|
MD5 | 1a8a2565cee49eee2f8468b4d73d08f2 |
|
BLAKE2b-256 | 27291bd5b4268bcb5559ef0afd4518326254788edbe4a6378d96b3bf85d5c320 |