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 from PyPI

This installs the core package with minimal dependencies.

pip 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

Remove build cache and 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.1.0.tar.gz (3.8 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.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyrelease_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for pyrelease_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f5b7f3bf5a8e317853786bc00b8932b8f391bc44cc648f8e08e359d2f4eb064a
MD5 19a45a09b01be443149e146947024e22
BLAKE2b-256 f71cdb8353648e7aebe12ed9e2265011e5ad37d1d5839afc5be96ee8040cc05c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyrelease_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for pyrelease_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b347b2cf29a489f76de30585d388b9c638a92e85eb43b3e555f832f8999b344a
MD5 5b4027d17104c1be61a87e27f2c3c6d4
BLAKE2b-256 41a5943bcc01ecc43b3798a581b2b1e7b5abb22381c4afa24a530a86f0c9c0f5

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