lockss-pybasic 0.3.0.dev9__py3-none-any.whl → 0.3.0.dev11__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.
@@ -36,4 +36,4 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36
36
  POSSIBILITY OF SUCH DAMAGE.
37
37
  '''.strip()
38
38
 
39
- __version__ = '0.3.0-dev9'
39
+ __version__ = '0.3.0-dev11'
lockss/pybasic/cliutil.py CHANGED
@@ -35,7 +35,7 @@ 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, EnumChoice, ExtraContext, HelpExtraFormatter, IntRange, ParamType, Path as _ClickPath, Style, TableFormat, option
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
 
@@ -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 ExtraContext.settings(
212
- formatter_settings=HelpExtraFormatter.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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lockss-pybasic
3
- Version: 0.3.0.dev9
3
+ Version: 0.3.0.dev11
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 (>=7.18.0,<7.19.0)
20
+ Requires-Dist: click-extra (>=8.1.1,<8.2.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,7 @@ Description-Content-Type: text/x-rst
26
26
  lockss-pybasic
27
27
  ==============
28
28
 
29
- .. |RELEASE| replace:: 0.3.0-dev9
29
+ .. |RELEASE| replace:: 0.3.0-dev11
30
30
 
31
31
  .. |RELEASE_DATE| replace:: NOT YET RELEASED
32
32
 
@@ -0,0 +1,10 @@
1
+ lockss/pybasic/__init__.py,sha256=TJtwq0rqEqO7AfxZRvc-_hRnsNs5hR9dOWbt0NcOL54,1679
2
+ lockss/pybasic/auidutil.py,sha256=Q4vjjGfymiXVwPu35RyyLZBnViv8mDJKCjOyJb-sbS8,13921
3
+ lockss/pybasic/cliutil.py,sha256=rKpodgt2oO9SHbwN1v13cMzg337YWT-iDzNM2SaUn7k,8221
4
+ lockss/pybasic/errorutil.py,sha256=4EaO0a1yIG1DbWltASeT15bg1bGg5kOYspsW0iJdVLc,1951
5
+ lockss/pybasic/fileutil.py,sha256=P_XW_UX6hVvP45vRV8fduclbGmoFflW83a6ZfFE-8Hc,2966
6
+ lockss/pybasic/nodeutil.py,sha256=-MSCS79JMAgoja00lTs0ycHUbI5JJHvCCQMRXOyB-fc,8293
7
+ lockss_pybasic-0.3.0.dev11.dist-info/METADATA,sha256=xRujZWtwgxoaOJnKq7rcDQS_7m5_hPHuTYtUr_b6EGk,2495
8
+ lockss_pybasic-0.3.0.dev11.dist-info/WHEEL,sha256=eY7nduwzv-ldUxpzbRlxwvC693Hg6PX8bWDjEHjZ_dk,88
9
+ lockss_pybasic-0.3.0.dev11.dist-info/licenses/LICENSE,sha256=EOxPunNz3XP6AjgbPFolu-d9BS_AF9TtKn1WXgeYPsE,1506
10
+ lockss_pybasic-0.3.0.dev11.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- lockss/pybasic/__init__.py,sha256=PzRiPQxQWcbr8KgvRR7fHa3h96AJFlBHje5AcqsCGQM,1678
2
- lockss/pybasic/auidutil.py,sha256=Q4vjjGfymiXVwPu35RyyLZBnViv8mDJKCjOyJb-sbS8,13921
3
- lockss/pybasic/cliutil.py,sha256=ExFIvNd30iSFmHY6wjkYNBOKA_E9WWlKQnPEV0-J0Ws,8150
4
- lockss/pybasic/errorutil.py,sha256=4EaO0a1yIG1DbWltASeT15bg1bGg5kOYspsW0iJdVLc,1951
5
- lockss/pybasic/fileutil.py,sha256=P_XW_UX6hVvP45vRV8fduclbGmoFflW83a6ZfFE-8Hc,2966
6
- lockss/pybasic/nodeutil.py,sha256=-MSCS79JMAgoja00lTs0ycHUbI5JJHvCCQMRXOyB-fc,8293
7
- lockss_pybasic-0.3.0.dev9.dist-info/METADATA,sha256=hl9G2gCBELw6c_bIWZZQJB45B14HkG-7crYG1SB566c,2495
8
- lockss_pybasic-0.3.0.dev9.dist-info/WHEEL,sha256=eY7nduwzv-ldUxpzbRlxwvC693Hg6PX8bWDjEHjZ_dk,88
9
- lockss_pybasic-0.3.0.dev9.dist-info/licenses/LICENSE,sha256=EOxPunNz3XP6AjgbPFolu-d9BS_AF9TtKn1WXgeYPsE,1506
10
- lockss_pybasic-0.3.0.dev9.dist-info/RECORD,,