Changelog generation tool
Project description
Changelog Generator - v0.4.0
changelog-gen
is a CHANGELOG generator intended to be used in conjunction
with bumpversion to generate
changelogs and create release tags.
Installation
pip install changelog-gen
or clone this repo and install with poetry, currently depends on poetry < 1.0.0 due to other personal projects being stuck.
poetry install
Usage
changelog-gen
currently only supports reading changes from a release_notes
folder.
Files in the folder should use the format {issue_number}.{type}
.
By default supported types are currently fix
and feat
. Additional types can be configured
to map to these initial types.
The contents of each file is used to populate the changelog file. If the type
ends with a !
it denotes a breaking change has been made, this will lead to a
major release being suggested.
$ ls release_notes
4.fix 7.fix
$ changelog-gen
## v0.4.0
### Bug fixes
- Raise errors from internal classes, don't use click.echo() [#4]
- Update changelog line format to include issue number at the end. [#7]
Write CHANGELOG for suggested version 0.4.0 [y/N]: y
Configuration
Of the command line arguments, most of them can be configured in setup.cfg
to remove
the need to pass them in every time.
Example setup.cfg
:
[bumpversion]
commit = true
release = true
allow_dirty = false
Configuration file -- Global configuration
General configuration is grouped in a [changelog_gen]
section.
commit = (True | False)
[optional]
default: False
Commit changes to the changelog after writing.
Also available as --commit
(e.g. changelog-gen --commit
)
release = (True | False)
[optional]
default: False
Use bumpversion to tag the release
Also available as --release
(e.g. changelog-gen --release
)
allow_dirty = (True | False)
[optional]
default: False
Don't abort if the current branch contains uncommited changes
Also available as --allow-dirty
(e.g. changelog-gen --allow-dirty
)
allowed_branches =
[optional]
default: None
Prevent changelog being generated if the current branch is not in the supplied list. By default all branches are allowed.
Example:
[changelog_gen]
allowed_branches =
master
develop
section_mapping =
[optional]
default: None
Configure additional supported release_note extensions to supported changelog sections.
Example:
[changelog_gen]
section_mapping =
test=fix
bugfix=fix
docs=fix
new=feat
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 changelog_gen-0.4.0.tar.gz
.
File metadata
- Download URL: changelog_gen-0.4.0.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.7.5 Linux/5.0.0-37-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0da70c2826d8b2400796e5696b4ba216d76c18ce8b97bbe7747686144daa04a1 |
|
MD5 | 7b00100a40574753cb961e333556de45 |
|
BLAKE2b-256 | d0ae73f5ac49013649291ea831ca9fb4938e5cda86f4503eddb1761f1f93b746 |
File details
Details for the file changelog_gen-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: changelog_gen-0.4.0-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.7.5 Linux/5.0.0-37-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f472e289254276662400d51bef13112cd033d37e5c2ef35a33face738fbc814 |
|
MD5 | e9d33f4004825d6481c2d86e088c5059 |
|
BLAKE2b-256 | 10c8f2b2c26e315b8e0a8342fd729676f90c17a1d4904c605d3d5940de5be3d5 |