Skip to main content

verbake

A simple script that copies the value of version from pyproject.toml and uses it to overwrite the value of __version__ in a package's main __init__.py.

This is for getting around the problem of needing to remember to manually version bump both pyproject.toml and __init__.py (for those packages that need the version in both places) every time you update your project.

This also helps avoid an error that occurs when testing your package in remote environments like GitHub Actions which is caused by dynamically setting __version__ using importlib.metadata and other methods.

Install (PyPI)

pip install verbake

Usage

from verbake.baker import bake
bake()

Metadata

Release files for verbake 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for verbake 1.0.1
File Size Uploaded
verbake-1.0.1.tar.gz 1.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for verbake 1.0.1
File Interpreter ABI Platform
verbake-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 4.2 kB

Release files / verbake-1.0.1.tar.gz

Download URL verbake-1.0.1.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fa14a3825e81687ac7bac249ab1f4371707ad1f4faeb050ae2e67758b2696d61
BLAKE2b-256 checksum
How to use checksums
1e28abe01aaea88e787e032180e3c0b4429b6f250e265c4d1f6abac6a94784f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / verbake-1.0.1-py3-none-any.whl

Download URL verbake-1.0.1-py3-none-any.whl
Size 2.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a12ef7778a7d0ff15c2d93f8985be0e36b4694f2074cbe26b4956aaf6e012290
BLAKE2b-256 checksum
How to use checksums
9b37ea1b13b6476c8cc72ae146017c1c8fe3651c4a7cb5d535123a73c3267fa5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page