lockss-pybasic 0.2.0.dev15__tar.gz → 0.2.0.dev17__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.dev17/CHANGELOG.rst +51 -0
- {lockss_pybasic-0.2.0.dev15 → lockss_pybasic-0.2.0.dev17}/PKG-INFO +2 -2
- {lockss_pybasic-0.2.0.dev15 → lockss_pybasic-0.2.0.dev17}/README.rst +1 -1
- {lockss_pybasic-0.2.0.dev15 → lockss_pybasic-0.2.0.dev17}/pyproject.toml +1 -1
- {lockss_pybasic-0.2.0.dev15 → lockss_pybasic-0.2.0.dev17}/src/lockss/pybasic/__init__.py +1 -1
- {lockss_pybasic-0.2.0.dev15 → lockss_pybasic-0.2.0.dev17}/src/lockss/pybasic/cliutil.py +6 -1
- lockss_pybasic-0.2.0.dev15/CHANGELOG.rst +0 -35
- {lockss_pybasic-0.2.0.dev15 → lockss_pybasic-0.2.0.dev17}/LICENSE +0 -0
- {lockss_pybasic-0.2.0.dev15 → lockss_pybasic-0.2.0.dev17}/src/lockss/pybasic/auidutil.py +0 -0
- {lockss_pybasic-0.2.0.dev15 → lockss_pybasic-0.2.0.dev17}/src/lockss/pybasic/errorutil.py +0 -0
- {lockss_pybasic-0.2.0.dev15 → lockss_pybasic-0.2.0.dev17}/src/lockss/pybasic/fileutil.py +0 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
=============
|
|
2
|
+
Release Notes
|
|
3
|
+
=============
|
|
4
|
+
|
|
5
|
+
-----
|
|
6
|
+
0.2.0
|
|
7
|
+
-----
|
|
8
|
+
|
|
9
|
+
Released: NOT YET RELEASED
|
|
10
|
+
|
|
11
|
+
Requires Python 3.10.
|
|
12
|
+
|
|
13
|
+
* **Features**
|
|
14
|
+
|
|
15
|
+
* ``lockss.pybasic.cliutil`` has been replaced with utilities based on `Click Extra <https://kdeldycke.github.io/click-extra>`_, `Cloup <https://cloup.readthedocs.io/>`_ and `Click <https://click.palletsprojects.com/>`_:
|
|
16
|
+
|
|
17
|
+
* ``click_path()``: a ``click.Path`` utility.
|
|
18
|
+
|
|
19
|
+
* ``PositiveInt``, ``NonNegativeInt``, ``NegativeInt``, ``NonPositiveInt``, ``UInt16``: ``click.ParamType`` integer types.
|
|
20
|
+
|
|
21
|
+
* ``compose_decorators()``: a decorator utility.
|
|
22
|
+
|
|
23
|
+
* ``make_extra_context_settings()``: a standard ``click_extra.commands.ExtraContext``.
|
|
24
|
+
|
|
25
|
+
``lockss.pybasic.outpututil`` has been removed.
|
|
26
|
+
|
|
27
|
+
-----
|
|
28
|
+
0.1.1
|
|
29
|
+
-----
|
|
30
|
+
|
|
31
|
+
Released: 2025-10-02
|
|
32
|
+
|
|
33
|
+
* **Bug Fixes**
|
|
34
|
+
|
|
35
|
+
* Remove Python 3.12+ f-string quote reuse (lockss-pybasic is Python 3.9+).
|
|
36
|
+
|
|
37
|
+
-----
|
|
38
|
+
0.1.0
|
|
39
|
+
-----
|
|
40
|
+
|
|
41
|
+
Released: 2025-07-01
|
|
42
|
+
|
|
43
|
+
Initial release, including:
|
|
44
|
+
|
|
45
|
+
* ``cliutil``
|
|
46
|
+
|
|
47
|
+
* ``errorutil``
|
|
48
|
+
|
|
49
|
+
* ``fileutil``
|
|
50
|
+
|
|
51
|
+
* ``outpututil``
|
|
@@ -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.dev17
|
|
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-dev17
|
|
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-dev17" # 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"
|
|
@@ -37,7 +37,7 @@ from typing import Any, Optional
|
|
|
37
37
|
|
|
38
38
|
import click
|
|
39
39
|
from click.types import ParamType, IntRange
|
|
40
|
-
from click_extra import ExtraContext, HelpExtraFormatter, Style
|
|
40
|
+
from click_extra import ChoiceSource, EnumChoice, ExtraContext, HelpExtraFormatter, Style, TableFormat, option
|
|
41
41
|
from click_extra.colorize import default_theme
|
|
42
42
|
|
|
43
43
|
|
|
@@ -111,6 +111,11 @@ def compose_decorators(*decorators):
|
|
|
111
111
|
return wrapped
|
|
112
112
|
|
|
113
113
|
|
|
114
|
+
def make_table_format_option(switches: tuple[str, ...] = ('--table-format', '-T'),
|
|
115
|
+
default: TableFormat = TableFormat.SIMPLE):
|
|
116
|
+
return option(*switches, type=EnumChoice(TableFormat, choice_source=ChoiceSource.VALUE), default=default, show_default=True, help='Set the rendering of tables to the given style.')
|
|
117
|
+
|
|
118
|
+
|
|
114
119
|
def make_extra_context_settings() -> dict[str, Any]:
|
|
115
120
|
return ExtraContext.settings(
|
|
116
121
|
formatter_settings=HelpExtraFormatter.settings(
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
=============
|
|
2
|
-
Release Notes
|
|
3
|
-
=============
|
|
4
|
-
|
|
5
|
-
-----
|
|
6
|
-
0.2.0
|
|
7
|
-
-----
|
|
8
|
-
|
|
9
|
-
Released: NOT YET RELEASED
|
|
10
|
-
|
|
11
|
-
-----
|
|
12
|
-
0.1.1
|
|
13
|
-
-----
|
|
14
|
-
|
|
15
|
-
Released: 2025-10-02
|
|
16
|
-
|
|
17
|
-
* **Bug Fixes**
|
|
18
|
-
|
|
19
|
-
* Remove Python 3.12+ f-string quote reuse (lockss-pybasic is Python 3.9+).
|
|
20
|
-
|
|
21
|
-
-----
|
|
22
|
-
0.1.0
|
|
23
|
-
-----
|
|
24
|
-
|
|
25
|
-
Released: 2025-07-01
|
|
26
|
-
|
|
27
|
-
Initial release, including:
|
|
28
|
-
|
|
29
|
-
* ``cliutil``
|
|
30
|
-
|
|
31
|
-
* ``errorutil``
|
|
32
|
-
|
|
33
|
-
* ``fileutil``
|
|
34
|
-
|
|
35
|
-
* ``outpututil``
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|