Skip to main content

Means of automating the release version of a git repo using git tags

Project description

CloudMitigator Semantic

Test and Release Version PyPI version

Allows you to manage versioning and releases using git tags as the source of truth. No more manual bumping of version files. CloudMitigator Semantic allows the user to control releases via commit messages. All the rest is handled for you. Just use trigger words listed below, and if a word is detected, a release will be automatically completed. Incrementing the specified number.

  • Major release: Major: major:
  • Minor release: Minor: minor:
  • Patch release: Patch: patch:

Trigger words can also be modified through the inclusion of a semantic.yml.

major:
  - "major:"
  - "breaking:"

minor:
  - "minor:"

patch:
  - "patch:"

Installation:

Run pip install cloudmitigator_semantic

This will install a script called semantic

Usage:

Run semantic --help for a list of commands that can be run.

semantic version will return the latest git tag version if it has been changed, or the current git tag version if unchanged.

v0.0.1

semantic changed will return a boolean on whether or not the version has been incremented.

False

Requirements:

Must run command within a directory that has git initialized.

If no version tag is specified then a default of v0.0.0 will be given. Make sure to tag your repo if you wish to start at a different seed number.

This module is only compatible with 'v' tagging. This means '0.0.0' will not be recognized where 'v0.0.1' will be.

This is meant to be run as part of a github action. Please see the sample implementation for an example.

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

cloudmitigator_semantic-0.1.6.tar.gz (4.8 kB view details)

Uploaded Source

Built Distributions

cloudmitigator_semantic-0.1.6-py3.8.egg (11.5 kB view details)

Uploaded Source

cloudmitigator_semantic-0.1.6-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file cloudmitigator_semantic-0.1.6.tar.gz.

File metadata

  • Download URL: cloudmitigator_semantic-0.1.6.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for cloudmitigator_semantic-0.1.6.tar.gz
Algorithm Hash digest
SHA256 381bffcfe2999eac799966da4d70e2691b4173f39b677dca88f8b550159754ee
MD5 1a07b67a01812894a286828635777ef2
BLAKE2b-256 4ad4ef9e58148271f46b6ec93dbc5e89e2f139015839bc9ec294b22443c30d26

See more details on using hashes here.

File details

Details for the file cloudmitigator_semantic-0.1.6-py3.8.egg.

File metadata

  • Download URL: cloudmitigator_semantic-0.1.6-py3.8.egg
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for cloudmitigator_semantic-0.1.6-py3.8.egg
Algorithm Hash digest
SHA256 45cee6db3723880c3dcc374725a17478fee2ae8866b9cb6e17fab3b3946d2b9b
MD5 68c8ce77abf7ca74c8ca9058265cb49f
BLAKE2b-256 9625a989a2d09898f27d80db87f78637ac168fc730950d597aeabbf629bce8bf

See more details on using hashes here.

File details

Details for the file cloudmitigator_semantic-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: cloudmitigator_semantic-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for cloudmitigator_semantic-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 01f492e3de8f9f1154d70d59420d7a31ec29c4f39bcaa57814e2957c0d71e516
MD5 1a1fafeb403846b8426666480b963bf9
BLAKE2b-256 bf67a3964d6aec1fc565bab80caec126e5f2fcfea252e410f61810d9b1dda3e8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page