SemVer-compatible plugin for setuptools_scm.
Project description
setuptools_scm_git_semver
SemVer-compatible hooks for setuptools_scm
.
This package was created because setuptools_scm
produces PEP 440 compliant version numbers,
which are not always compatible with SemVer.
Usage
Usage is no different from normal setuptools_scm -- this package just adds 1 version scheme and local scheme each:
-
guess-next-rc
: Returns the next version as RC when not on a clean tag -
time-dot-node
: Returns a local version of +.
Example configurations to get version numbers that are both valid python package versions and SemVer versions:
Using pyproject.toml:
[build-system]
requires = [
"setuptools",
"setuptools_scm",
"setuptools_scm_git_semver",
]
build-backend = 'setuptools.build_meta'
[tool.setuptools_scm]
version_scheme = "guess-next-rc"
local_scheme = "time-dot-node"
normalize = false
Releases
The package should be released to PyPI. The first release will be performed manually, and CI will be written later.
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
Built Distribution
Hashes for setuptools_scm_git_semver-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc140faa2b5b3f127024be9e522a1903b0863e3f95ad5ed6ff420ed645b27b2b |
|
MD5 | 09136215987c8558394c8ebe0db88321 |
|
BLAKE2b-256 | 31732bea13a16288a0907fc68ea8373fe4f3db1e5053cdc5bf211c91e78eb510 |
Hashes for setuptools_scm_git_semver-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1deeb06037705edcdbd546de6ef504775a33b7b2ff6d3249589913117c648a58 |
|
MD5 | 54bac039297946fea99c81e5c007d78e |
|
BLAKE2b-256 | 6a24616077827caac306c773adbbf8f7bfcaa95e0d13a3446bfe95872faf3785 |