Skip to content

🐍 📦 EQversion maintains the same versions of pyproject.toml and __init__.py (from the main package) of projects using Poetry.

License

Notifications You must be signed in to change notification settings

snakypy/eqversion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EQVersion [DISCONTINUED, NOT USE]

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

Specifying a package:

By default, EQVersion takes the name of the main package via pyproject.toml, in the key name, but it may happen that the name of the main package is not the same as in pyproject.toml. If this happens, the --package option should be used to specify the main package:

$ eqversion --package=<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
;   Or use the named option:
;   poetry run eqversion --package=<PACKAGE MAIN NAME>
    poetry run pytest --basetemp={envtmpdir}

Links

Donation

If you liked my work, buy me a coffee <3

https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif

License

The gem is available as open source under the terms of the MIT License ©

About

🐍 📦 EQversion maintains the same versions of pyproject.toml and __init__.py (from the main package) of projects using Poetry.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages