Skip to main content

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:

  1. Bump the (major|minor|patch) version in your pyproject.toml file
  2. Print the version set in your pyproject.toml file
  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

donk-1.0.2.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

donk-1.0.2-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file donk-1.0.2.tar.gz.

File metadata

  • Download URL: donk-1.0.2.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

Hashes for donk-1.0.2.tar.gz
Algorithm Hash digest
SHA256 c33a5c48e045d0afd262b8991b3f785a173a396c636a0356111db5f9baf026bd
MD5 cf0224150b2e0d1f2c23b649bfd93bc2
BLAKE2b-256 4571dfe159365b5aef20433eefc2990969beb0aa4e9b1d150c3b05f328eeb09e

See more details on using hashes here.

File details

Details for the file donk-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: donk-1.0.2-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

Hashes for donk-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9b8c79917401bc8a0415e45f2350506834d2ece33f44ca05a84f949fd58e0484
MD5 6eb8bbbb4276325b1825fe257603f75c
BLAKE2b-256 cdb8af6fb77e3ded4dc15ed8f00b127da0c877eaa103993a9a8bee618efc6fa9

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