A simple CLI tool for building and publishing Python packages.
Project description
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:
- Create the
history/directory if it does not exist. - Move existing files in
dist/tohistory/. - Remove build cache (
*.egg-info/). - Build the package using:
python -m build - 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
buildtwine- A valid
pyproject.toml - PyPI credentials configured for
twine
License
See LICENSE in the repository.
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8014a49f29b069dfa248cf49f87a217d94e4a4ea1f3d987c7aa1ca85aa186dc2
|
|
| MD5 |
ffbf9d9e9bfddacbb320fd37a86cc370
|
|
| BLAKE2b-256 |
33bc72c09b11383f0d95eb6b3a699f6c3a3b7fcc769099bd712533cdb7dc80ca
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
120e09b63b9dfeaf26214838fa7dc2142257a238e0538656418585680841bcf6
|
|
| MD5 |
62355c62d43a67e0532740379a7fac8b
|
|
| BLAKE2b-256 |
98c06082d62225fe9882a63db122946aa122698879d8b8d10166e0b3aabd3820
|