Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
submodules: recursive

- uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -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:
Expand All @@ -70,4 +70,3 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
repository-url: https://test.pypi.org/legacy/
2 changes: 1 addition & 1 deletion idmefv2/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion idmefv2/schemas/drafts
Loading