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.1.0.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.1.0-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

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

Hashes for donk-1.1.0.tar.gz
Algorithm Hash digest
SHA256 8b53c2f728772d4cb26e177c513fbb33cd29240f5b649952ed72fad69c7687a6
MD5 d7218ff57129242157becfcf1d0a608b
BLAKE2b-256 616e8d044ab7beaa177ccd3cebff9e7ca50c783dbf1d59ccdf08031b1199641a

See more details on using hashes here.

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

Hashes for donk-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2af06cfe156e483224a4f62914afccbe13414a87d46c8cb85a737234bca6de00
MD5 dfb233f752d01716ab620505939ecea5
BLAKE2b-256 ccf7e3087dd7e59c1d8b1495f6648ad5eb16405c17132f4639f36005c2c23cd8

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