AutoCython-zhang 2.3.7__tar.gz → 2.3.8__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 (19) hide show
  1. {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython/_version.py +1 -1
  2. {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython/obfuscate.py +5 -0
  3. {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython_zhang.egg-info/PKG-INFO +3 -1
  4. {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/PKG-INFO +3 -1
  5. {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/README.md +2 -0
  6. {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython/AutoCython.py +0 -0
  7. {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython/__init__.py +0 -0
  8. {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython/compile.py +0 -0
  9. {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython/run_tasks.py +0 -0
  10. {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython/tools.py +0 -0
  11. {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython_zhang.egg-info/SOURCES.txt +0 -0
  12. {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython_zhang.egg-info/dependency_links.txt +0 -0
  13. {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython_zhang.egg-info/entry_points.txt +0 -0
  14. {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython_zhang.egg-info/requires.txt +0 -0
  15. {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython_zhang.egg-info/top_level.txt +0 -0
  16. {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/LICENSE +0 -0
  17. {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/MANIFEST.in +0 -0
  18. {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/pyproject.toml +0 -0
  19. {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/setup.cfg +0 -0
@@ -2,4 +2,4 @@
2
2
  # -*- coding: utf-8 -*-
3
3
  """版本号模块 - 单一版本号来源"""
4
4
 
5
- __version__ = "2.3.7"
5
+ __version__ = "2.3.8"
@@ -223,6 +223,11 @@ def _collect_function_like_free_refs(node, local_names):
223
223
  if name in local_names and name not in nested_locals and name not in global_names:
224
224
  free.add(name)
225
225
 
226
+ # ``nonlocal`` 声明的变量即使只被 Store(如 current_tokens = 0)使用,
227
+ # 也必须视为外层闭包引用。若外层变量被重命名而 nonlocal 声明仍保留原名,
228
+ # Cython 会在编译期报 ``no binding for nonlocal ... found``。
229
+ free.update(nonlocal_names & local_names)
230
+
226
231
  free.update(_collect_nested_free_refs(body, local_names))
227
232
  return free
228
233
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: AutoCython-zhang
3
- Version: 2.3.7
3
+ Version: 2.3.8
4
4
  Summary: 自动Cython,使用Cython批量编译.py文件为.pyd文件!
5
5
  Author-email: zhang_gavin <qq814608@163.com>
6
6
  License-Expression: MIT
@@ -50,6 +50,8 @@ pip install AutoCython-zhang
50
50
 
51
51
  > 当前编译链要求 `Cython>=3,<4`。该约束用于避免旧版 Cython 在编译后破坏 `Pydantic` / `FastAPI` / `dataclass` 等依赖运行时注解的框架行为。
52
52
 
53
+ > v2.3.8 修复了 `nonlocal` 闭包变量在混淆重命名后无法被 Cython 绑定的问题,适用于包含内层 flush/helper 函数的项目构建。
54
+
53
55
  ### 依赖
54
56
 
55
57
  | 包 | 用途 |
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: AutoCython-zhang
3
- Version: 2.3.7
3
+ Version: 2.3.8
4
4
  Summary: 自动Cython,使用Cython批量编译.py文件为.pyd文件!
5
5
  Author-email: zhang_gavin <qq814608@163.com>
6
6
  License-Expression: MIT
@@ -50,6 +50,8 @@ pip install AutoCython-zhang
50
50
 
51
51
  > 当前编译链要求 `Cython>=3,<4`。该约束用于避免旧版 Cython 在编译后破坏 `Pydantic` / `FastAPI` / `dataclass` 等依赖运行时注解的框架行为。
52
52
 
53
+ > v2.3.8 修复了 `nonlocal` 闭包变量在混淆重命名后无法被 Cython 绑定的问题,适用于包含内层 flush/helper 函数的项目构建。
54
+
53
55
  ### 依赖
54
56
 
55
57
  | 包 | 用途 |
@@ -30,6 +30,8 @@ pip install AutoCython-zhang
30
30
 
31
31
  > 当前编译链要求 `Cython>=3,<4`。该约束用于避免旧版 Cython 在编译后破坏 `Pydantic` / `FastAPI` / `dataclass` 等依赖运行时注解的框架行为。
32
32
 
33
+ > v2.3.8 修复了 `nonlocal` 闭包变量在混淆重命名后无法被 Cython 绑定的问题,适用于包含内层 flush/helper 函数的项目构建。
34
+
33
35
  ### 依赖
34
36
 
35
37
  | 包 | 用途 |