Semversioner
The easiest way to manage semantic versioning in your project and generate CHANGELOG.md file automatically.
Semversioner will provide the tooling to automate semver release process for libraries, docker images, etc.
This project was inspired by the way AWS manages their versioning for AWS-cli.
Semantic Versioning
The semantic versioning spec involves several possible variations, but to simplify, in Semversioner we are using the three-part version number:
<major>.<minor>.<patch>
Constructed with the following guidelines:
- Breaking backward compatibility or major features bumps the major (and resets the minor and patch).
- New additions without breaking backward compatibility bumps the minor (and resets the patch).
- Bug fixes and misc changes bumps the patch.
An example would be 1.0.0
How it works
At any given time, the .changes/ directory looks like:
.changes
└── next-release
├── minor-20181227010225.json
└── major-20181228010225.json
├── 1.1.0.json
├── 1.1.1.json
├── 1.1.2.json
The release process takes everything in next-release and aggregates them all together in a single JSON file for that release (e.g 1.12.0.json). This
JSON file is a list of all the individual JSON files from next-release.
Install
$ pip install semversioner
Usage
Bumping the version
In your local environment your will use the CLI to create the different changeset files that will be committed with your code. For example:
$ semversioner add-change --type patch --description "Fix security vulnerability with authentication."
Then, in your CI/CD tool you will need to release (generating automatically version number) and creating the the changelog file.
$ semversioner release
Generating Changelog
As a part of your CI/CD workflow, you will be able to generate the Changelog file with all changes.
$ semversioner changelog > CHANGELOG.md
Made with ♥ by Raul Gomis <https://twitter.com/rgomis>.
Metadata
Release files for semversioner 0.7.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 | Provenance | Actions |
|---|---|---|---|---|
| semversioner-0.7.0.tar.gz | 5.9 kB | Without provenance | Details for semversioner-0.7.0.tar.gz |
Release files / semversioner-0.7.0.tar.gz
| Download URL | semversioner-0.7.0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2459c9da530eba1990b32af9a9a87b255e5957f10aed804760620a75480dd90
|
|
BLAKE2b-256 checksum How to use checksums |
76ca38f16848bade4e153f3740278be2821520ae6e14c05f795e38e63865e697
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.8
|
Security for semversioner 0.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.