lockss-pybasic 0.3.0.dev8__tar.gz → 0.3.0.dev10__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.
- {lockss_pybasic-0.3.0.dev8 → lockss_pybasic-0.3.0.dev10}/PKG-INFO +4 -3
- {lockss_pybasic-0.3.0.dev8 → lockss_pybasic-0.3.0.dev10}/README.rst +2 -1
- {lockss_pybasic-0.3.0.dev8 → lockss_pybasic-0.3.0.dev10}/pyproject.toml +2 -2
- {lockss_pybasic-0.3.0.dev8 → lockss_pybasic-0.3.0.dev10}/src/lockss/pybasic/__init__.py +1 -1
- {lockss_pybasic-0.3.0.dev8 → lockss_pybasic-0.3.0.dev10}/src/lockss/pybasic/cliutil.py +8 -4
- {lockss_pybasic-0.3.0.dev8 → lockss_pybasic-0.3.0.dev10}/CHANGELOG.rst +0 -0
- {lockss_pybasic-0.3.0.dev8 → lockss_pybasic-0.3.0.dev10}/LICENSE +0 -0
- {lockss_pybasic-0.3.0.dev8 → lockss_pybasic-0.3.0.dev10}/src/lockss/pybasic/auidutil.py +0 -0
- {lockss_pybasic-0.3.0.dev8 → lockss_pybasic-0.3.0.dev10}/src/lockss/pybasic/errorutil.py +0 -0
- {lockss_pybasic-0.3.0.dev8 → lockss_pybasic-0.3.0.dev10}/src/lockss/pybasic/fileutil.py +0 -0
- {lockss_pybasic-0.3.0.dev8 → lockss_pybasic-0.3.0.dev10}/src/lockss/pybasic/nodeutil.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lockss-pybasic
|
|
3
|
-
Version: 0.3.0.
|
|
3
|
+
Version: 0.3.0.dev10
|
|
4
4
|
Summary: Basic Python utilities
|
|
5
5
|
License: BSD-3-Clause
|
|
6
6
|
License-File: LICENSE
|
|
@@ -17,7 +17,7 @@ Classifier: License :: OSI Approved :: BSD License
|
|
|
17
17
|
Classifier: Programming Language :: Python
|
|
18
18
|
Classifier: Topic :: Software Development :: Libraries
|
|
19
19
|
Requires-Dist: annotated-types (>=0.7.0,<0.8.0)
|
|
20
|
-
Requires-Dist: click-extra (>=
|
|
20
|
+
Requires-Dist: click-extra (>=8.0.1,<8.1.0)
|
|
21
21
|
Requires-Dist: pydantic (>=2.13.0,<2.14.0)
|
|
22
22
|
Project-URL: Repository, https://github.com/lockss/lockss-pybasic
|
|
23
23
|
Description-Content-Type: text/x-rst
|
|
@@ -26,7 +26,8 @@ Description-Content-Type: text/x-rst
|
|
|
26
26
|
lockss-pybasic
|
|
27
27
|
==============
|
|
28
28
|
|
|
29
|
-
.. |RELEASE| replace:: 0.3.0-
|
|
29
|
+
.. |RELEASE| replace:: 0.3.0-dev10
|
|
30
|
+
|
|
30
31
|
.. |RELEASE_DATE| replace:: NOT YET RELEASED
|
|
31
32
|
|
|
32
33
|
**Latest release:** |RELEASE| (|RELEASE_DATE|)
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
[project]
|
|
30
30
|
name = "lockss-pybasic"
|
|
31
|
-
version = "0.3.0-
|
|
31
|
+
version = "0.3.0-dev10" # Always change in __init__.py, and at release time in README.rst and CHANGELOG.rst
|
|
32
32
|
description = "Basic Python utilities"
|
|
33
33
|
license = { text = "BSD-3-Clause" }
|
|
34
34
|
readme = "README.rst"
|
|
@@ -41,7 +41,7 @@ maintainers = [
|
|
|
41
41
|
]
|
|
42
42
|
dependencies = [
|
|
43
43
|
"annotated-types (>=0.7.0,<0.8.0)", # from Pydantic
|
|
44
|
-
"click-extra (>=
|
|
44
|
+
"click-extra (>=8.0.1,<8.1.0)",
|
|
45
45
|
"pydantic (>=2.13.0,<2.14.0)",
|
|
46
46
|
]
|
|
47
47
|
classifiers = [
|
|
@@ -35,11 +35,11 @@ Command line utilities.
|
|
|
35
35
|
from pathlib import Path
|
|
36
36
|
from typing import Any, Optional, TypeAlias, Union
|
|
37
37
|
|
|
38
|
-
from click_extra import ChoiceSource,
|
|
38
|
+
from click_extra import ChoiceSource, Context, EnumChoice, HelpFormatter, IntRange, ParamType, Path as _ClickPath, Style, TableFormat, option
|
|
39
39
|
from click_extra.theme import get_default_theme
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
ClickPath: TypeAlias =
|
|
42
|
+
ClickPath: TypeAlias = _ClickPath
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
def click_path(spec: Optional[str]) -> ClickPath:
|
|
@@ -208,8 +208,8 @@ def make_extra_context_settings() -> dict[str, Any]:
|
|
|
208
208
|
:return: A custom ``click_Extra.ExtraContext``.
|
|
209
209
|
:rtype: dict[str, Any]
|
|
210
210
|
"""
|
|
211
|
-
return
|
|
212
|
-
formatter_settings=
|
|
211
|
+
return Context.settings(
|
|
212
|
+
formatter_settings=HelpFormatter.settings(
|
|
213
213
|
theme=get_default_theme().with_(
|
|
214
214
|
invoked_command=Style(bold=True)
|
|
215
215
|
)
|
|
@@ -235,3 +235,7 @@ NonPositiveInt: ParamType = IntRange(min=None, max=0)
|
|
|
235
235
|
|
|
236
236
|
#: A ``click.ParamType`` for unsigned 16-bit integers (0 to 65535).
|
|
237
237
|
UInt16: ParamType = IntRange(min=0, max=65535)
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
#: A ``click.ParamType`` alias for port numbers (UInt16).
|
|
241
|
+
PortNumber: TypeAlias = UInt16
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|