From 24cb61ed82a8198285357f3c1ce7c62ab4023a2b Mon Sep 17 00:00:00 2001 From: btry Date: Wed, 20 May 2026 09:17:41 +0200 Subject: [PATCH 1/2] update schemas --- idmefv2/message.py | 2 +- idmefv2/schemas/drafts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/idmefv2/message.py b/idmefv2/message.py index c2edac5..89fe860 100644 --- a/idmefv2/message.py +++ b/idmefv2/message.py @@ -81,7 +81,7 @@ def __get_schema_resource(self): version_package = self._SCHEMA_BASE_PACKAGE + '.' + version if importlib.resources.files(version_package).joinpath(self._SCHEMA_RESOURCE).is_file(): return importlib.resources.files(version_package).joinpath(self._SCHEMA_RESOURCE) - latest_package = self._SCHEMA_BASE_PACKAGE + '.latest' + latest_package = self._SCHEMA_BASE_PACKAGE + '.latest-stable' return importlib.resources.files(latest_package).joinpath(self._SCHEMA_RESOURCE) def validate(self) -> None: diff --git a/idmefv2/schemas/drafts b/idmefv2/schemas/drafts index 5d27ba4..aa3ea2d 160000 --- a/idmefv2/schemas/drafts +++ b/idmefv2/schemas/drafts @@ -1 +1 @@ -Subproject commit 5d27ba4c083d529f524c3ca0c73673c66a8946c0 +Subproject commit aa3ea2d60cc525dfa433c7b1ba1be6aaabcf1114 From 9e276461b54ffd9483a0dafa7c07350ade227cc3 Mon Sep 17 00:00:00 2001 From: btry Date: Wed, 20 May 2026 14:33:24 +0200 Subject: [PATCH 2/2] prepare publishing --- .github/workflows/python-publish.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index c45ab61..f3c4d84 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -22,7 +22,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - submodules: recursive + submodules: recursive - uses: actions/setup-python@v5 with: @@ -51,9 +51,9 @@ jobs: # Dedicated environments with protections for publishing are strongly recommended. # For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules environment: - name: testpypi + name: pypi # OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status: - url: https://test.pypi.org/p/idmefv2 + url: https://pypi.org/p/idmefv2 # # ALTERNATIVE: if your GitHub Release name is the PyPI project version string # ALTERNATIVE: exactly, uncomment the following line instead: @@ -70,4 +70,3 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: packages-dir: dist/ - repository-url: https://test.pypi.org/legacy/