StartinBlox commit message parser
This pakage implements the releasing policy of SIB project based on commit messages.
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 'fix: some stupid message'
# semantic-release version --noop
Creating new version.
Current version: 0.0.0
No operation mode. Should have bumped from 0.0.0 to 0.0.1.
Use # DEBUG=semantic_release:* semantic-release version --noop to see debug messages.
Release files for sib-commit-parser 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sib-commit-parser-1.0.0.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sib_commit_parser-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.9 kB
Release files / sib-commit-parser-1.0.0.tar.gz
| Download URL | sib-commit-parser-1.0.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b160969b7e57bfde77e007984767bde89bd20ad226af0cc409d108efabc332e8
|
|
BLAKE2b-256 checksum How to use checksums |
c35968e3f88ef7f987abe7531caba0ab7930342be8c5d6fb62788720561795cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.3 tqdm/4.65.0 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.11.4
|
Release files / sib_commit_parser-1.0.0-py3-none-any.whl
| Download URL | sib_commit_parser-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d8fedf859a699c1812fa11281927c6e01644640b614ee4e2c96dd5987cd34d1a
|
|
BLAKE2b-256 checksum How to use checksums |
8494e06e4f92f26f86e0609f02b25df622747ee2a8e90752f236f383e85262fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.3 tqdm/4.65.0 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.11.4
|