agenium-sdk 0.0.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.
@@ -0,0 +1,5 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ .venv/
4
+ dist/
5
+ .pytest_cache/
@@ -0,0 +1,27 @@
1
+ Metadata-Version: 2.5
2
+ Name: agenium-sdk
3
+ Version: 0.0.1
4
+ Summary: The Agenium runtime library: the versioned contract between Agenium apps and the manager. Early stage.
5
+ Project-URL: Homepage, https://github.com/agenium-dev/agenium
6
+ Project-URL: Source, https://github.com/agenium-dev/agenium/tree/main/packages/agenium-sdk
7
+ Author: agenium-dev
8
+ Classifier: Development Status :: 1 - Planning
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: 3 :: Only
11
+ Requires-Python: >=3.11
12
+ Description-Content-Type: text/markdown
13
+
14
+ # agenium-sdk
15
+
16
+ The runtime library an Agenium app is built on. It will carry the versioned contract between apps and the Agenium manager: a core that every app implements and named features an app may add.
17
+
18
+ This package is at a very early stage. The contract is not defined yet, so this release carries only the package version and the contract version, which is `0` until the first contract is published.
19
+
20
+ ```python
21
+ import agenium_sdk
22
+
23
+ agenium_sdk.__version__ # "0.0.1"
24
+ agenium_sdk.CONTRACT_VERSION # 0 - no contract defined yet
25
+ ```
26
+
27
+ Part of [Agenium](https://github.com/agenium-dev/agenium).
@@ -0,0 +1,14 @@
1
+ # agenium-sdk
2
+
3
+ The runtime library an Agenium app is built on. It will carry the versioned contract between apps and the Agenium manager: a core that every app implements and named features an app may add.
4
+
5
+ This package is at a very early stage. The contract is not defined yet, so this release carries only the package version and the contract version, which is `0` until the first contract is published.
6
+
7
+ ```python
8
+ import agenium_sdk
9
+
10
+ agenium_sdk.__version__ # "0.0.1"
11
+ agenium_sdk.CONTRACT_VERSION # 0 - no contract defined yet
12
+ ```
13
+
14
+ Part of [Agenium](https://github.com/agenium-dev/agenium).
@@ -0,0 +1,30 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "agenium-sdk"
7
+ dynamic = ["version"]
8
+ description = "The Agenium runtime library: the versioned contract between Agenium apps and the manager. Early stage."
9
+ readme = "README.md"
10
+ requires-python = ">=3.11"
11
+ authors = [{ name = "agenium-dev" }]
12
+ classifiers = [
13
+ "Development Status :: 1 - Planning",
14
+ "Programming Language :: Python :: 3",
15
+ "Programming Language :: Python :: 3 :: Only",
16
+ ]
17
+ dependencies = []
18
+
19
+ [project.urls]
20
+ Homepage = "https://github.com/agenium-dev/agenium"
21
+ Source = "https://github.com/agenium-dev/agenium/tree/main/packages/agenium-sdk"
22
+
23
+ [tool.hatch.version]
24
+ path = "src/agenium_sdk/__init__.py"
25
+
26
+ [tool.hatch.build.targets.wheel]
27
+ packages = ["src/agenium_sdk"]
28
+
29
+ [dependency-groups]
30
+ dev = ["pytest>=8"]
@@ -0,0 +1,9 @@
1
+ """Agenium SDK: the runtime library an Agenium app is built on."""
2
+
3
+ __version__ = "0.0.1"
4
+
5
+ # The version of the contract between apps and the manager that this SDK carries.
6
+ # 0 means no contract is defined yet; the first published contract is version 1.
7
+ CONTRACT_VERSION = 0
8
+
9
+ __all__ = ["CONTRACT_VERSION", "__version__"]
File without changes
@@ -0,0 +1,11 @@
1
+ from importlib.metadata import version
2
+
3
+ import agenium_sdk
4
+
5
+
6
+ def test_version_matches_distribution():
7
+ assert agenium_sdk.__version__ == version("agenium-sdk")
8
+
9
+
10
+ def test_contract_version_is_undefined_before_first_contract():
11
+ assert agenium_sdk.CONTRACT_VERSION == 0