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 changelogtxt-parser
# or
pip install 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.0rc1.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.0rc1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: changelogtxt_parser-1.0.0rc1.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.0rc1.tar.gz
Algorithm Hash digest
SHA256 b60e14d6d67a3b9c94531513b047e5d63496780263c31d567c9714b241bd62cf
MD5 1ef928eb0d57a163eaff8729160ac81b
BLAKE2b-256 c9557a46b3ce0be225c2af12108ede856f4868113ef373ea6f0bf4a479d11fc3

See more details on using hashes here.

Provenance

The following attestation bundles were made for changelogtxt_parser-1.0.0rc1.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.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for changelogtxt_parser-1.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 2e73e393c4671da91e36989da644d15c4d074b9fae40832c54855970a78d869d
MD5 5c6f5699f11f1c73b9b75254e397da1b
BLAKE2b-256 ab6777d97ef3fdccb203d07864cd936facb3ac7dfa75a722e05477d2fd08f8ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for changelogtxt_parser-1.0.0rc1-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