Skip to main content

Utilities for managing version, changelogs, and project releases.

Project description

Keats

John Keats

Keats is an Python build, installation, and workflow manager.

Features include forced change logs, release scripts, and package version control.

Why

Every Python developer seems to have their own tricks and scripts for maintaining changelogs, package versions, and managing releases. Rather than reinventing the wheel everytime you develop a new pacakge, Keats provides a standard workflow for doing python package releases. No customization or Makefiles are required.

Usage

To install Keats to your project, run:

poetry run add --dev keats

Verify your installation by running

poetry run keats keats

To list documentation, run keats with no arguments

poetry run keats

To begin version managment by creating a __version__.py in your main package, run

poetry run keats version up

From within your python project, you can access your version number and other package information using something like (usually in the __init__.py of your main package).

from .__version__.py import __version__, __title__, __authors__ # and so on

To bump to the next version and update your change log (for more on change logs, see below)

poetry run keats bump

To bump to a specific version:

poetry run keats bump <optional version>

To bump without updating the change log:

poetry run keats version bump

Changelogs

Changelogs are important understanding project status and developer intentions. Keats encourages an up-to-date changelog by providing an standard interface for maintaining and updating change logs using the following files:

  • .keats/changelog.json - JSON formatted list of changes, with version number, dates, and optional change list.
  • .keats/changelog.md - markdown formatted changelog

The recommended way to use this is to run keats bump which will bump your package version and update your change log:

poetry run keats bump <optional version>

This will provide an interactive script to update your changelog with a description and a list of changes. Entries are appended to the .keats/changelog.json and saved. The file is then converted to a markdown file for readability or documentation purposes.

To just update your change log:

poetry run keats changelog add

If you want to just update the .keats/changelog.md from the json file, run:

poetry run keats changelog up

To clear your change logs:

poetry rubn keats changelog clear

Global installation

To install Keats globally, run:

pip install keats

You can then run all of the commands without the poetry run prefix, given that your current directory is a Python project with a pyproject.toml file.

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

keats-0.2.15.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

keats-0.2.15-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file keats-0.2.15.tar.gz.

File metadata

  • Download URL: keats-0.2.15.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.3 Darwin/18.6.0

File hashes

Hashes for keats-0.2.15.tar.gz
Algorithm Hash digest
SHA256 34b4b9ffa24b83c6b2e43df6cacda2ac897d3a0c66a9b94f7b46f0c3799a8088
MD5 01b423cdc4674119d240f97bf6024a66
BLAKE2b-256 249881bcfd685b37a070c30bdecdf6f7f5423a887f369cd59c537ce1107bf213

See more details on using hashes here.

File details

Details for the file keats-0.2.15-py3-none-any.whl.

File metadata

  • Download URL: keats-0.2.15-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.3 Darwin/18.6.0

File hashes

Hashes for keats-0.2.15-py3-none-any.whl
Algorithm Hash digest
SHA256 6a8064c123914b2a8b0541c15442debef7209040f6d6b56f95ee8c593f4258d0
MD5 b5255e750e552f5480acc7c55881e1db
BLAKE2b-256 30b1d4152b8d33791fd12e955a5869416118492eadd87e92a14a6cddc8255ff8

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