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

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.1.1.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.1.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyrelease_cli-0.1.1.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.1.1.tar.gz
Algorithm Hash digest
SHA256 10bd2c953ae7388f0c19f88d0b0c652b36d502e3ca30346108483d2f51727482
MD5 148595deb581662985477ec52084560f
BLAKE2b-256 2ae26db7f36fd99a73ef4adfa474c6c7da8c22141495b7fc36ae2f6c011ab390

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyrelease_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 211cc11a3b589243a6f0ee76fdd35df8826fc3238ba25a911a1443975258b2e1
MD5 4a572121361f21a3f29feeb7b5d9e39e
BLAKE2b-256 6ef1c9f3a71c4af380da37cd8dad17b33130eb4ca1ad2b1a993061ef2fffbcb1

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