witch-ver
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.
If you just want to integrate witch-ver into your project, head to usage
Environment
List of dependencies for package to run.
Required
- git
- python modules, installed via
pip install witch-ver- colorama
- setuptools
Optional
- Test extensions, installed via
pip install witch-ver[test]- AutoDict
- coverage
- time-machine
- tomli
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 ".[dev]"
Usage
To use witch-ver in your project, add two lines to the project configuration. Also should have some git tags.
# setup.py
setuptools.setup(
...
use_witch_ver=True,
...
)
# pyproject.toml
[build-system]
requires = [
...
"witch-ver",
...
]
Running Tests
Make sure to install package with testing extension Unit tests
> python -m test
Coverage report
> python -m coverage run && python -m coverage report
Development
Code development of this project adheres to Google Python Guide
Linters
> ruff .
> codespell .
Formatters
> isort .
> black .
Tools
formatters.shwill run every formatterlinters.shwill run every linter
Versioning
Versioning of this projects adheres to Semantic Versioning and is implemented using git tags.
Metadata
Release files for witch-ver 0.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| witch-ver-0.5.2.tar.gz | 22.4 kB | Without provenance | Details for witch-ver-0.5.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| witch_ver-0.5.2-py3-none-any.whl | Python 3 | none | any | Details for witch_ver-0.5.2-py3-none-any.whl |
Total release size: 38.3 kB
Release files / witch-ver-0.5.2.tar.gz
| Download URL | witch-ver-0.5.2.tar.gz |
|---|---|
| Size | 22.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3896f2c05ad8551675e285ae4fdd759ad59b6bd0391c3c90e2d8152734701116
|
|
BLAKE2b-256 checksum How to use checksums |
9cbdebb084946674470905c42f5a565b9f1e048ba28fd49ce3874b844ee1f691
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / witch_ver-0.5.2-py3-none-any.whl
| Download URL | witch_ver-0.5.2-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f8262d85bb0e7cf567dc2b17b61a74a9f6253cc03c605bdf2e035c14dd70bb97
|
|
BLAKE2b-256 checksum How to use checksums |
c021529e2b736e4d1630e54444080ba10e43602a727b1eba12bba6326c81d111
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for witch-ver 0.5.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.