lockss-pybasic 0.2.0.dev13__tar.gz → 0.2.0.dev15__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.2.0.dev13 → lockss_pybasic-0.2.0.dev15}/PKG-INFO +2 -2
- {lockss_pybasic-0.2.0.dev13 → lockss_pybasic-0.2.0.dev15}/README.rst +1 -1
- {lockss_pybasic-0.2.0.dev13 → lockss_pybasic-0.2.0.dev15}/pyproject.toml +1 -1
- {lockss_pybasic-0.2.0.dev13 → lockss_pybasic-0.2.0.dev15}/src/lockss/pybasic/__init__.py +1 -1
- {lockss_pybasic-0.2.0.dev13 → lockss_pybasic-0.2.0.dev15}/src/lockss/pybasic/cliutil.py +16 -0
- {lockss_pybasic-0.2.0.dev13 → lockss_pybasic-0.2.0.dev15}/CHANGELOG.rst +0 -0
- {lockss_pybasic-0.2.0.dev13 → lockss_pybasic-0.2.0.dev15}/LICENSE +0 -0
- {lockss_pybasic-0.2.0.dev13 → lockss_pybasic-0.2.0.dev15}/src/lockss/pybasic/auidutil.py +0 -0
- {lockss_pybasic-0.2.0.dev13 → lockss_pybasic-0.2.0.dev15}/src/lockss/pybasic/errorutil.py +0 -0
- {lockss_pybasic-0.2.0.dev13 → lockss_pybasic-0.2.0.dev15}/src/lockss/pybasic/fileutil.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lockss-pybasic
|
|
3
|
-
Version: 0.2.0.
|
|
3
|
+
Version: 0.2.0.dev15
|
|
4
4
|
Summary: Basic Python utilities
|
|
5
5
|
License: BSD-3-Clause
|
|
6
6
|
License-File: LICENSE
|
|
@@ -24,7 +24,7 @@ Description-Content-Type: text/x-rst
|
|
|
24
24
|
lockss-pybasic
|
|
25
25
|
==============
|
|
26
26
|
|
|
27
|
-
.. |RELEASE| replace:: 0.2.0-
|
|
27
|
+
.. |RELEASE| replace:: 0.2.0-dev15
|
|
28
28
|
.. |RELEASE_DATE| replace:: NOT YET RELEASED
|
|
29
29
|
|
|
30
30
|
**Latest release:** |RELEASE| (|RELEASE_DATE|)
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
[project]
|
|
30
30
|
name = "lockss-pybasic"
|
|
31
|
-
version = "0.2.0-
|
|
31
|
+
version = "0.2.0-dev15" # 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"
|
|
@@ -36,6 +36,7 @@ from pathlib import Path
|
|
|
36
36
|
from typing import Any, Optional
|
|
37
37
|
|
|
38
38
|
import click
|
|
39
|
+
from click.types import ParamType, IntRange
|
|
39
40
|
from click_extra import ExtraContext, HelpExtraFormatter, Style
|
|
40
41
|
from click_extra.colorize import default_theme
|
|
41
42
|
|
|
@@ -118,3 +119,18 @@ def make_extra_context_settings() -> dict[str, Any]:
|
|
|
118
119
|
)
|
|
119
120
|
)
|
|
120
121
|
)
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
PositiveInt: ParamType = IntRange(min=1, max=None)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
NonNegativeInt: ParamType = IntRange(min=0, max=None)
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
NegativeInt: ParamType = IntRange(min=None, max=-1)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
NonPositiveInt: ParamType = IntRange(min=None, max=0)
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
UInt16: ParamType = IntRange(min=0, max=65535)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|