Skip to main content

A CLI tool for publishing Python packages to PyPI

Project description

pypublish-cli

A CLI tool for publishing Python packages to PyPI.

Installation

pip install pypublish-cli

Usage

Full publish workflow

pypublish 0.2.0              # Full publish: tag, build, upload
pypublish v0.2.0             # Full publish: tag, build, upload

This will:

  1. Create a git tag
  2. Push the tag to origin
  3. Clean up old build artifacts
  4. Build the package using python -m build
  5. Upload to PyPI using twine

Partial workflows

pypublish 0.2.0 --tag-only         # Only create and push tag
pypublish 0.2.0 --build-only       # Tag and build, don't upload
pypublish 0.2.0 --no-build         # Tag and upload existing dist/
pypublish 0.2.0 --no-upload        # Tag and build, don't upload

Delete a tag

pypublish --delete-tag 0.2.0       # Delete tag locally and from origin
pypublish --delete-tag v0.2.0      # Delete tag locally and from origin

This will remove the tag both locally and from the remote repository.

Requirements

  • Python >= 3.7
  • Git repository
  • PyPI account configured with twine

License

MIT

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

pypublish_cli-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

pypublish_cli-0.1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pypublish_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9b1b81343fbd431ff4b979f0573ffd3f509d3fb648a3e339e3dfbe6df3c8699a
MD5 40cd28c93b1cbbf6c5a885bccb34d1e3
BLAKE2b-256 7e2dd9bbf96226e187b17ebedd49bca41eb27018ba85e286b0193e2a0e87376e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pypublish_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd2a13caa340649fc35d51c8822751311e0d44079316adcc3620d8f2db5a8dd0
MD5 05aea57e763954ff8df203924a9a5cc8
BLAKE2b-256 7fbd65c25b9cdc011d126026c1f009197b8066a45308ae233f5080cf5a8c0556

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