Skip to main content

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

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}

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 ©

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

eqversion-0.1.3.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eqversion-0.1.3-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file eqversion-0.1.3.tar.gz.

File metadata

  • Download URL: eqversion-0.1.3.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.1 Linux/5.4.14-zen1-1-zen

File hashes

Hashes for eqversion-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8455ed416d3b7a2929c3eb8740ceb7ac69d05b5621d66598848c404e93e7773f
MD5 69d35eca502865ab7ae9ec46e49e91ea
BLAKE2b-256 2e1d2572f23a6f7dd0266315d8a09da5ffa6fa3f355999a7cf31d0796119cc4e

See more details on using hashes here.

File details

Details for the file eqversion-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: eqversion-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.1 Linux/5.4.14-zen1-1-zen

File hashes

Hashes for eqversion-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 659f4188e46a23050e141caf0e5e4fcc0c656ce97fe29147105d75bd7a3f0efe
MD5 cc50155b668b7d1ee4042417031fa26c
BLAKE2b-256 2fb067856b4b7e9cdf2cfa4780096405ef4f21580380f5ba552c1c984d1b547e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page