funcd-bundle 0.3.4__tar.gz → 0.3.5__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.
- {funcd_bundle-0.3.4 → funcd_bundle-0.3.5}/PKG-INFO +1 -1
- {funcd_bundle-0.3.4 → funcd_bundle-0.3.5}/pyproject.toml +1 -1
- {funcd_bundle-0.3.4 → funcd_bundle-0.3.5}/tests/test_bundle.py +13 -0
- {funcd_bundle-0.3.4 → funcd_bundle-0.3.5}/.gitignore +0 -0
- {funcd_bundle-0.3.4 → funcd_bundle-0.3.5}/README.md +0 -0
- {funcd_bundle-0.3.4 → funcd_bundle-0.3.5}/src/funcd_bundle/__init__.py +0 -0
- {funcd_bundle-0.3.4 → funcd_bundle-0.3.5}/src/funcd_bundle/bundle.py +0 -0
- {funcd_bundle-0.3.4 → funcd_bundle-0.3.5}/src/funcd_bundle/cli.py +0 -0
- {funcd_bundle-0.3.4 → funcd_bundle-0.3.5}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: funcd-bundle
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.5
|
|
4
4
|
Summary: Bundle a Python funcd function and its locked dependencies for the funcd runtime
|
|
5
5
|
Project-URL: Homepage, https://github.com/pyvvo/funcd-python
|
|
6
6
|
Project-URL: Repository, https://github.com/pyvvo/funcd-python
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "funcd-bundle"
|
|
3
3
|
# Not bumped per release: the vX.Y.Z git tag is the version, stamped into the build at publish time.
|
|
4
|
-
version = "0.3.
|
|
4
|
+
version = "0.3.5"
|
|
5
5
|
description = "Bundle a Python funcd function and its locked dependencies for the funcd runtime"
|
|
6
6
|
authors = [{ name = "The funcd Authors" }]
|
|
7
7
|
readme = "README.md"
|
|
@@ -25,6 +25,7 @@ from funcd_bundle.cli import main
|
|
|
25
25
|
FOREIGN = {"linux/arm64": "linux/amd64", "linux/amd64": "linux/arm64"}
|
|
26
26
|
ELF_MACHINE = {"linux/amd64": 0x3E, "linux/arm64": 0xB7}
|
|
27
27
|
MANIFEST = "runtime: python314\nhandler: handle\nmain: src/handler.py\n"
|
|
28
|
+
EXAMPLES = Path(__file__).resolve().parents[2] / "examples"
|
|
28
29
|
|
|
29
30
|
|
|
30
31
|
def _online() -> bool:
|
|
@@ -256,6 +257,18 @@ def test_default_handler_follows_funcdctl(tmp_path: Path) -> None:
|
|
|
256
257
|
)
|
|
257
258
|
|
|
258
259
|
|
|
260
|
+
def test_issue_r54_every_example_manifest_names_a_handler_it_ships() -> None:
|
|
261
|
+
examples = sorted({m.parent for m in EXAMPLES.glob("*/*funcdctl.yaml")})
|
|
262
|
+
assert examples, f"no example manifests under {EXAMPLES}"
|
|
263
|
+
missing = []
|
|
264
|
+
for example in examples:
|
|
265
|
+
try:
|
|
266
|
+
discover(example)
|
|
267
|
+
except BundleError as err:
|
|
268
|
+
missing.append(str(err))
|
|
269
|
+
assert not missing, f"funcdctl dev and funcd-bundle cannot find these handlers: {missing}"
|
|
270
|
+
|
|
271
|
+
|
|
259
272
|
def test_issue_154_stem_manifest_without_main_names_bundled_handler(tmp_path: Path) -> None:
|
|
260
273
|
manifest = "runtime: python314\nhandler: handle\n"
|
|
261
274
|
project = tmp_path / "project"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|