mloda-community-example-a 0.2.4__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,13 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mloda-community-example-a
|
|
3
|
+
Version: 0.2.4
|
|
4
|
+
Summary: Example A FeatureGroup extending community example base
|
|
5
|
+
Author-email: Tom Kaltofen <info@mloda.ai>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://mloda.ai
|
|
8
|
+
Project-URL: Repository, https://github.com/mloda-ai/mloda-registry
|
|
9
|
+
Requires-Python: >=3.10
|
|
10
|
+
Requires-Dist: mloda-community-example>=0.2.0
|
|
11
|
+
Provides-Extra: dev
|
|
12
|
+
Requires-Dist: mloda-testing; extra == "dev"
|
|
13
|
+
Requires-Dist: pytest; extra == "dev"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# AUTO-GENERATED by scripts/generate_pyproject.py
|
|
2
|
+
# Do not edit directly - modify config/shared.toml or config/packages.toml instead
|
|
3
|
+
|
|
4
|
+
[build-system]
|
|
5
|
+
requires = ["setuptools>=61.0"]
|
|
6
|
+
build-backend = "setuptools.build_meta"
|
|
7
|
+
|
|
8
|
+
[project]
|
|
9
|
+
name = "mloda-community-example-a"
|
|
10
|
+
version = "0.2.4"
|
|
11
|
+
description = "Example A FeatureGroup extending community example base"
|
|
12
|
+
license = "Apache-2.0"
|
|
13
|
+
authors = [{ name = "Tom Kaltofen", email = "info@mloda.ai" }]
|
|
14
|
+
dependencies = ["mloda-community-example>=0.2.0"]
|
|
15
|
+
requires-python = ">=3.10"
|
|
16
|
+
|
|
17
|
+
[project.optional-dependencies]
|
|
18
|
+
dev = ["mloda-testing", "pytest"]
|
|
19
|
+
|
|
20
|
+
[project.urls]
|
|
21
|
+
Homepage = "https://mloda.ai"
|
|
22
|
+
Repository = "https://github.com/mloda-ai/mloda-registry"
|
|
23
|
+
|
|
24
|
+
[tool.setuptools.packages.find]
|
|
25
|
+
where = ["../../../../.."]
|
|
26
|
+
include = ["mloda.community.feature_groups.example.example_a", "mloda.community.feature_groups.example.example_a.*"]
|
|
27
|
+
namespaces = true
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""Tests for ExampleAFeatureGroup."""
|
|
2
|
+
|
|
3
|
+
from mloda.community.feature_groups.example.example_a import ExampleAFeatureGroup
|
|
4
|
+
from mloda.community.feature_groups.example.community_example_feature_group import CommunityExampleFeatureGroup
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def test_example_a_extends_base() -> None:
|
|
8
|
+
"""ExampleAFeatureGroup should extend CommunityExampleFeatureGroup."""
|
|
9
|
+
assert issubclass(ExampleAFeatureGroup, CommunityExampleFeatureGroup)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def test_example_a_calculate_feature() -> None:
|
|
13
|
+
"""calculate_feature should return example A specific data."""
|
|
14
|
+
result = ExampleAFeatureGroup.calculate_feature(None, None)
|
|
15
|
+
assert result == {"example_a": "data", "source": "community_example_base"}
|