Skip to main content

𝗰𝗼𝗺𝗺𝗶𝘁𝗶𝘇𝗲𝗻-𝚜𝚙𝚍𝚡-𝓬𝓱𝓪𝓷𝓰𝓮𝓵𝓸𝓰

Typing SVG

License PyPI Python CI Release

A commitizen changelog format plugin with YAML frontmatter awareness — designed for REUSE/SPDX-compliant changelogs. No more false version detection from license headers like Apache-2.0.

Warning: This project is in early development.

Features

  • SPDX-aware — strips ----delimited YAML frontmatter before parsing
  • Correct version detection — no false positives from Apache-2.0 style headers
  • Drop-in replacement — extends commitizen's built-in Markdown format
  • Zero extra config — just set changelog_format = "spdx-markdown"

Why do I need this?

If you keep your changelog in docs/changelog.md instead of the project root, placing it alongside your documentation lets readers of your published site who might not directly browse the git repository stay informed about recent changes.

Documentation generators like Zensical, Docusaurus, and tools using Google's Open Knowledge Format (OKF) require a YAML front matter for meta data.

When you apply a REUSE/SPDX license header with reuse annotate, the header lands as a YAML comment inside the front matter, not as an HTML comment:

  • # SPDX-License-Identifier: Apache-2.0

The catch: commitizen's built-in Markdown format does not understand YAML front matter. It reads Apache-2.0 as a version number, causing cz bump --changelog to fail silently or produce wrong results.

This plugin strips the front matter before parsing, so your changelog stays compliant, doc-generator-friendly, and commitizen-compatible — all at once.

Getting started

Installation

uv add commitizen-spdx-changelog
# or: pip install commitizen-spdx-changelog

See the docs landing page for a full overview, and the usage guide for further setup and workflow instructions.

Configuration

In pyproject.toml:

[tool.commitizen]
changelog_format = "spdx-markdown"

Usage

cz bump --changelog

The plugin handles changelogs with SPDX frontmatter like:

---
# SPDX-FileCopyrightText: 2026 Pablo Hörtner <redtux@pm.me>
#
# SPDX-License-Identifier: Apache-2.0

icon: lucide/git-commit-vertical
---

# Changelog

## 0.4.0 (2026-06-08)
...

Development

direnv allow
uv sync --group dev

Running direnv allow will activate the devbox environment automatically. See the Devbox guide for all available commands and tools.

Contributing

Bug reports, feature requests, and pull requests are welcome.

See contributing for guidelines.

For documentation contributions, please follow these principles:

Write for humans, keep it minimal, update docs with code, delete dead content. Every page in docs/ and the project README.md are held to these standards.

License

Copyright © 2026 Pablo Hörtner

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at <http://www.apache.org/licenses/LICENSE-2.0>.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

commitizen_spdx_changelog-0.1.4.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

commitizen_spdx_changelog-0.1.4-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file commitizen_spdx_changelog-0.1.4.tar.gz.

File metadata

File hashes

Hashes for commitizen_spdx_changelog-0.1.4.tar.gz
Algorithm Hash digest
SHA256 6ef40aa933b5cc838d79167aaa96f61449aade129a94a73bb690de3cbeb03562
MD5 6d47692f1783c23a2b367c794cf88032
BLAKE2b-256 85385d1fc319bed164dfee1d932d0e1004b68c12baa1e7a6efebd4a13fe93e42

See more details on using hashes here.

Provenance

The following attestation bundles were made for commitizen_spdx_changelog-0.1.4.tar.gz:

Publisher: publish.yaml on redtux/commitizen-spdx-changelog

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file commitizen_spdx_changelog-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for commitizen_spdx_changelog-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 30473e3cc18c4ff4ba624e8a5f3cf125c5e6d7bc068ccf17fae3d4e91cf7ce37
MD5 5875029d8a549233e1cfca399bbd425d
BLAKE2b-256 95320e01db82bf6672ce9a362abc3e0fdd076a65b9b70b550a319e5c9bb90bcc

See more details on using hashes here.

Provenance

The following attestation bundles were made for commitizen_spdx_changelog-0.1.4-py3-none-any.whl:

Publisher: publish.yaml on redtux/commitizen-spdx-changelog

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 files

0.1.3

2 files

0.1.2

2 files

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