Skip to main content

Build utilities for pykit3 packages

Project description

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

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

pk3-0.1.3.tar.gz (7.8 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.3-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pk3-0.1.3.tar.gz
  • Upload date:
  • Size: 7.8 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.3.tar.gz
Algorithm Hash digest
SHA256 b5cad65b68f81a5b933d6f3e794c9d6d5b524164eb86936d4486932758545221
MD5 3340d29164c3d23b0ccb8ea13abbcff5
BLAKE2b-256 22a1da79476ad78d9d4db4bb5d9248d0d303077b31018a87bfdd6aefd297296f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pk3-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.6 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 655d2aa3e82d83427f7f87db3fbd8ae5247038807ef7b434ca3206a438a1765a
MD5 b0a05601122eaa672cbc11a3f30b1166
BLAKE2b-256 fc68c465dc9a8c4938e68ca2c9f36b2b10bc95f73ab61d88877bb03669a4fb9e

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