zen-cli
Python 3.12 command-line skeleton. All local workflow goes through dev.py.
Develop
You need Python 3.12. On Windows, if python is another version, use py -3.12:
py -3.12 dev.py init
zen --help
init creates .venv, runs pip install -U -e ".[dev]", and installs git hooks.
| Command | What it does |
|---|---|
python dev.py init |
Create the env and editable-install the CLI |
python dev.py lint |
Ruff fix/format and mypy |
python dev.py test |
unittest |
python dev.py bump [--part patch|minor|major] |
Change version in pyproject.toml |
python dev.py publish |
Build and upload to PyPI |
python dev.py release [--part patch] |
lint, test, bump, then publish |
python dev.py clean [--venv] |
Remove artifacts; --venv also deletes .venv |
Publish needs a PyPI API token in TWINE_PASSWORD (optional TWINE_USERNAME=__token__) or ~/.pypirc. Do not commit credentials. PyPI rejects uploading the same version twice.
Jenkins
The Jenkinsfile only calls dev.py. Default runs init, lint, and test. Set PUBLISH=true to run release. Store the PyPI token as a Jenkins secret text credential named pypi-api-token.
Install a published build
pip install zen-cli
pipx install zen-cli
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 zen_cli-0.1.1.tar.gz.
File metadata
- Download URL: zen_cli-0.1.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9d76a013311a7bba14ba54e844883bd95c2d41f3f9180df51eb78445da7d174
|
|
| MD5 |
26e7d0623f94cfd125c710e1189bd6b2
|
|
| BLAKE2b-256 |
fd33a994e0512f22afec74b9bd5b105ea502e546c612b3090dba94cf3a81338d
|
File details
Details for the file zen_cli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: zen_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2b57b3d6e93d056ba8b26238b80bfe7833b31c6d8408ca3f8939b959e57379a
|
|
| MD5 |
b059b65d65002728d69a2911a3bd569e
|
|
| BLAKE2b-256 |
2e2cb85c55a62d44c9cb69112db6f7f65aa8e47689266de8a12f0ae0a6b73617
|