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:
- Create a git tag
- Push the tag to origin
- Clean up old build artifacts
- Build the package using
python -m build - 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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b1b81343fbd431ff4b979f0573ffd3f509d3fb648a3e339e3dfbe6df3c8699a
|
|
| MD5 |
40cd28c93b1cbbf6c5a885bccb34d1e3
|
|
| BLAKE2b-256 |
7e2dd9bbf96226e187b17ebedd49bca41eb27018ba85e286b0193e2a0e87376e
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd2a13caa340649fc35d51c8822751311e0d44079316adcc3620d8f2db5a8dd0
|
|
| MD5 |
05aea57e763954ff8df203924a9a5cc8
|
|
| BLAKE2b-256 |
7fbd65c25b9cdc011d126026c1f009197b8066a45308ae233f5080cf5a8c0556
|