a3s-code 3.2.1__tar.gz → 3.4.0__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.
- {a3s_code-3.2.1 → a3s_code-3.4.0}/PKG-INFO +1 -1
- {a3s_code-3.2.1 → a3s_code-3.4.0}/pyproject.toml +1 -1
- {a3s_code-3.2.1 → a3s_code-3.4.0}/src/a3s_code/_bootstrap.py +1 -1
- {a3s_code-3.2.1 → a3s_code-3.4.0}/src/a3s_code.egg-info/PKG-INFO +1 -1
- {a3s_code-3.2.1 → a3s_code-3.4.0}/tests/test_bootstrap.py +5 -1
- {a3s_code-3.2.1 → a3s_code-3.4.0}/README.md +0 -0
- {a3s_code-3.2.1 → a3s_code-3.4.0}/setup.cfg +0 -0
- {a3s_code-3.2.1 → a3s_code-3.4.0}/src/a3s_code/__init__.py +0 -0
- {a3s_code-3.2.1 → a3s_code-3.4.0}/src/a3s_code/py.typed +0 -0
- {a3s_code-3.2.1 → a3s_code-3.4.0}/src/a3s_code.egg-info/SOURCES.txt +0 -0
- {a3s_code-3.2.1 → a3s_code-3.4.0}/src/a3s_code.egg-info/dependency_links.txt +0 -0
- {a3s_code-3.2.1 → a3s_code-3.4.0}/src/a3s_code.egg-info/top_level.txt +0 -0
|
@@ -7,7 +7,7 @@ name = "a3s-code"
|
|
|
7
7
|
# Keep in sync with crates/code core release. The bootstrap loader fetches
|
|
8
8
|
# the matching native wheel from `https://github.com/AI45Lab/Code/releases/tag/v<version>`
|
|
9
9
|
# at import time.
|
|
10
|
-
version = "3.
|
|
10
|
+
version = "3.4.0"
|
|
11
11
|
description = "A3S Code Python SDK — pure-Python bootstrap that fetches the native wheel from GitHub Releases"
|
|
12
12
|
readme = "README.md"
|
|
13
13
|
license = {text = "MIT"}
|
|
@@ -31,7 +31,7 @@ from typing import Optional
|
|
|
31
31
|
|
|
32
32
|
# Version is the bootstrap's own version, which equals the matching native
|
|
33
33
|
# wheel version on GH Releases. Bumped by the release workflow.
|
|
34
|
-
__version__ = "3.
|
|
34
|
+
__version__ = "3.4.0"
|
|
35
35
|
|
|
36
36
|
_DEFAULT_BASE_URL = "https://github.com/AI45Lab/Code/releases/download"
|
|
37
37
|
_REQUEST_TIMEOUT_S = 120
|
|
@@ -186,7 +186,11 @@ class EnsureNativeLoadedTests(unittest.TestCase):
|
|
|
186
186
|
):
|
|
187
187
|
cache = _bootstrap.ensure_native_loaded("3.2.1")
|
|
188
188
|
|
|
189
|
-
|
|
189
|
+
# `_cache_root()` keys the cache dir on the module's own __version__,
|
|
190
|
+
# not the version arg passed to `ensure_native_loaded`. Reference it
|
|
191
|
+
# directly so this assertion can't go stale on a version bump (the
|
|
192
|
+
# sibling CacheDirTests follow the same pattern).
|
|
193
|
+
self.assertEqual(cache, Path(self._tmp) / _bootstrap.__version__)
|
|
190
194
|
# Native file extracted at cache root, not under a subdirectory.
|
|
191
195
|
extracted = list(cache.glob("_native.*"))
|
|
192
196
|
self.assertEqual(len(extracted), 1)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|