Parses changelog txt files
Project description
Changelogtxt-parser
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
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 Distribution
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b60e14d6d67a3b9c94531513b047e5d63496780263c31d567c9714b241bd62cf
|
|
| MD5 |
1ef928eb0d57a163eaff8729160ac81b
|
|
| BLAKE2b-256 |
c9557a46b3ce0be225c2af12108ede856f4868113ef373ea6f0bf4a479d11fc3
|
Provenance
The following attestation bundles were made for changelogtxt_parser-1.0.0rc1.tar.gz:
Publisher:
publish_all.yml on geopozo/changelogtxt-parser
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
changelogtxt_parser-1.0.0rc1.tar.gz -
Subject digest:
b60e14d6d67a3b9c94531513b047e5d63496780263c31d567c9714b241bd62cf - Sigstore transparency entry: 771509569
- Sigstore integration time:
-
Permalink:
geopozo/changelogtxt-parser@f7bdee2ebe969a3b0423afe41e9d45beef5466e7 -
Branch / Tag:
refs/tags/v1.0.0rc1 - Owner: https://github.com/geopozo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_all.yml@f7bdee2ebe969a3b0423afe41e9d45beef5466e7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file changelogtxt_parser-1.0.0rc1-py3-none-any.whl.
File metadata
- Download URL: changelogtxt_parser-1.0.0rc1-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e73e393c4671da91e36989da644d15c4d074b9fae40832c54855970a78d869d
|
|
| MD5 |
5c6f5699f11f1c73b9b75254e397da1b
|
|
| BLAKE2b-256 |
ab6777d97ef3fdccb203d07864cd936facb3ac7dfa75a722e05477d2fd08f8ad
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
changelogtxt_parser-1.0.0rc1-py3-none-any.whl -
Subject digest:
2e73e393c4671da91e36989da644d15c4d074b9fae40832c54855970a78d869d - Sigstore transparency entry: 771509570
- Sigstore integration time:
-
Permalink:
geopozo/changelogtxt-parser@f7bdee2ebe969a3b0423afe41e9d45beef5466e7 -
Branch / Tag:
refs/tags/v1.0.0rc1 - Owner: https://github.com/geopozo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_all.yml@f7bdee2ebe969a3b0423afe41e9d45beef5466e7 -
Trigger Event:
push
-
Statement type: