From 05c3a2257a109a5f0852c689b03380b2bbfe3a94 Mon Sep 17 00:00:00 2001 From: Albrecht Degering Date: Mon, 20 Jul 2026 20:01:50 +0200 Subject: [PATCH] fix(manifest): normalize runtime module id --- README.md | 2 ++ pyproject.toml | 2 +- src/govoplan_risk_compliance/backend/manifest.py | 8 ++++---- tests/test_manifest.py | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9d6b98a..aed63f0 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ `govoplan-risk-compliance` is the GovOPlaN platform module seed for risk and compliance workflows for data protection incidents, DPIAs, compliance controls, audit measures, risk registers, and internal-control evidence. +Its runtime module ID is `risk_compliance`; the repository and Python distribution retain the hyphenated `govoplan-risk-compliance` name. + This repository is initialized as a discoverable module seed. It exposes a module manifest, initial permissions, role templates, documentation metadata, Gitea workflow templates, and a focused manifest test. It intentionally does not yet add HTTP routes, database models, migrations, or WebUI navigation. ## Initial Ownership diff --git a/pyproject.toml b/pyproject.toml index 99a9d8d..ba3b43e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,4 +22,4 @@ where = ["src"] govoplan_risk_compliance = ["py.typed"] [project.entry-points."govoplan.modules"] -"risk-compliance" = "govoplan_risk_compliance.backend.manifest:get_manifest" +risk_compliance = "govoplan_risk_compliance.backend.manifest:get_manifest" diff --git a/src/govoplan_risk_compliance/backend/manifest.py b/src/govoplan_risk_compliance/backend/manifest.py index 3d3de82..7415ddc 100644 --- a/src/govoplan_risk_compliance/backend/manifest.py +++ b/src/govoplan_risk_compliance/backend/manifest.py @@ -3,12 +3,12 @@ from __future__ import annotations from govoplan_core.core.access import CAPABILITY_AUTH_PERMISSION_EVALUATOR, CAPABILITY_AUTH_PRINCIPAL_RESOLVER from govoplan_core.core.modules import DocumentationLink, DocumentationTopic, ModuleManifest, PermissionDefinition, RoleTemplate -MODULE_ID = "risk-compliance" +MODULE_ID = "risk_compliance" MODULE_NAME = "Risk Compliance" MODULE_VERSION = "0.1.8" -READ_SCOPE = "risk-compliance:workspace:read" -WRITE_SCOPE = "risk-compliance:workspace:write" -ADMIN_SCOPE = "risk-compliance:workspace:admin" +READ_SCOPE = "risk_compliance:workspace:read" +WRITE_SCOPE = "risk_compliance:workspace:write" +ADMIN_SCOPE = "risk_compliance:workspace:admin" OPTIONAL_DEPENDENCIES = ( "audit", "policy", diff --git a/tests/test_manifest.py b/tests/test_manifest.py index 2c6a9fe..b7f02af 100644 --- a/tests/test_manifest.py +++ b/tests/test_manifest.py @@ -9,7 +9,7 @@ class ManifestSeedTests(unittest.TestCase): def test_manifest_registers_seed_contract(self) -> None: manifest = get_manifest() - self.assertEqual(manifest.id, "risk-compliance") + self.assertEqual(manifest.id, "risk_compliance") self.assertEqual(manifest.name, "Risk Compliance") self.assertEqual(manifest.dependencies, ("access",)) self.assertEqual({permission.scope for permission in manifest.permissions}, {READ_SCOPE, WRITE_SCOPE, ADMIN_SCOPE})