Skip to main content

A simple CLI tool for building and publishing Python packages.

Project description

🐱‍👓 pyrelease-cli 🐱‍👓
Automate Your Python Package Release Workflow

PyPI version Python License

Github stars

About

pyrelease-cli is a simple CLI tool for building and publishing Python packages.

  • Python: 3.8+

Installation

Install with pipx

pipx installs the application in an isolated environment while making the command globally available.

pip install pipx
pipx ensurepath
pipx install pyrelease-cli

Quick Start

Before using it, make sure your project contains a valid pyproject.toml and that you have configured your PyPI credentials.

Publish a package

pyrelease

This command will:

  1. Create the history/ directory if it does not exist.
  2. Move existing files in dist/ to history/.
  3. Remove build cache (*.egg-info/).
  4. Build the package using: python -m build
  5. Upload all generated distributions to PyPI using: python -m twine upload dist/*

Build only

Build the package without uploading it.

pyrelease --build-only

This will:

  • Clean previous build artifacts.
  • Build the package.
  • Keep the generated files in dist/.

Upload only

Upload existing distribution files in dist/.

pyrelease --upload-only

This is useful when a previous upload failed and you do not want to rebuild the package.


Clean build artifacts

Archive old distributions without building or uploading.

pyrelease --clean

Requirements

  • Python >= 3.8
  • build
  • twine
  • A valid pyproject.toml
  • PyPI credentials configured for twine

License

See LICENSE in the repository.

Links

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

pyrelease_cli-0.2.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

pyrelease_cli-0.2.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file pyrelease_cli-0.2.0.tar.gz.

File metadata

  • Download URL: pyrelease_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for pyrelease_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8014a49f29b069dfa248cf49f87a217d94e4a4ea1f3d987c7aa1ca85aa186dc2
MD5 ffbf9d9e9bfddacbb320fd37a86cc370
BLAKE2b-256 33bc72c09b11383f0d95eb6b3a699f6c3a3b7fcc769099bd712533cdb7dc80ca

See more details on using hashes here.

File details

Details for the file pyrelease_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pyrelease_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for pyrelease_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 120e09b63b9dfeaf26214838fa7dc2142257a238e0538656418585680841bcf6
MD5 62355c62d43a67e0532740379a7fac8b
BLAKE2b-256 98c06082d62225fe9882a63db122946aa122698879d8b8d10166e0b3aabd3820

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