zen-cli 0.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- zen_cli/__init__.py +1 -0
- zen_cli/__main__.py +4 -0
- zen_cli/cli.py +12 -0
- zen_cli/commands/__init__.py +1 -0
- zen_cli/commands/hello.py +7 -0
- zen_cli-0.1.1.dist-info/METADATA +57 -0
- zen_cli-0.1.1.dist-info/RECORD +10 -0
- zen_cli-0.1.1.dist-info/WHEEL +4 -0
- zen_cli-0.1.1.dist-info/entry_points.txt +2 -0
- zen_cli-0.1.1.dist-info/licenses/LICENSE +21 -0
zen_cli/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""zen-cli package."""
|
zen_cli/__main__.py
ADDED
zen_cli/cli.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Click subcommands."""
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: zen-cli
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: A small command-line toolkit.
|
|
5
|
+
Project-URL: Homepage, https://pypi.org/project/zen-cli/
|
|
6
|
+
Author: zen-cli authors
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Python: <3.13,>=3.12
|
|
10
|
+
Requires-Dist: click>=8.1
|
|
11
|
+
Provides-Extra: dev
|
|
12
|
+
Requires-Dist: build; extra == 'dev'
|
|
13
|
+
Requires-Dist: mypy; extra == 'dev'
|
|
14
|
+
Requires-Dist: pre-commit; extra == 'dev'
|
|
15
|
+
Requires-Dist: ruff; extra == 'dev'
|
|
16
|
+
Provides-Extra: release
|
|
17
|
+
Requires-Dist: build; extra == 'release'
|
|
18
|
+
Requires-Dist: twine; extra == 'release'
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
|
|
21
|
+
# zen-cli
|
|
22
|
+
|
|
23
|
+
Python 3.12 command-line skeleton. All local workflow goes through `dev.py`.
|
|
24
|
+
|
|
25
|
+
## Develop
|
|
26
|
+
|
|
27
|
+
You need Python 3.12. On Windows, if `python` is another version, use `py -3.12`:
|
|
28
|
+
|
|
29
|
+
```text
|
|
30
|
+
py -3.12 dev.py init
|
|
31
|
+
zen --help
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
`init` creates `.venv`, runs `pip install -U -e ".[dev]"`, and installs git hooks.
|
|
35
|
+
|
|
36
|
+
| Command | What it does |
|
|
37
|
+
|---|---|
|
|
38
|
+
| `python dev.py init` | Create the env and editable-install the CLI |
|
|
39
|
+
| `python dev.py lint` | Ruff fix/format and mypy |
|
|
40
|
+
| `python dev.py test` | unittest |
|
|
41
|
+
| `python dev.py bump [--part patch\|minor\|major]` | Change `version` in `pyproject.toml` |
|
|
42
|
+
| `python dev.py publish` | Build and upload to PyPI |
|
|
43
|
+
| `python dev.py release [--part patch]` | lint, test, bump, then publish |
|
|
44
|
+
| `python dev.py clean [--venv]` | Remove artifacts; `--venv` also deletes `.venv` |
|
|
45
|
+
|
|
46
|
+
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.
|
|
47
|
+
|
|
48
|
+
## Jenkins
|
|
49
|
+
|
|
50
|
+
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`.
|
|
51
|
+
|
|
52
|
+
## Install a published build
|
|
53
|
+
|
|
54
|
+
```text
|
|
55
|
+
pip install zen-cli
|
|
56
|
+
pipx install zen-cli
|
|
57
|
+
```
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
zen_cli/__init__.py,sha256=49YiE3DhqbIN-0NueFSWYcPFlV9_-626SU25MFi5Llc,24
|
|
2
|
+
zen_cli/__main__.py,sha256=4mfIkorP4z-NfQvtzNzieua2O_6NG0nUmUTsCo4IikQ,70
|
|
3
|
+
zen_cli/cli.py,sha256=-Ic71Kq4dKR8Wucy1pi78pBN8iEoOhEWJpGAPxui3D0,239
|
|
4
|
+
zen_cli/commands/__init__.py,sha256=jmSC1uQMa5rBGjakeareO93Js_eAJU2g2M4LhdEVNAs,26
|
|
5
|
+
zen_cli/commands/hello.py,sha256=u20_sTU11DBEplC5KblJz0glrl0ALAFRAkbQqj2n8AE,128
|
|
6
|
+
zen_cli-0.1.1.dist-info/METADATA,sha256=7Aon6sk62-U7imAc-Ftng5YnxswRbKCiN08YwiMosOU,1884
|
|
7
|
+
zen_cli-0.1.1.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
|
|
8
|
+
zen_cli-0.1.1.dist-info/entry_points.txt,sha256=sx7BM0kpZJ8TBTMag1EeXY7lHaFXgRlllyxVbljFaOk,40
|
|
9
|
+
zen_cli-0.1.1.dist-info/licenses/LICENSE,sha256=rpinNXNiyGazOb6ZINcgeprmnme47b9-BL1Ld96Dub4,1093
|
|
10
|
+
zen_cli-0.1.1.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 zen-cli authors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|