Commit parser for StartinBlox packages
Project description
Conventional changelog for Startin'blox
Commit types
Commit Type | Title | Description | Release | In changelog |
---|---|---|---|---|
minor |
Minor | Minor release | minor |
yes |
major |
Major | Major release | major |
yes |
feature |
Features | New behavior | patch |
yes |
update |
Updates | Change behavior | patch |
yes |
bugfix |
Bug Fixes | Fix bugs | patch |
yes |
ui |
Interface | Change appearance | patch |
yes |
syntax |
Syntax | Refactoring code | patch |
yes |
Other | All others | patch |
no |
Setup
Add the relevant semantic_release
section to your setup.cfg
:
[semantic_release]
version_source = tag
version_variable = myapp/__init__.py:__version__
commit_parser = commit_parse.parse
Develop the parser
Install python-semantic-release
along with the parser:
# docker run --rm -v $PWD:/code -w /code -it python:3.6 bash
# pip install python-semantic-release
# pip install -e .[dev]
# export PYTHONPATH=/code/commit_parser/
Create a dummy project:
# git init /tmp/test
# cd !$
Add a minimal project:
# echo 'setup()' > setup.py
# echo '__version__ = 0.0.0' > version.py
# cat <<EOF > setup.cfg
[semantic_release]
upload_to_pypi = false
version_source = tag
version_variable = version.py:__version__
commit_parser = commit_parser.parse
EOF
Simulate release:
# git commit --allow-empty -m 'type: some stupid message'
$ semantic-release version --noop
Creating new version..
Current version: 0.4.6
No operation mode. Should have bumped from 0.4.6 to 0.4.7
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
Close
Hashes for sib_commit_parser-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ea8db8870a294e0fcf4674796f611f04e4c89683e37babb39b47078a86f85f7 |
|
MD5 | 185dd440e6f9fc8fa7ddfe09b4f6a33a |
|
BLAKE2b-256 | b30bea634084a821687c380da5e326be0acf2999d4da42ce05f90257bd632327 |