You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Maintenance-Update
Added
Tests:
Added tests/test_utils_dict.py, adding tests for function shrink_dict() in ospx/utils/dict.py
Updated tests/test_working_directory/test_fmu_modelDescription.xml: Added 12 units
Changed
GitHub Workflows:
Added 'name: Checkout code' to uses of 'actions/checkout', for better readability and consistency across workflow files.
Added 'name: Download build artifacts' to uses of 'actions/download-artifact', for better readability and consistency across workflow files.
Added 'name: Publish to PyPI' to uses of 'pypa/gh-action-pypi-publish', for better readability and consistency across workflow files.
Added 'name: Upload build artifacts' to uses of 'actions/upload-artifact', for better readability and consistency across workflow files.
Changed 'uv sync --upgrade' to 'uv sync -U'
Ensured that actions 'upload-artifact' and 'download-artifact' uniformly specify 'dist' as (file)name for the artifact uploaded (or downloaded, respectively), for consistency across workflow files.
pull_request_to_main.yml and nightly_build.yml: Added 'workflow_dispatch:' in selected workflows to allow manual trigger of the workflow.
Removed redundant 'Set up Python' steps (no longer needed, as 'uv sync' will automatically install Python if not present).
Replaced 'Build source distribution and wheel' with 'Build source distribution and wheels' (plural) in workflow step names.
Replaced 'Run twine check' with 'Check build artifacts' in workflow step names, to better reflect the purpose of the step.
Updated the syntax used for the OS and Python matrix in test workflows.
pyproject.toml:
pyproject.toml: Removed leading carets and trailing slashes from 'exclude' paths
pyproject.toml: Removed trailing slashes from 'exclude' paths
Removed upper version constraint from required Python version, i.e. changed the "requires-python" field from ">= 3.11, < 3.15" to ">= 3.11".
Detailed background and reasoning in this good yet long post by Henry Schreiner: https://iscinumpy.dev/post/bound-version-constraints/#pinning-the-python-version-is-special
TLDR: Placing an upper Python version constraint on a Python package causes more harm than it provides benefits.
The upper version constraint unnecessarily manifests incompatibility with future Python releases.
Removing the upper version constraint ensures the package remains installable as Python evolves.
In the majority of cases, the newer Python version will anyhow be backward-compatible. And in the rare case where your package would really not work with a newer Python version,
users can at least find a solution manually to resolve the conflict, e.g. by pinning your package to the last version compatible with the environment they install it in.
That way, we ensure it remains possible for users to find a solution, instead of rendering it impossible forever.
Added default directories to the 'exclude' list for pyright, in section [tool.pyright]
(Ref note in pyright docs).
Sphinx Documentation:
Sphinx conf.py: Updated year in copyright statement to 2026
VS Code Settings (Recommended extensions):
Removed 'njqdev.vscode-python-typehint' (Python Type Hint). Not maintained since 1 year, and the functionality is now covered by GitHub Copilot.