Skip to main content

pk3

Build utilities for pykit3 packages.

Installation

pip install pk3

CLI Usage

Show version from pyproject.toml

pk3 version
# 0.1.1

pk3 version --path /path/to/pyproject.toml

Create git tag from version

pk3 tag
# Created tag: v0.1.1
# Run 'git push --tags' to push the tag

pk3 tag --prefix release-
# Created tag: release-0.1.1

pk3 tag --prefix ""
# Created tag: 0.1.1

Publish to PyPI

TWINE_PASSWORD=pypi-xxx pk3 publish
# Published successfully

# Publish to TestPyPI first
TWINE_PASSWORD=pypi-xxx pk3 publish --test

Python API

from pk3 import get_version, create_tag, publish

# Get version from pyproject.toml
version = get_version()  # reads ./pyproject.toml
version = get_version("/path/to/pyproject.toml")

# Create git tag
tag = create_tag()  # creates "v0.1.1"
tag = create_tag(prefix="release-")  # creates "release-0.1.1"
tag = create_tag(prefix="")  # creates "0.1.1"

# Publish to PyPI (requires TWINE_PASSWORD env var)
publish()  # publish to PyPI
publish(test=True)  # publish to TestPyPI

Metadata

Release files for pk3 0.1.6

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

Source distribution (sdist)

Source distribution for pk3 0.1.6
File Size Uploaded
pk3-0.1.6.tar.gz 14.9 kB Details

Built distribution (wheel)

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

Total release size: 24.2 kB

Release files / pk3-0.1.6.tar.gz

Download URL pk3-0.1.6.tar.gz
Size 14.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d2dd484a341fa923ae8d77ed183ed6a6b1766546d1a405a98c9195bef418d6d7
BLAKE2b-256 checksum
How to use checksums
08b46855575abc78774aadd09cc55821a2c6a543cebad7444f9013ab5b90c6e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / pk3-0.1.6-py3-none-any.whl

Download URL pk3-0.1.6-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
54d2b55a152a7830648e016177366cc451b06340411485a78c2056f0f92de496
BLAKE2b-256 checksum
How to use checksums
722e8f44bc8daf5b07dd1343c8f75e10bfb8d881e6733d83b1c65e8627de4e0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.1

2 release files

0.1.0

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