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

Download files

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

Source Distribution

pk3-0.1.4.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

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

pk3-0.1.4-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file pk3-0.1.4.tar.gz.

File metadata

  • Download URL: pk3-0.1.4.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for pk3-0.1.4.tar.gz
Algorithm Hash digest
SHA256 140f5e80d8c92e61f024040b8b6d415b9fe0442cc4b4f2e6d9b542721e9b9fc0
MD5 54df31bce391810fd3d16e1b1d206f42
BLAKE2b-256 c599038c98b9235e03b266e6f82091807bc08777715230758145d1780eb88c86

See more details on using hashes here.

File details

Details for the file pk3-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pk3-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for pk3-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a9395d5a785393345f921396deca9c1265fc9a2ceaed21e9fb4685cc0216a150
MD5 95a1b0db807ff07122f67e7e3d8236e8
BLAKE2b-256 cd8119254e621b4ef79e4e1c67535135edc9cae687ff37cb9ad4db41db174638

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 files

0.1.3

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page