Automatic Changelog generator using Jinja2 templates.
Project description
git-changelog
Automatic changelog generator. From git logs to change logs.
Table of contents
Features
-
Jinja2 templates! You get full control over the rendering. Built-in Keep a Changelog and Angular templates (also see Conventional Changelog).
-
Commit styles/conventions parsing. Built-in Angular, Atom and basic styles.
-
Git service/provider agnostic, plus references parsing (issues, commits, etc.). Built-in GitHub and Gitlab support.
-
Understands Semantic Versioning: major/minor/patch for versions and commits. Guesses next version based on last commits.
-
Todo:
- Plugin architecture, to support more commit styles and git services.
- Template context injection, to furthermore customize how your changelog will be rendered.
- Easy access to "Breaking Changes" in the templates.
- Update changelog in-place, paired with commits/dates/versions range limitation ability.
Requirements
git-changelog requires Python 3.6 or above.
To install Python 3.6, I recommend using pyenv
.
# install pyenv
git clone https://github.com/pyenv/pyenv ~/.pyenv
# setup pyenv (you should also put these three lines in .bashrc or similar)
export PATH="${HOME}/.pyenv/bin:${PATH}"
export PYENV_ROOT="${HOME}/.pyenv"
eval "$(pyenv init -)"
# install Python 3.6
pyenv install 3.6.8
# make it available globally
pyenv global system 3.6.8
Installation
With pip
:
python3.6 -m pip install git-changelog
With pipx
:
python3.6 -m pip install --user pipx
pipx install --python python3.6 git-changelog
Usage (command-line)
usage: git-changelog [-h] [-o OUTPUT] [-s {angular,atom,basic}]
[-t {angular,keepachangelog}] [-v]
REPOSITORY
Command line tool for git-changelog Python package.
positional arguments:
REPOSITORY The repository path, relative or absolute.
optional arguments:
-h, --help Show this help message and exit.
-o OUTPUT, --output OUTPUT
Output to given file. Default: stdout.
-s {angular,atom,basic}, --style {angular,atom,basic}
The commit style to match against.
-t {angular,keepachangelog}, --template {angular,keepachangelog}
The Jinja2 template to use. Prefix with "path:" to
specify the path to a directory containing a file
named "changelog.md".
-v, --version Show the current version of the program and exit.
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
File details
Details for the file git-changelog-0.3.0.tar.gz
.
File metadata
- Download URL: git-changelog-0.3.0.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.2 Linux/5.5.13-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4da7dd65de09adfca154c79962a75586ae95abe5a4a3ef615d1e7d6a8ddaa212 |
|
MD5 | 26d613618f20f597fc5c1521203a6887 |
|
BLAKE2b-256 | 6b55a5aacf08f4a9b51f4030b0e29648b10de653ebe3707c8c0d1021ea9f24d9 |
File details
Details for the file git_changelog-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: git_changelog-0.3.0-py3-none-any.whl
- Upload date:
- Size: 18.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.2 Linux/5.5.13-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1089859af1d64cb2e7c4b09f7b89e22416f4aab68c1947cd85fd9233c09a2cb3 |
|
MD5 | fbe4cf11295a2dd69c07e8a748de972e |
|
BLAKE2b-256 | b93f12a9a59fad8a132df1c3e2204d187114086bb5530012fa5da5e1a3c7e213 |