A Poetry plugin that integrates setuptools-scm to console
Updates pyproject.toml file version with a calculated one
Versions are calculated taking into account the distance between current commit and last tagged one, and current commit revision hash
Supported schemes are the main ones exposed by setuptools-scm:
scm: formats according to setuptools_scm get_version default behavior. e.g. 0.1.dev1+g1e0ede4
date: formats current date and distance, e.g. 2025.4.1.1.dev1+g9d4edec . Scheme used is calver_by_date function
branch: Use branch based versioning of library. Scheme used is release_branch_semver_version function
Prerequisites of projects using this plugin:
- A [tool.setuptools_scm] section declared
- A git tag with your starting version if different from default one is recommended
examples:
poetry version-calculate
Ouputs something like 1.0.1.dev1+g1e0ede4
poetry version-calculate date
2025.4.1.1.dev1+g1e0ede4
Note about date format:
Two digits year is taken by default, you can change this behaviour making a previous git tag with a different supporten format, in this case for example
git tag 2025.4.1
Set default format
You can configure default format by adding the following entry (the example sets date format)
[tool.poetry-setuptools-scm-support]
default-format = "date"
Metadata
Release files for poetry-setuptools-scm-support 0.5.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| poetry_setuptools_scm_support-0.5.9.tar.gz | 3.4 kB | Without provenance | Details for poetry_setuptools_scm_support-0.5.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| poetry_setuptools_scm_support-0.5.9-py3-none-any.whl | Python 3 | none | any | Details for poetry_setuptools_scm_support-0.5.9-py3-none-any.whl |
Total release size: 8.1 kB
Release files / poetry_setuptools_scm_support-0.5.9.tar.gz
| Download URL | poetry_setuptools_scm_support-0.5.9.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa901cd72141993b25c763f4a6629b2499b4d420a3b8a568f318c7758cf49d26
|
|
BLAKE2b-256 checksum How to use checksums |
81bf678ba224600533bc61d9008a527c8e65d88ffae8a5c03317b82d27840861
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.10.12 Linux/6.8.0-65-generic
|
Release files / poetry_setuptools_scm_support-0.5.9-py3-none-any.whl
| Download URL | poetry_setuptools_scm_support-0.5.9-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0cce62cd4f7833d0215845ac9f69b407de6414bd176543e48148a2c571060b4c
|
|
BLAKE2b-256 checksum How to use checksums |
04235b648decb8bb268f3765ce0e91f7f36edb40988189a15bda31f625d344ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.10.12 Linux/6.8.0-65-generic
|
Security for poetry-setuptools-scm-support 0.5.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.