This project provides tools to manage changelog files.
Project description
changelog-tools
This project provides tools to manage changelog files, according to the Keep a Changelog format.
Tools
Usage
python3 -m changelog_tools <command> [options]
python3 -m changelog_tools --help # Display usage information and a list of the provided commands.
Available commands
get
Check and display the latest version of a changelog file, which is by default the CHANGELOG.md file in the current directory.
python3 -m changelog_tools get
<CHANGELOG_PATH> (optional)
Specifies a changelog path. If given path is a directory, the tool defaults a CHANGELOG.md file in that directory.
python3 -m changelog_tools get data/CHANGELOG.md
summarize
To get a list of changes between two versions, run the script:
python3 -m changelog_tools summarize --old <old_version> --new <new_version> <changelog_path>
--old (optional) Specifies a version from which to start looking for changes. This version corresponds to the lowest/oldest of the file. If not provided, the tool defaults to the initial version. If provided version does not exist in the file, it'll raise an error.
--new (optional) Specifies a version to end looking for changes. This version corresponds to the highest/latest version of the file. If not provided, the tool defaults to the latest version. If provided version does not exist in the file, it'll raise an error.
--include_unreleased (optional) Set by default to False. It is used to include unreleased items to the output, if needed.
<CHANGELOG_PATH> (optional)
Specifies a changelog path. If given path is a directory, the tool defaults a CHANGELOG.md file in that directory.
Example of what you'll get
Summary with different sections sorted by alphabetical order.
# Changelog summary
Here are all the changes between 0.0.1 and 0.0.3:
### Added
- v1.1 Brazilian Portuguese translation.
- v1.1 German Translation.
- v1.1 Spanish translation.
### Changed
- Use frontmatter title & description in each language version template.
- Replace broken OpenGraph image with an appropriately-sized Keep a Changelog image that will render properly (although in English for all languages).
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
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 changelog_tools-0.3.3.tar.gz.
File metadata
- Download URL: changelog_tools-0.3.3.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a53f9451f72673e82cb72468b7877ef05ef1fad23422c275d3e0c57ad3625b7
|
|
| MD5 |
d94e6452d8e8539ca066a036efd2b55a
|
|
| BLAKE2b-256 |
ca6b46a5f742e6c78ed44a01f15265d32d8e311f6e821bcf7f889d3f9b2b023d
|
File details
Details for the file changelog_tools-0.3.3-py3-none-any.whl.
File metadata
- Download URL: changelog_tools-0.3.3-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d74f277beedca636470f2963d0268c3c2432862aac41b22ef334d762d73b4adb
|
|
| MD5 |
c64c1f57c81c4d443678962c9c7f13cb
|
|
| BLAKE2b-256 |
65789e8f25d0e32899b2a5119044fffc90c565ff5751f0ad006ea83d735f639e
|