donk is a minimal version management tool for pyproject.toml files
Project description
donk
donk is a minimal version management tool for pyproject.toml files.
It does three things:
- Bump the (
major|minor|patch) version in your pyproject.toml file - Print the version set in your pyproject.toml file
- Write the version to a file in your module
Installation
$ pipx install donk
Usage
$ donk
Usage: donk [OPTIONS] COMMAND [ARGS]...
donk is a minimal version management tool for pyproject.toml files
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
major Bump the major version
minor Bump the minor version
patch Bump the patch version
show Display version set in project file
Configuration
You can configure donk to write the version to a python file using the tool section in pyproject.toml:
[tool.donk]
write_module_version = "donk/__init__.py"
This will write __version__ = "$current_version" at the same time as the
version in pyproject.toml is bumped.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file donk-1.1.0.tar.gz.
File metadata
- Download URL: donk-1.1.0.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b53c2f728772d4cb26e177c513fbb33cd29240f5b649952ed72fad69c7687a6
|
|
| MD5 |
d7218ff57129242157becfcf1d0a608b
|
|
| BLAKE2b-256 |
616e8d044ab7beaa177ccd3cebff9e7ca50c783dbf1d59ccdf08031b1199641a
|
File details
Details for the file donk-1.1.0-py3-none-any.whl.
File metadata
- Download URL: donk-1.1.0-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2af06cfe156e483224a4f62914afccbe13414a87d46c8cb85a737234bca6de00
|
|
| MD5 |
dfb233f752d01716ab620505939ecea5
|
|
| BLAKE2b-256 |
ccf7e3087dd7e59c1d8b1495f6648ad5eb16405c17132f4639f36005c2c23cd8
|