Metadata-Version: 2.1
Name: semantic-version-check
Version: 1.0.2
Summary: Check if a 'version' is a valid Semantic Version.
Home-page: https://github.com/boromir674/semantic-version-check
Download-URL: https://github.com/boromir674/semantic-version-check/archive/v1.0.2.tar.gz
Author: Konstantinos Lampridis
Author-email: k.lampridis@hotmail.com
License: AGPLv3
Project-URL: Bug Tracker, https://github.com/semantic-version-check/issues
Project-URL: CI: Github Actions, https://github.com/boromir674/semantic-version-check/actions
Project-URL: Documentation, https://semantic-version-check.readthedocs.io/
Project-URL: Source Code, https://github.com/boromir674/semantic-version-check
Project-URL: Changelog, https://github.com/boromir674/semantic-version-check/blob/master/CHANGELOG.rst
Project-URL: Code of Conduct, https://github.com/boromir674/semantic-version-check/blob/master/CONTRIBUTING.rst
Keywords: python package
Platform: Linux
Platform: Darwin
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Natural Language :: English
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Software Distribution
Classifier: Typing :: Typed
Requires-Python: >=3.6
Description-Content-Type: text/x-rst
Provides-Extra: docs
Provides-Extra: test
Provides-Extra: typing

SEMANTIC-VERSION-CHECKER

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

.. start-badges

| |build| |docs| |coverage| |maintainability| |better_code_hub| |tech-debt|
| |release_version| |wheel| |supported_versions| |gh-lic| |commits_since_specific_tag_on_master| |commits_since_latest_github_release|

|
| **Code:** https://github.com/boromir674/semantic-version-check
| **Docs:** https://semantic-version-check.readthedocs.io/en/master/
| **PyPI:** https://pypi.org/project/semantic-version-check/
| **CI:** https://github.com/boromir674/semantic-version-check/actions/


Features
========

1. **semantic_version_check** `python package`

   a. CLI that can be usefull for quick checks, a script or in a CI pipeline
   b. 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

   a. **Code Coverage** measuring
   b. **Build Command**, using the `build`_ python package
   c. **Pypi Deploy Command**, supporting upload to both `pypi.org`_ and `test.pypi.org`_ servers
   d. **Type Check Command**, using `mypy`_
   e. **Lint** *Check* and `Apply` commands, using `isort`_ and `black`_
5. **CI Pipeline**, running on `Github Actions`_, defined in `.github/`

   a. **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`
   b. **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`.

.. code-block:: sh

    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:
  
.. code-block:: shell

  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
=======

|gh-lic|

* `GNU Affero General Public License v3.0`_


License
=======

* Free software: GNU Affero General Public License v3.0



.. LINKS

.. _tox: https://tox.wiki/en/latest/

.. _pytest: https://docs.pytest.org/en/7.1.x/

.. _build: https://github.com/pypa/build

.. _pypi.org: https://pypi.org/

.. _test.pypi.org: https://test.pypi.org/

.. _mypy: https://mypy.readthedocs.io/en/stable/

.. _isort: https://pycqa.github.io/isort/

.. _black: https://black.readthedocs.io/en/stable/

.. _Github Actions: https://github.com/boromir674/semantic-version-check/actions

.. _GNU Affero General Public License v3.0: https://github.com/boromir674/semantic-version-check/blob/master/LICENSE


.. BADGE ALIASES

.. Build Status
.. Github Actions: Test Workflow Status for specific branch <branch>

.. |build| image:: https://img.shields.io/github/workflow/status/boromir674/semantic-version-check/Test%20Python%20Package/master?label=build&logo=github-actions&logoColor=%233392FF
    :alt: GitHub Workflow Status (branch)
    :target: https://github.com/boromir674/semantic-version-check/actions/workflows/test.yaml?query=branch%3Amaster


.. Documentation

.. |docs| image:: https://img.shields.io/readthedocs/python-package-generator/master?logo=readthedocs&logoColor=lightblue
    :alt: Read the Docs (version)
    :target: https://python-package-generator.readthedocs.io/en/master/

.. Code Coverage

.. |coverage| image:: https://img.shields.io/codecov/c/github/boromir674/semantic-version-check/master?logo=codecov
    :alt: Codecov
    :target: https://app.codecov.io/gh/boromir674/semantic-version-check

.. PyPI

.. |release_version| image:: https://img.shields.io/pypi/v/semantic_version_check
    :alt: Production Version
    :target: https://pypi.org/project/semantic_version_check/

.. |wheel| image:: https://img.shields.io/pypi/wheel/semantic-version-check?color=green&label=wheel
    :alt: PyPI - Wheel
    :target: https://pypi.org/project/semantic_version_check

.. |supported_versions| image:: https://img.shields.io/pypi/pyversions/semantic-version-check?color=blue&label=python&logo=python&logoColor=%23ccccff
    :alt: Supported Python versions
    :target: https://pypi.org/project/semantic_version_check

.. Github Releases & Tags

.. |commits_since_specific_tag_on_master| image:: https://img.shields.io/github/commits-since/boromir674/semantic-version-check/v1.0.2/master?color=blue&logo=github
    :alt: GitHub commits since tagged version (branch)
    :target: https://github.com/boromir674/semantic-version-check/compare/v1.0.2..master

.. |commits_since_latest_github_release| image:: https://img.shields.io/github/commits-since/boromir674/semantic-version-check/latest?color=blue&logo=semver&sort=semver
    :alt: GitHub commits since latest release (by SemVer)

.. LICENSE (eg AGPL, MIT)
.. Github License

.. |gh-lic| image:: https://img.shields.io/github/license/boromir674/semantic-version-check
    :alt: GitHub
    :target: https://github.com/boromir674/semantic-version-check/blob/master/LICENSE


.. CODE QUALITY

.. Better Code Hub
.. Software Design Patterns

.. |better_code_hub| image:: https://bettercodehub.com/edge/badge/boromir674/semantic-version-check?branch=master
    :alt: Better Code Hub
    :target: https://bettercodehub.com/


.. Code Climate CI
.. Code maintainability & Technical Debt

.. |maintainability| image:: https://img.shields.io/codeclimate/maintainability/boromir674/semantic-version-check
    :alt: Code Climate Maintainability
    :target: https://codeclimate.com/github/boromir674/semantic-version-check/maintainability

.. |tech-debt| image:: https://img.shields.io/codeclimate/tech-debt/boromir674/semantic-version-check
    :alt: Technical Debt
    :target: https://codeclimate.com/github/boromir674/semantic-version-check/maintainability
