A tiny patch for setuptools_scm to customize version formatting.
Project description
setuptools-scm-patch
A tiny patch for setuptools_scm to customize version formatting.
Transforms versions like: foo-0.3.1.dev21+g6c51818 into: foo-0.3.21+g6c51818
Installation
Add setuptools-scm-patch to your pyproject.toml:
[build-system]
requires = [
"setuptools>=64",
"setuptools_scm>=8",
"setuptools-scm-patch", # <<< Add this
]
build-backend = "setuptools.build_meta"
Configuration
Enable the custom version scheme in pyproject.toml:
[project]
# ...
dynamic = ["version"]
[tool.setuptools_scm]
version_scheme = "setuptools_scm_patch:simple_version_scheme"
License
MIT
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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_patch-1.0.1-py3-none-any.whl.
File metadata
- Download URL: setuptools_scm_patch-1.0.1-py3-none-any.whl
- Upload date:
- Size: 1.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f49854bddcaac32d4aa8c1230eafc303070b4e8f1b7ca042cefa3c1a0847b823
|
|
| MD5 |
7aacd0a7546178072a722f655415c0c7
|
|
| BLAKE2b-256 |
dbe1481833a439097125b97b37425e06c5d4a1bf7c340db25d1ccc645e6978f4
|