hexastack-flags 0.2.0__tar.gz → 0.3.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hexastack-flags
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: CNCF OpenFeature provider adapters and enterprise feature flagging for Hexastack
5
5
  Author: Richard West
6
6
  Author-email: Richard West <dopplereffect.us@gmail.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "hexastack-flags"
3
- version = "0.2.0"
3
+ version = "0.3.0"
4
4
  description = "CNCF OpenFeature provider adapters and enterprise feature flagging for Hexastack"
5
5
  readme = "README.md"
6
6
  license = "Apache-2.0"
@@ -36,37 +36,8 @@ name = "Hexagonal architecture layer hierarchy"
36
36
  type = "layers"
37
37
  containers = ["hexastack_flags"]
38
38
  layers = [
39
- "adapters",
40
- "ports",
41
- "domain",
42
- ]
43
-
44
- [[tool.importlinter.contracts]]
45
- name = "Forbidden imports for domain"
46
- type = "forbidden"
47
- source_modules = ["hexastack_flags.domain"]
48
- forbidden_modules = [
49
- "hexastack_flags.ports",
50
- "hexastack_flags.adapters",
51
- "hexastack_flags.infra",
52
- ]
53
-
54
- [[tool.importlinter.contracts]]
55
- name = "Forbidden imports for ports"
56
- type = "forbidden"
57
- source_modules = ["hexastack_flags.ports"]
58
- forbidden_modules = [
59
- "hexastack_flags.adapters",
60
- "hexastack_flags.infra",
61
- ]
62
-
63
- [[tool.importlinter.contracts]]
64
- name = "Hexagonal architecture layer hierarchy"
65
- type = "layers"
66
- containers = ["hexastack_flags"]
67
- layers = [
68
- "adapters",
69
39
  "infra",
40
+ "adapters",
70
41
  "ports",
71
42
  "domain",
72
43
  ]
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "hexastack-flags"
3
- version = "0.2.0"
3
+ version = "0.3.0"
4
4
  description = "CNCF OpenFeature provider adapters and enterprise feature flagging for Hexastack"
5
5
  readme = "README.md"
6
6
  license = "Apache-2.0"
@@ -29,36 +29,6 @@ build-backend = "uv_build"
29
29
  [tool.uv.sources]
30
30
  hexastack-core = { workspace = true }
31
31
 
32
-
33
- [[tool.importlinter.contracts]]
34
- name = "Hexagonal architecture layer hierarchy"
35
- type = "layers"
36
- containers = ["hexastack_flags"]
37
- layers = [
38
- "adapters",
39
- "ports",
40
- "domain",
41
- ]
42
-
43
- [[tool.importlinter.contracts]]
44
- name = "Forbidden imports for domain"
45
- type = "forbidden"
46
- source_modules = ["hexastack_flags.domain"]
47
- forbidden_modules = [
48
- "hexastack_flags.ports",
49
- "hexastack_flags.adapters",
50
- "hexastack_flags.infra",
51
- ]
52
-
53
- [[tool.importlinter.contracts]]
54
- name = "Forbidden imports for ports"
55
- type = "forbidden"
56
- source_modules = ["hexastack_flags.ports"]
57
- forbidden_modules = [
58
- "hexastack_flags.adapters",
59
- "hexastack_flags.infra",
60
- ]
61
-
62
32
  [tool.importlinter]
63
33
  root_packages = ["hexastack_flags"]
64
34
 
@@ -67,8 +37,8 @@ name = "Hexagonal architecture layer hierarchy"
67
37
  type = "layers"
68
38
  containers = ["hexastack_flags"]
69
39
  layers = [
70
- "adapters",
71
40
  "infra",
41
+ "adapters",
72
42
  "ports",
73
43
  "domain",
74
44
  ]
@@ -1,24 +1,10 @@
1
- """Configuration schemas for hexastack-flags.
2
-
3
- Notes/Architectural Intent:
4
- Defines Pydantic configuration schemas loaded from [hexastack.flags].
5
- """
6
-
7
1
  from typing import Any
8
2
 
9
3
  from pydantic import BaseModel, Field
10
4
 
11
- from hexastack_core.infra.decorators import config_section
12
- from hexastack_core.infra.registries.config import ConfigRegistry
13
5
  from hexastack_flags.domain.models import FeatureFlagProviderType
14
6
 
15
- __all__ = [
16
- "HexastackFlagsConfig",
17
- "register_flags_config",
18
- ]
19
7
 
20
-
21
- @config_section("flags")
22
8
  class HexastackFlagsConfig(BaseModel):
23
9
  """Configuration options under [hexastack.flags]."""
24
10
 
@@ -44,6 +30,6 @@ class HexastackFlagsConfig(BaseModel):
44
30
  )
45
31
 
46
32
 
47
- def register_flags_config(registry: ConfigRegistry) -> None:
48
- """Register the flags configuration schema with the ConfigRegistry."""
49
- registry.register_config_section("flags", HexastackFlagsConfig)
33
+ __all__ = [
34
+ "HexastackFlagsConfig",
35
+ ]
@@ -0,0 +1,15 @@
1
+ from hexastack_core.infra.decorators import config_section
2
+ from hexastack_core.infra.registries.config import ConfigRegistry
3
+ from hexastack_flags.domain.config import HexastackFlagsConfig
4
+
5
+ config_section("flags")(HexastackFlagsConfig)
6
+
7
+ __all__ = [
8
+ "HexastackFlagsConfig",
9
+ "register_flags_config",
10
+ ]
11
+
12
+
13
+ def register_flags_config(registry: ConfigRegistry) -> None:
14
+ """Register the flags configuration schema with the ConfigRegistry."""
15
+ registry.register_config_section("flags", HexastackFlagsConfig)