apsimo-hostworker 0.2.0__tar.gz → 0.2.1__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.
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/PKG-INFO +4 -4
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/README.md +3 -3
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker/__init__.py +2 -2
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker.egg-info/PKG-INFO +4 -4
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker.egg-info/SOURCES.txt +0 -2
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker.egg-info/top_level.txt +0 -1
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/pyproject.toml +2 -2
- apsimo_hostworker-0.2.0/apsimo_hostworker/compat.py +0 -53
- apsimo_hostworker-0.2.0/colony_hostworker/__init__.py +0 -4
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/LICENSE +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker/_private_io.py +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker/admission.py +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker/catalog.py +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker/client.py +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker/conformance/__init__.py +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker/conformance/__main__.py +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker/conformance/harness.py +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker/conformance/suite.py +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker/contract.py +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker/gate.py +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker/intent.py +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker/sqlite_store.py +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker/store.py +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker/worker.py +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker.egg-info/dependency_links.txt +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker.egg-info/requires.txt +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/setup.cfg +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/tests/test_admission.py +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/tests/test_catalog.py +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/tests/test_client.py +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/tests/test_conformance.py +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/tests/test_contract.py +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/tests/test_gate.py +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/tests/test_intent.py +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/tests/test_sqlite_store.py +0 -0
- {apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/tests/test_worker.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: apsimo-hostworker
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Stateless, stdlib-only core for governed Apsimo host workers
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Requires-Python: >=3.11
|
|
@@ -16,9 +16,9 @@ The stdlib-only action contract, capability catalog, execution ledger and
|
|
|
16
16
|
conformance checks used by Apsimo host adapters. This package has no sidecar or
|
|
17
17
|
web-server dependency.
|
|
18
18
|
|
|
19
|
-
Install `apsimo-hostworker==0.2.
|
|
20
|
-
`apsimo_hostworker`.
|
|
21
|
-
|
|
19
|
+
Install `apsimo-hostworker==0.2.1` in a fresh environment and import
|
|
20
|
+
`apsimo_hostworker`. Only this canonical package is shipped. Existing action
|
|
21
|
+
names and serialized contract identifiers are
|
|
22
22
|
preserved so pending actions and their digests remain valid.
|
|
23
23
|
|
|
24
24
|
Run `python -m apsimo_hostworker.conformance` to check a host implementation.
|
|
@@ -4,9 +4,9 @@ The stdlib-only action contract, capability catalog, execution ledger and
|
|
|
4
4
|
conformance checks used by Apsimo host adapters. This package has no sidecar or
|
|
5
5
|
web-server dependency.
|
|
6
6
|
|
|
7
|
-
Install `apsimo-hostworker==0.2.
|
|
8
|
-
`apsimo_hostworker`.
|
|
9
|
-
|
|
7
|
+
Install `apsimo-hostworker==0.2.1` in a fresh environment and import
|
|
8
|
+
`apsimo_hostworker`. Only this canonical package is shipped. Existing action
|
|
9
|
+
names and serialized contract identifiers are
|
|
10
10
|
preserved so pending actions and their digests remain valid.
|
|
11
11
|
|
|
12
12
|
Run `python -m apsimo_hostworker.conformance` to check a host implementation.
|
|
@@ -79,9 +79,9 @@ try: # single source of truth: the installed distribution metadata
|
|
|
79
79
|
try:
|
|
80
80
|
__version__ = _dist_version("apsimo-hostworker")
|
|
81
81
|
except PackageNotFoundError: # running from a source tree, not installed
|
|
82
|
-
__version__ = "0.2.
|
|
82
|
+
__version__ = "0.2.1"
|
|
83
83
|
except ImportError: # pragma: no cover
|
|
84
|
-
__version__ = "0.2.
|
|
84
|
+
__version__ = "0.2.1"
|
|
85
85
|
|
|
86
86
|
__all__ = (
|
|
87
87
|
"ACTION_TOOL_NAMES",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: apsimo-hostworker
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Stateless, stdlib-only core for governed Apsimo host workers
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Requires-Python: >=3.11
|
|
@@ -16,9 +16,9 @@ The stdlib-only action contract, capability catalog, execution ledger and
|
|
|
16
16
|
conformance checks used by Apsimo host adapters. This package has no sidecar or
|
|
17
17
|
web-server dependency.
|
|
18
18
|
|
|
19
|
-
Install `apsimo-hostworker==0.2.
|
|
20
|
-
`apsimo_hostworker`.
|
|
21
|
-
|
|
19
|
+
Install `apsimo-hostworker==0.2.1` in a fresh environment and import
|
|
20
|
+
`apsimo_hostworker`. Only this canonical package is shipped. Existing action
|
|
21
|
+
names and serialized contract identifiers are
|
|
22
22
|
preserved so pending actions and their digests remain valid.
|
|
23
23
|
|
|
24
24
|
Run `python -m apsimo_hostworker.conformance` to check a host implementation.
|
|
@@ -6,7 +6,6 @@ apsimo_hostworker/_private_io.py
|
|
|
6
6
|
apsimo_hostworker/admission.py
|
|
7
7
|
apsimo_hostworker/catalog.py
|
|
8
8
|
apsimo_hostworker/client.py
|
|
9
|
-
apsimo_hostworker/compat.py
|
|
10
9
|
apsimo_hostworker/contract.py
|
|
11
10
|
apsimo_hostworker/gate.py
|
|
12
11
|
apsimo_hostworker/intent.py
|
|
@@ -22,7 +21,6 @@ apsimo_hostworker/conformance/__init__.py
|
|
|
22
21
|
apsimo_hostworker/conformance/__main__.py
|
|
23
22
|
apsimo_hostworker/conformance/harness.py
|
|
24
23
|
apsimo_hostworker/conformance/suite.py
|
|
25
|
-
colony_hostworker/__init__.py
|
|
26
24
|
tests/test_admission.py
|
|
27
25
|
tests/test_catalog.py
|
|
28
26
|
tests/test_client.py
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "apsimo-hostworker"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.1"
|
|
8
8
|
description = "Stateless, stdlib-only core for governed Apsimo host workers"
|
|
9
9
|
requires-python = ">=3.11"
|
|
10
10
|
readme = "README.md"
|
|
@@ -19,7 +19,7 @@ dev = ["pytest>=8.0"]
|
|
|
19
19
|
|
|
20
20
|
[tool.setuptools.packages.find]
|
|
21
21
|
where = ["."]
|
|
22
|
-
include = ["apsimo_hostworker*"
|
|
22
|
+
include = ["apsimo_hostworker*"]
|
|
23
23
|
|
|
24
24
|
[tool.pytest.ini_options]
|
|
25
25
|
testpaths = ["tests"]
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"""Legacy import names resolve to the canonical module, including its state."""
|
|
2
|
-
from __future__ import annotations
|
|
3
|
-
|
|
4
|
-
import importlib
|
|
5
|
-
import importlib.abc
|
|
6
|
-
import importlib.util
|
|
7
|
-
import sys
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class _AliasLoader(importlib.abc.Loader):
|
|
11
|
-
def __init__(self, canonical, spec):
|
|
12
|
-
self.canonical = canonical
|
|
13
|
-
self.canonical_spec = spec
|
|
14
|
-
|
|
15
|
-
def create_module(self, spec):
|
|
16
|
-
return importlib.import_module(self.canonical)
|
|
17
|
-
|
|
18
|
-
def exec_module(self, module):
|
|
19
|
-
# module_from_spec assigns the alias spec to the returned module.
|
|
20
|
-
# Restore its real identity rather than executing its source again.
|
|
21
|
-
module.__spec__ = self.canonical_spec
|
|
22
|
-
module.__loader__ = self.canonical_spec.loader
|
|
23
|
-
|
|
24
|
-
def get_code(self, fullname):
|
|
25
|
-
# runpy uses get_code for `python -m legacy_package.entrypoint`.
|
|
26
|
-
return self.canonical_spec.loader.get_code(self.canonical)
|
|
27
|
-
|
|
28
|
-
def is_package(self, fullname):
|
|
29
|
-
return self.canonical_spec.submodule_search_locations is not None
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
class _AliasFinder(importlib.abc.MetaPathFinder):
|
|
33
|
-
def __init__(self, legacy, canonical):
|
|
34
|
-
self.legacy, self.canonical = legacy, canonical
|
|
35
|
-
|
|
36
|
-
def find_spec(self, fullname, path=None, target=None):
|
|
37
|
-
if not fullname.startswith(self.legacy + '.'):
|
|
38
|
-
return None
|
|
39
|
-
canonical = self.canonical + fullname[len(self.legacy):]
|
|
40
|
-
spec = importlib.util.find_spec(canonical)
|
|
41
|
-
if spec is None:
|
|
42
|
-
return None
|
|
43
|
-
loader = _AliasLoader(canonical, spec)
|
|
44
|
-
return importlib.util.spec_from_loader(fullname, loader,
|
|
45
|
-
origin=spec.origin, is_package=spec.submodule_search_locations is not None)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
def register_module_alias(legacy: str, canonical: str) -> None:
|
|
49
|
-
"""Install a lazy alias once, without eagerly importing optional subsystems."""
|
|
50
|
-
if not any(getattr(finder, 'legacy', None) == legacy
|
|
51
|
-
and getattr(finder, 'canonical', None) == canonical for finder in sys.meta_path):
|
|
52
|
-
sys.meta_path.insert(0, _AliasFinder(legacy, canonical))
|
|
53
|
-
sys.modules[legacy] = importlib.import_module(canonical)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker/conformance/__init__.py
RENAMED
|
File without changes
|
{apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker/conformance/__main__.py
RENAMED
|
File without changes
|
{apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker/conformance/harness.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{apsimo_hostworker-0.2.0 → apsimo_hostworker-0.2.1}/apsimo_hostworker.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|