EQversion maintains the pyproject.toml and __init__.py (from the main package) versions in the same way.
Project description
The purpose of EQVersion is to remove the change redundancy in the project version in two places, in the pyproject.toml and in the __init__.py of the main package. EQVersion is especially for those who work with Poetry.
Using:
In a project using Poetry and an active virtual environment, add EQVersion as a development dependency:
$ poetry add eqversion --dev
Now simply run the command below for the versions to be matched:
$ eqversion <PACKAGE MAIN NAME>
Using with tests:
You must call EQVersion before performing your tests.
Example of tox.ini file:
[tox]
isolated_build = True
[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps =
poetry
commands =
pip install --upgrade pip
poetry install
poetry run eqversion <PACKAGE MAIN NAME>
poetry run pytest --basetemp={envtmpdir}
Links
Donation
If you liked my work, buy me a coffee <3
License
The gem is available as open source under the terms of the MIT License ©
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for eqversion-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dd945922a03372648e80aed6cefc2cdd8e3900920b18c1177722fbe429e1090 |
|
MD5 | 3dc9305c53bb3d61d3f6984d0c68d39d |
|
BLAKE2b-256 | 6fd858221d0ae0b9d64c573b86a89147dc063f6a2e98ea90f8cfd4d686e7b5cd |