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.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
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
Release history Release notifications | RSS feed
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.1.tar.gz
(2.4 kB
view hashes)
Built Distribution
verset-0.1.1-py3-none-any.whl
(3.0 kB
view hashes)