Skip to main content

git tag based versioning

Project description

witch-ver

Unit Test Pylint Coverage Latest Version

Have you ever asked yourself which version you're at? witch-ver can help.

witch-ver automatically calculates the version of a git repo and adds the information when building.


Environment

List of dependencies for package to run.

Required

  • git
  • python modules, installed via pip install witch-ver
    • colorama

Optional

  • Test extensions, installed via pip install witch-ver[test]
    • AutoDict
    • coverage
    • pylint

Installation / Build / Deployment

# To install latest stable version on PyPi, execute:
python -m pip install witch-ver

# To install from source, execute:
git clone https://github.com/WattsUp/witch-ver
cd witch-ver
python -m pip install .

# For development, install as a link to repository such that code changes are used. And include testing packages
git clone https://github.com/WattsUp/witch-ver
cd witch-ver
python -m pip install -e .[test]

Usage

Explain how to use your project.

# TODO

Running Tests

Make sure to install package with testing extension

# To run the automated tests, execute:
python -m tests discover -s tests -t . --locals

# To save the results to file, execute:
python -m tests discover -s tests -t . --locals &> testing.log

## The following is a synopsis of unittest main arguments ##
# To run a singular test file, execute:
python -m tests $path_to_test_file
python -m tests tests.test_main

# To run a singular test class, execute:
python -m tests $path_to_test_file.$class
python -m tests tests.test_main.TestMain

# To run a singular test method, execute:
python -m tests $path_to_test_file.$class.$method
python -m tests tests.test_main.TestMain.test_parser

# Multiple can be strung together
python -m tests tests.test_main tests.test_writer
# To run coverage and print the report with missing lines, execute:
python -m coverage run && python -m coverage report -m

# To run profiler, execute:
python -m cProfile -s tottime -m tests discover -s tests -t . > profile.log

# To run linting, execute:
python -m pylint witch_ver tests tools setup.py

Development

Code development of this project adheres to Google Python Guide

Styling

Use yapf to format files, based on Google's guide with the exception of indents being 2 spaces.

# To format all files, execute:
yapf -ir .

Versioning

Versioning of this projects adheres to Semantic Versioning and is implemented using git tags.

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

witch-ver-0.2.0.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

witch_ver-0.2.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file witch-ver-0.2.0.tar.gz.

File metadata

  • Download URL: witch-ver-0.2.0.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.1

File hashes

Hashes for witch-ver-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b7b7939523e1c379df65fd4b4e49c3d5f79b85df245b7cfa92e2fa3ad8726cf6
MD5 dacf9e307836a4c8cfe644a43d9acc4f
BLAKE2b-256 e223b1bce5b9cb430d83966b6cefa68c8d89c342a639ba588f8f9a78e1a81247

See more details on using hashes here.

File details

Details for the file witch_ver-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: witch_ver-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.1

File hashes

Hashes for witch_ver-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 12f60327c6f853c7af4a15bd9934d4376809a1ec294381cf2b7407e275fd2a6b
MD5 c7e9aa60ac11ce909e74714982c8eb37
BLAKE2b-256 73f7b4187184d3c2ccfbf3c33951da010643bb468ce2d0d3fe69393ad4f39cee

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