firebird-base 2.0.2__tar.gz → 2.0.3__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.
@@ -139,3 +139,6 @@ docs/firebird-base.docset/
139
139
 
140
140
  # Other local files and directories
141
141
  local/
142
+
143
+ # Great Docs build directory (ephemeral, do not commit)
144
+ great-docs/
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: firebird-base
3
- Version: 2.0.2
3
+ Version: 2.0.3
4
4
  Summary: Firebird base modules for Python
5
5
  Project-URL: Home, https://github.com/FirebirdSQL/python3-base
6
6
  Project-URL: Documentation, https://firebird-base.rtfd.io
@@ -57,6 +57,7 @@ Description-Content-Type: text/markdown
57
57
  [![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)
58
58
  [![PyPI - Downloads](https://img.shields.io/pypi/dm/firebird-base)](https://pypi.org/project/firebird-base)
59
59
  [![Libraries.io SourceRank](https://img.shields.io/librariesio/sourcerank/pypi/firebird-base)](https://libraries.io/pypi/firebird-base)
60
+ [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/FirebirdSQL/python3-base)
60
61
 
61
62
  The firebird-base package is a set of Python 3 modules commonly used by [Firebird Project](https://github.com/FirebirdSQL)
62
63
  in various development projects (for example the firebird-driver or Saturnin). However, these
@@ -7,6 +7,7 @@
7
7
  [![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)
8
8
  [![PyPI - Downloads](https://img.shields.io/pypi/dm/firebird-base)](https://pypi.org/project/firebird-base)
9
9
  [![Libraries.io SourceRank](https://img.shields.io/librariesio/sourcerank/pypi/firebird-base)](https://libraries.io/pypi/firebird-base)
10
+ [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/FirebirdSQL/python3-base)
10
11
 
11
12
  The firebird-base package is a set of Python 3 modules commonly used by [Firebird Project](https://github.com/FirebirdSQL)
12
13
  in various development projects (for example the firebird-driver or Saturnin). However, these
@@ -54,6 +54,17 @@ packages = ["src/firebird"]
54
54
  dependencies = [
55
55
  ]
56
56
 
57
+ [tool.hatch.envs.gdocs]
58
+ dependencies = [
59
+ "great-docs",
60
+ ]
61
+
62
+ [tool.hatch.envs.gdocs.scripts]
63
+ init = "great-docs init"
64
+ scan = "great-docs scan"
65
+ build = "great-docs build"
66
+ preview = "great-docs preview"
67
+
57
68
  [tool.hatch.envs.hatch-test]
58
69
  extra-args = ["-vv"]
59
70
  dependencies = [
@@ -62,7 +73,7 @@ dependencies = [
62
73
  ]
63
74
 
64
75
  [[tool.hatch.envs.hatch-test.matrix]]
65
- python = ["3.11", "3.12", "3.13"]
76
+ python = ["3.11", "3.12", "3.13", "3.14"]
66
77
 
67
78
  [tool.hatch.envs.doc]
68
79
  detached = false
@@ -1,4 +1,4 @@
1
1
  # SPDX-FileCopyrightText: 2020-present The Firebird Projects <www.firebirdsql.org>
2
2
  #
3
3
  # SPDX-License-Identifier: MIT
4
- __version__ = "2.0.2"
4
+ __version__ = "2.0.3"
@@ -175,12 +175,6 @@ def _decompose(flag, value):
175
175
  members.pop(0)
176
176
  return members, not_covered
177
177
 
178
- def _power_of_two(value):
179
- "Check if value is a power of two (internal helper for FlagOption)."
180
- if value < 1:
181
- return False
182
- return value == 2 ** (value.bit_length() - 1)
183
-
184
178
  class EnvExtendedInterpolation(ExtendedInterpolation):
185
179
  """.. versionadded:: 1.8.0
186
180
 
@@ -443,7 +443,7 @@ def load_registered(group: str) -> None: # pragma: no cover
443
443
  load_registered('firebird.base.protobuf')
444
444
  # Now messages/enums registered via entry points are available
445
445
  """
446
- for desc in (entry.load() for entry in entry_points().get(group, [])):
446
+ for desc in (entry.load() for entry in entry_points().select(group=group)):
447
447
  register_decriptor(desc)
448
448
 
449
449
  for well_known in [any_pb2, struct_pb2, duration_pb2, empty_pb2, timestamp_pb2, field_mask_pb2]:
File without changes