Skip to main content

pyprojects.toml dependencies version manager

Project description

Verset

A handy tool to manage dependencies of your python project. Meant to be used with poetry, but can adapt to other tools with minimal effort.

Usage

Commands:

  • comment: (default) update comments to match versions currently in use
  • clear: clear comments
  • apply: apply versions in comment, so they are tilde (~) required version
  • relax: apply versions in comment, so they are caret (^) required version
  • up: set every version as "*"

Example

Given those dependencies

[tool.poetry.dependencies]
docutils = ">= 0.12"
python = ">=3.8"

python-dateutil = {version="^2.8.2", optional=true}
jira = {version="^3.1.1", optional=true}
six = {version="^1.16", optional=true}
pygments = {version="^2.12.0", optional=true}

running verset in the project folder will update it to:

[tool.poetry.dependencies]
docutils = ">= 0.12" # 0.19
python = ">=3.8" # 3.10.10

python-dateutil = {version="^2.8.2", optional=true} # 2.8.2
jira = {version="^3.1.1", optional=true} # Not found
six = {version="^1.16", optional=true} # 1.16.0
pygments = {version="^2.12.0", optional=true} # 2.14.0

then, running verset apply in the project folder will update it to:

[tool.poetry.dependencies]
docutils = "~0.19" # >= 0.12
python = "~3.10.10" # >=3.8

python-dateutil = {version="~2.8.2", optional=true} # ^2.8.2
jira = {version="^3.1.1", optional=true} # Not found
six = {version="~1.16.0", optional=true} # ^1.16
pygments = {version="~2.14.0", optional=true} # ^2.12.0

and if you run it again, you are back to the original version (as tilde):

[tool.poetry.dependencies]
docutils = "~0.19" # >= 0.12
python = "~3.8" # ~3.10.10

python-dateutil = {version="~2.8.2", optional=true} # ~2.8.2
jira = {version="^3.1.1", optional=true} # Not found
six = {version="~1.16", optional=true} # ~1.16.0
pygments = {version="~2.12.0", optional=true} # ~2.14.0

if you would like the more inclusive carret versions, just use veset relax:

[tool.poetry.dependencies]
docutils = "~0.19" # >= 0.12
python = "^3.10.10" # ~3.8

python-dateutil = {version="^2.8.2", optional=true} # ~2.8.2
jira = {version="^3.1.1", optional=true} # Not found
six = {version="^1.16.0", optional=true} # ~1.16
pygments = {version="^2.14.0", optional=true} # ~2.12.0

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

verset-0.1.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

verset-0.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file verset-0.1.0.tar.gz.

File metadata

  • Download URL: verset-0.1.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.10 Linux/6.2.10-zen1-1-zen

File hashes

Hashes for verset-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eaa0391d7f9b4e6f3787f9aa37101c6bfa6804f021ffab120bf76b78fdd07316
MD5 b3e196865a7f13b523eac9e7c831d9fc
BLAKE2b-256 00c7a93b72c5bbebeef78ed4f388517102e90afafcd26ec3df682acb64989681

See more details on using hashes here.

File details

Details for the file verset-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: verset-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.10 Linux/6.2.10-zen1-1-zen

File hashes

Hashes for verset-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 61b727b6975d997959fe33948a18a004df0cdcdd946a44438cd54f00a9e44d73
MD5 8adf3a003f7f3c8e8517881eb67efbc5
BLAKE2b-256 23fa52dac4a0bb82b3e93478770a5366de3414c524e97137ad7a6c9918a6cffd

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