Simple, opinionated semantic versioning package.
Project description
pagekey-semver
This is a simple, opinionated semantic versioning tool.
Check out the docs site (coming soon) or the docs site source to learn more.
Getting Started
- Install the package
pip install pagekey-semver
- Run the dry run to see what will happen.
pagekey-semver plan
- Run it for real to tag and push!
pagekey-semver apply
Usage
As you'll see below, it's highly recommended to set the SEMVER_TOKEN
variable to your push credential, as well as SEMVER_USER
if applicable for your Git hosting platform.
GitHub Actions
Follow these steps to use PageKey Semver with GitHub Actions.
-
Generate a GitHub Personal Access Token. Follow this guide if you're not sure how.
-
Add the token to your repo or organization as the
SEMVER_TOKEN
secret. See this guide for more info on how to do that. -
Add a
SEMVER_USER
secret containing your username. If you'd rather not use your personal account, use a bot account. -
Add the following workflow in your repo at
.github/workflows/ci.yml
:
name: Run semantic version process.
on: [push]
jobs:
version:
uses: pagekey/semver/.github/workflows/semver.yml@main
with:
SEMVER_USER: ${{ secrets.SEMVER_USER }}
SEMVER_TOKEN: ${{ secrets.SEMVER_TOKEN }}
GitLab CI/CD
Coming soon.
Philosophy
This is an opinionated version of Semantic Release that loosely follows the guidelines at semver.org. It puts practicality above all theory. There is no special treatment of "pre-releases", versions prior to v1.0.0
. Everything behaves the same: patch prefixes increment the third number, minor patches increment the middle number, and major prefixes increment the first number. If there are multiple prefixes, the prefix with the greatest precedence is applied. If you don't like the default settings, you can override them using the configuration format below.
This package is intended to run on a Linux system with the bash
shell installed.
Configuration
See here for more information on how to configure the tool.
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 pagekey_semver-0.3.19.tar.gz
.
File metadata
- Download URL: pagekey_semver-0.3.19.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 691c2c248cb1c466ce7e6f0eeb04868d8071d812e41cd06765f24b3109713ad3 |
|
MD5 | 642dd31de724d11e92db61e808ddb73f |
|
BLAKE2b-256 | 831ec5cc098ab71db7f6ab54f24a2ccb8081f9749473406b66fea7894bffbf70 |
File details
Details for the file pagekey_semver-0.3.19-py3-none-any.whl
.
File metadata
- Download URL: pagekey_semver-0.3.19-py3-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06151c8a5f6b32adcd164c2df55b4d915177fba4bf4e7777e9efcd476f5cfc1a |
|
MD5 | 92d15e6b00939ff5b08e2911cff54ab4 |
|
BLAKE2b-256 | 0e6c18e5df93b3a5467a25afd9f2183c1fea3a2ad8892a9da24973f3d85eae8a |