Skip to main content

Parses changelog txt files

Project description

Changelogtxt-parser

changelogtxt_small

Overview

Changelogtxt-parser is a python api, CLI, and github action for parsing and verifying a changelog.txt like this:

- An unreleased change

v0.2.0
- A change

v0.1.0
- A change
- Another change

How to Install

uv add git+https://github.com/geopozo/changelogtxt-parser
# or
pip install git+https://github.com/geopozo/changelogtxt-parser

Python API

import changelogtxt

x = changelogtxt.load(filename)

# object example
changelogtxt.dump(object)

CLI Examples

# lint
changelogtxt check-format

# verify version exists
changelogtxt get-tag v1.0.1

# add new change or version
changelogtxt update -t "v1.0.2" -m "Change"

# compare two git ref files
changelogtxt summarize-news <origin> <target>

Basic action

- name: Check changelog
  uses: geopozo/changelogtxt-parser@main
  with:
    # Python version to use (default: 3.12)
    python-version: ""

    # Path to the changelog file (default: searches ./CHANGELOG.txt)
    file-path: ""

    # Whether to validate the changelog format (default: "true")
    check-format: "true"

    # Tag to verify. Use "from-push" to get the tag from the latest push
    get-tag: "v1.0.0"

    # Compare changelog files from the current ref to <target_ref>
    # (branch, commit hash, or tag)
    # <file_path> is relative to the `working-directory`
    summarize-news: '["<file_path>", "<target_ref>"]'

License

This project is licensed under the terms of the MIT license.

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

changelogtxt_parser-1.0.0rc0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

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

changelogtxt_parser-1.0.0rc0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file changelogtxt_parser-1.0.0rc0.tar.gz.

File metadata

  • Download URL: changelogtxt_parser-1.0.0rc0.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for changelogtxt_parser-1.0.0rc0.tar.gz
Algorithm Hash digest
SHA256 e1d2ee5dc1daac48836a072776879f59a29afb5225f42eaea68ad7780f7d0287
MD5 1aa3318e35ae4b1f7d38d5033f2b7f95
BLAKE2b-256 b274716dc981de5b6aa34f431d7d5dc54801ccbaa89ee21f6256009ae9fa80d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for changelogtxt_parser-1.0.0rc0.tar.gz:

Publisher: publish_all.yml on geopozo/changelogtxt-parser

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

File details

Details for the file changelogtxt_parser-1.0.0rc0-py3-none-any.whl.

File metadata

File hashes

Hashes for changelogtxt_parser-1.0.0rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 82cf311c91f1fc9a172a863c7595427290855f23a3f8faec56109bafedb0c2cb
MD5 9fc3953d0bc4d318eb0afe63ada5464f
BLAKE2b-256 6c55ed7c41cf91a73ca3c9e34e59e4a2e06c4d3d51094bb1730bcf8892f9c0f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for changelogtxt_parser-1.0.0rc0-py3-none-any.whl:

Publisher: publish_all.yml on geopozo/changelogtxt-parser

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page