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 +.
In addition, if a version tag from SCM is not available, the content of VERSION.txt is used.
Example configurations to get version numbers that are both valid python package versions and SemVer versions, and fall back on what's in VERSION.txt if not in SCM:
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
write_to = "VERSION.txt"
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file setuptools_scm_git_semver-0.3.0.tar.gz.
File metadata
- Download URL: setuptools_scm_git_semver-0.3.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c637cd430f2a78f32e7a5879ca034cfa93f7253d4bd27c95a58c79a2e93f44f
|
|
| MD5 |
f3b72a7e4cd030813ffd6b85ee45d826
|
|
| BLAKE2b-256 |
088c3e83486eaac4c29161919f8f31178d96a8cf90213af51dd6aa5114a4ffa4
|
File details
Details for the file setuptools_scm_git_semver-0.3.0-py3-none-any.whl.
File metadata
- Download URL: setuptools_scm_git_semver-0.3.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79204e35de66628d9c82ad83c2e3b8759e1b6b22a871d3b8f972f6eefaec84b3
|
|
| MD5 |
4bae4f6565e5bbc9aeff0fc9ea45e7c7
|
|
| BLAKE2b-256 |
16bc10930dc16f85061406ddaf34bcb9bf5268a553d0c4bcd635830253857b92
|