Skip to main content

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

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

If you're not sure about the file name format, learn more about wheel file names.

setuptools_scm_patch-1.0.1-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

Details for the file setuptools_scm_patch-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for setuptools_scm_patch-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f49854bddcaac32d4aa8c1230eafc303070b4e8f1b7ca042cefa3c1a0847b823
MD5 7aacd0a7546178072a722f655415c0c7
BLAKE2b-256 dbe1481833a439097125b97b37425e06c5d4a1bf7c340db25d1ccc645e6978f4

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 file

1.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page