sphinx-argparse-cli 1.23.0__tar.gz → 1.24.0__tar.gz
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.
- {sphinx_argparse_cli-1.23.0 → sphinx_argparse_cli-1.24.0}/PKG-INFO +1 -1
- {sphinx_argparse_cli-1.23.0 → sphinx_argparse_cli-1.24.0}/pyproject.toml +6 -6
- {sphinx_argparse_cli-1.23.0 → sphinx_argparse_cli-1.24.0}/src/sphinx_argparse_cli/version.py +2 -2
- {sphinx_argparse_cli-1.23.0 → sphinx_argparse_cli-1.24.0}/tests/test_logic.py +1 -3
- sphinx_argparse_cli-1.23.0/tests/complex_pre_310.txt +0 -95
- {sphinx_argparse_cli-1.23.0 → sphinx_argparse_cli-1.24.0}/.gitignore +0 -0
- {sphinx_argparse_cli-1.23.0 → sphinx_argparse_cli-1.24.0}/LICENSE.txt +0 -0
- {sphinx_argparse_cli-1.23.0 → sphinx_argparse_cli-1.24.0}/README.md +0 -0
- {sphinx_argparse_cli-1.23.0 → sphinx_argparse_cli-1.24.0}/src/sphinx_argparse_cli/__init__.py +0 -0
- {sphinx_argparse_cli-1.23.0 → sphinx_argparse_cli-1.24.0}/src/sphinx_argparse_cli/_logic.py +0 -0
- {sphinx_argparse_cli-1.23.0 → sphinx_argparse_cli-1.24.0}/src/sphinx_argparse_cli/py.typed +0 -0
- {sphinx_argparse_cli-1.23.0 → sphinx_argparse_cli-1.24.0}/tests/complex.txt +0 -0
- {sphinx_argparse_cli-1.23.0 → sphinx_argparse_cli-1.24.0}/tests/conftest.py +0 -0
- {sphinx_argparse_cli-1.23.0 → sphinx_argparse_cli-1.24.0}/tests/test_sphinx_argparse_cli.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: sphinx-argparse-cli
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.24.0
|
|
4
4
|
Summary: render CLI arguments (sub-commands friendly) defined by argparse module
|
|
5
5
|
Project-URL: Documentation, https://github.com/tox-dev/sphinx-argparse-cli#sphinx-argparse-cli
|
|
6
6
|
Project-URL: Homepage, https://github.com/tox-dev/sphinx-argparse-cli
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
build-backend = "hatchling.build"
|
|
3
3
|
requires = [
|
|
4
4
|
"hatch-vcs>=0.5",
|
|
5
|
-
"hatchling>=1.
|
|
5
|
+
"hatchling>=1.32.4",
|
|
6
6
|
]
|
|
7
7
|
|
|
8
8
|
[project]
|
|
@@ -65,12 +65,12 @@ type = [
|
|
|
65
65
|
{ include-group = "test" },
|
|
66
66
|
]
|
|
67
67
|
lint = [
|
|
68
|
-
"pre-commit-uv>=4.
|
|
68
|
+
"pre-commit-uv>=4.3",
|
|
69
69
|
]
|
|
70
70
|
pkg-meta = [
|
|
71
71
|
"check-wheel-contents>=0.6.3",
|
|
72
|
-
"twine>=
|
|
73
|
-
"uv>=0.
|
|
72
|
+
"twine>=7",
|
|
73
|
+
"uv>=0.12.22",
|
|
74
74
|
]
|
|
75
75
|
|
|
76
76
|
[tool.hatch]
|
|
@@ -85,7 +85,7 @@ build.targets.sdist.include = [
|
|
|
85
85
|
line-length = 120
|
|
86
86
|
|
|
87
87
|
[tool.ruff]
|
|
88
|
-
target-version = "
|
|
88
|
+
target-version = "py311"
|
|
89
89
|
line-length = 120
|
|
90
90
|
format.preview = true
|
|
91
91
|
format.docstring-code-line-length = 100
|
|
@@ -132,7 +132,7 @@ count = true
|
|
|
132
132
|
max_supported_python = "3.15"
|
|
133
133
|
|
|
134
134
|
[tool.ty]
|
|
135
|
-
environment.python-version = "3.
|
|
135
|
+
environment.python-version = "3.15"
|
|
136
136
|
|
|
137
137
|
[tool.coverage]
|
|
138
138
|
run.parallel = true
|
{sphinx_argparse_cli-1.23.0 → sphinx_argparse_cli-1.24.0}/src/sphinx_argparse_cli/version.py
RENAMED
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '1.
|
|
22
|
-
__version_tuple__ = version_tuple = (1,
|
|
21
|
+
__version__ = version = '1.24.0'
|
|
22
|
+
__version_tuple__ = version_tuple = (1, 24, 0)
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
@@ -2,7 +2,6 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
import os
|
|
4
4
|
import re
|
|
5
|
-
import sys
|
|
6
5
|
from pathlib import Path
|
|
7
6
|
from typing import TYPE_CHECKING
|
|
8
7
|
|
|
@@ -55,8 +54,7 @@ def test_basic_as_html(build_outcome: str) -> None:
|
|
|
55
54
|
|
|
56
55
|
@pytest.mark.sphinx(buildername="text", testroot="complex")
|
|
57
56
|
def test_complex_as_text(build_outcome: str) -> None:
|
|
58
|
-
|
|
59
|
-
expected = (Path(__file__).parent / name).read_text()
|
|
57
|
+
expected = (Path(__file__).parent / "complex.txt").read_text()
|
|
60
58
|
assert build_outcome == expected
|
|
61
59
|
|
|
62
60
|
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
complex - CLI interface
|
|
2
|
-
***********************
|
|
3
|
-
|
|
4
|
-
argparse tester
|
|
5
|
-
|
|
6
|
-
complex [-h] [--root] [--no-help] [--outdir out_dir] [--in-dir IN_DIR] [--foo | --bar]
|
|
7
|
-
{first,f,second,third} ...
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
complex optional arguments
|
|
11
|
-
==========================
|
|
12
|
-
|
|
13
|
-
* **"-h"**, **"--help"** - show this help message and exit
|
|
14
|
-
|
|
15
|
-
* **"--root"** - root flag
|
|
16
|
-
|
|
17
|
-
* **"--no-help"**
|
|
18
|
-
|
|
19
|
-
* **"--outdir"** "out_dir", **"-o"** "out_dir" - output directory
|
|
20
|
-
|
|
21
|
-
* **"--in-dir"** "IN_DIR", **"-i"** "IN_DIR" - input directory
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
complex Exclusive
|
|
25
|
-
=================
|
|
26
|
-
|
|
27
|
-
this is an exclusive group
|
|
28
|
-
|
|
29
|
-
* **"--foo"** - foo
|
|
30
|
-
|
|
31
|
-
* **"--bar"** - bar
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
complex first (f)
|
|
35
|
-
=================
|
|
36
|
-
|
|
37
|
-
a-first-desc
|
|
38
|
-
|
|
39
|
-
complex first [-h] [--flag] [--root] one pos_two
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
complex first positional arguments
|
|
43
|
-
----------------------------------
|
|
44
|
-
|
|
45
|
-
* **"one"** - first positional argument
|
|
46
|
-
|
|
47
|
-
* **"pos_two"** - second positional argument (default: "1")
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
complex first optional arguments
|
|
51
|
-
--------------------------------
|
|
52
|
-
|
|
53
|
-
* **"-h"**, **"--help"** - show this help message and exit
|
|
54
|
-
|
|
55
|
-
* **"--flag"** - a parser first flag
|
|
56
|
-
|
|
57
|
-
* **"--root"** - root flag
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
complex second
|
|
61
|
-
==============
|
|
62
|
-
|
|
63
|
-
complex second [-h] [--flag] [--root] one pos_two
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
complex second positional arguments
|
|
67
|
-
-----------------------------------
|
|
68
|
-
|
|
69
|
-
* **"one"** - first positional argument
|
|
70
|
-
|
|
71
|
-
* **"pos_two"** - second positional argument (default: "green")
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
complex second optional arguments
|
|
75
|
-
---------------------------------
|
|
76
|
-
|
|
77
|
-
* **"-h"**, **"--help"** - show this help message and exit
|
|
78
|
-
|
|
79
|
-
* **"--flag"** - a parser second flag
|
|
80
|
-
|
|
81
|
-
* **"--root"** - root flag
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
complex third
|
|
85
|
-
=============
|
|
86
|
-
|
|
87
|
-
complex third [-h]
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
complex third optional arguments
|
|
91
|
-
--------------------------------
|
|
92
|
-
|
|
93
|
-
* **"-h"**, **"--help"** - show this help message and exit
|
|
94
|
-
|
|
95
|
-
test epilog
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sphinx_argparse_cli-1.23.0 → sphinx_argparse_cli-1.24.0}/src/sphinx_argparse_cli/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|