lmdb-json 0.2.2__tar.gz → 0.2.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.
Files changed (35) hide show
  1. {lmdb_json-0.2.2/lmdb_json.egg-info → lmdb_json-0.2.3}/PKG-INFO +1 -1
  2. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/__init__.py +1 -1
  3. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_native/binding.py +19 -15
  4. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_native/lmdb10.dll +0 -0
  5. {lmdb_json-0.2.2 → lmdb_json-0.2.3/lmdb_json.egg-info}/PKG-INFO +1 -1
  6. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/pyproject.toml +1 -1
  7. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/LICENSE +0 -0
  8. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/MANIFEST.in +0 -0
  9. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/README.rst +0 -0
  10. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/DB.py +0 -0
  11. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_apimask.py +0 -0
  12. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_crypto.py +0 -0
  13. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_deep.py +0 -0
  14. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_keyvault.py +0 -0
  15. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_native/__init__.py +0 -0
  16. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_native/build.py +0 -0
  17. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_native/lmdb_src/lmdb.h +0 -0
  18. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_native/lmdb_src/mdb.c +0 -0
  19. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_native/lmdb_src/midl.c +0 -0
  20. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/_native/lmdb_src/midl.h +0 -0
  21. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/serve_api.py +0 -0
  22. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/web/assets/index.0eea9d41.css +0 -0
  23. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/web/assets/index.1f1bd6b8.js +0 -0
  24. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/web/assets/jsoneditor-icons.45c98bf0.svg +0 -0
  25. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/web/assets/vendor.74ed0c5c.js +0 -0
  26. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/web/assets/vendor.c8acd9e0.css +0 -0
  27. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/web/index.html +0 -0
  28. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/web.py +0 -0
  29. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json/web_auth.py +0 -0
  30. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json.egg-info/SOURCES.txt +0 -0
  31. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json.egg-info/dependency_links.txt +0 -0
  32. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json.egg-info/requires.txt +0 -0
  33. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/lmdb_json.egg-info/top_level.txt +0 -0
  34. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/setup.cfg +0 -0
  35. {lmdb_json-0.2.2 → lmdb_json-0.2.3}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: lmdb-json
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: lmdb 自定义封装
5
5
  Author-email: CC <3204604858@qq.com>
6
6
  License: The OpenLDAP Public License
@@ -15,7 +15,7 @@
15
15
  * ``web_auth`` —— 认证模块
16
16
  """
17
17
 
18
- __version__ = "0.2.2"
18
+ __version__ = "0.2.3"
19
19
 
20
20
  from .DB import LmJsonDB, Structure
21
21
  from .DB import LmJsonDB as DB # 简写别名
@@ -196,21 +196,25 @@ def _load_library() -> ctypes.CDLL:
196
196
  except OSError as exc:
197
197
  errors.append(f"{path}: {exc}")
198
198
  # 所有候选都失败:尝试用包内 C 源码现场编译(跨平台发布场景)。
199
- # 编译成功后再试一次候选路径;失败才抛出带完整诊断的错误。
200
- try:
201
- from . import build as _build
202
- built = _build.build()
203
- if built:
204
- for path in _candidate_paths():
205
- try:
206
- lib = ctypes.CDLL(path)
207
- _configure_signatures(lib)
208
- _LIB = lib
209
- return lib
210
- except OSError:
211
- continue
212
- except Exception as exc: # noqa: BLE001 - 编译失败时给出原始错误
213
- errors.append(f"auto-build: {exc}")
199
+ # LMDB_JSON_SKIP_AUTO_BUILD=1 可禁用(测试隔离环境用)。
200
+ # build() 找不到编译器时抛 SystemExit,需一并捕获并转成 MDBError。
201
+ if os.environ.get("LMDB_JSON_SKIP_AUTO_BUILD") != "1":
202
+ try:
203
+ from . import build as _build
204
+ built = _build.build()
205
+ if built:
206
+ for path in _candidate_paths():
207
+ try:
208
+ lib = ctypes.CDLL(path)
209
+ _configure_signatures(lib)
210
+ _LIB = lib
211
+ return lib
212
+ except OSError:
213
+ continue
214
+ except BaseException as exc: # noqa: BLE001 - 含 build() 的 SystemExit
215
+ if isinstance(exc, (KeyboardInterrupt, SystemExit)) and not isinstance(exc, SystemExit):
216
+ raise
217
+ errors.append(f"auto-build: {type(exc).__name__}: {exc}")
214
218
  raise MDBError(
215
219
  "无法加载 LMDB 原生库,且自动编译失败。请确认系统有 C 编译器,"
216
220
  "或设置 LMDB_JSON_NATIVE_LIB 指向已编译的 .dll/.so。\n"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: lmdb-json
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: lmdb 自定义封装
5
5
  Author-email: CC <3204604858@qq.com>
6
6
  License: The OpenLDAP Public License
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
7
 
8
8
  [project]
9
9
  name = "lmdb-json"
10
- version = "0.2.2"
10
+ version = "0.2.3"
11
11
  description = "lmdb 自定义封装"
12
12
  readme = "README.rst"
13
13
  requires-python = ">=3.10"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes