Skip to main content

Check if a 'version' is a valid Semantic Version.

Project description

SEMANTIC-VERSION-CHECKER

Check if a ‘version’ is a valid Semantic Version.

GitHub Workflow Status (branch) Read the Docs (version) Codecov Code Climate Maintainability Better Code Hub Technical Debt
Production Version PyPI - Wheel Supported Python versions GitHub GitHub commits since tagged version (branch) GitHub commits since latest release (by SemVer)

Features

  1. semantic_version_check python package

    1. CLI that can be usefull for quick checks, a script or in a CI pipeline

    2. Semantic Version format check, using Regular Expressions

  2. Tested against multiple platforms and python versions

Development

Here are some useful notes related to doing development on this project.

  1. Test Suite, using pytest, located in tests dir

  2. Parallel Execution of Unit Tests, on multiple cpu’s

  3. Documentation Pages, hosted on readthedocs server, located in docs dir

  4. Automation, using tox, driven by single tox.ini file

    1. Code Coverage measuring

    2. Build Command, using the build python package

    3. Pypi Deploy Command, supporting upload to both pypi.org and test.pypi.org servers

    4. Type Check Command, using mypy

    5. Lint Check and Apply commands, using isort and black

  5. CI Pipeline, running on Github Actions, defined in .github/

    1. Job Matrix, spanning different platform’s and python version’s

      1. Platforms: ubuntu-latest, macos-latest

      2. Python Interpreters: 3.6, 3.7, 3.8, 3.9, 3.10

    2. 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
One Use Case for the semantic_version_check is to invoke its cli, through a console
and do SemVer check on a single input string.

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

GitHub

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

semantic_version_check-1.0.2.tar.gz (26.1 kB view details)

Uploaded Source

Built Distribution

semantic_version_check-1.0.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

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

Hashes for semantic_version_check-1.0.2.tar.gz
Algorithm Hash digest
SHA256 32654747a9eea53d1459258c88b6b2961ba35c8afbd594c7113df629f9bfe072
MD5 6ea4d0ccce25919abb4528372f80c99e
BLAKE2b-256 c81260d298c9e36122add31e4cff1be093923927aee066c8d1db5e006dd677b1

See more details on using hashes here.

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

Hashes for semantic_version_check-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9177042cc3e121401afde69083081897e47d251689514acb9c51a1a7cda84d80
MD5 b0fe1aaa9c21438acfe3a4e08552a6f6
BLAKE2b-256 5960e22245ec0ec226468ab70553fb07f16f13676001a822be5935e69b9307d3

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