Check if a 'version' is a valid Semantic Version.
Project description
SEMANTIC-VERSION-CHECKER
Check if a ‘version’ is a valid Semantic Version.
Features
semantic_version_check python package
CLI that can be usefull for quick checks, a script or in a CI pipeline
Semantic Version format check, using Regular Expressions
Tested against multiple platforms and python versions
Development
Here are some useful notes related to doing development on this project.
Test Suite, using pytest, located in tests dir
Parallel Execution of Unit Tests, on multiple cpu’s
Documentation Pages, hosted on readthedocs server, located in docs dir
Automation, using tox, driven by single tox.ini file
CI Pipeline, running on Github Actions, defined in .github/
Job Matrix, spanning different platform’s and python version’s
Platforms: ubuntu-latest, macos-latest
Python Interpreters: 3.6, 3.7, 3.8, 3.9, 3.10
Parallel Job execution, generated from the matrix, that runs the Test Suite
Prerequisites
You need to have Python installed.
Quickstart
Using pip is the approved way for installing semantic_version_check.
python3 -m pip install semantic_version_check
Open a console and run:
check-semantic-version 1.0.0
echo $?
echo "Exit code is 0 meaning operation succeeded"
check-semantic-version 1.3
echo $?
echo "Exit code is 1, meaning operation failed"
License
License
Free software: GNU Affero General Public License v3.0
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
Built Distribution
File details
Details for the file semantic_version_check-1.0.2.tar.gz
.
File metadata
- Download URL: semantic_version_check-1.0.2.tar.gz
- Upload date:
- Size: 26.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.0 importlib_metadata/4.11.3 packaging/21.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32654747a9eea53d1459258c88b6b2961ba35c8afbd594c7113df629f9bfe072 |
|
MD5 | 6ea4d0ccce25919abb4528372f80c99e |
|
BLAKE2b-256 | c81260d298c9e36122add31e4cff1be093923927aee066c8d1db5e006dd677b1 |
File details
Details for the file semantic_version_check-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: semantic_version_check-1.0.2-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.0 importlib_metadata/4.11.3 packaging/21.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9177042cc3e121401afde69083081897e47d251689514acb9c51a1a7cda84d80 |
|
MD5 | b0fe1aaa9c21438acfe3a4e08552a6f6 |
|
BLAKE2b-256 | 5960e22245ec0ec226468ab70553fb07f16f13676001a822be5935e69b9307d3 |