diff --git a/.github/workflows/python_analysis.yml b/.github/workflows/python_analysis.yml index b6fc12b..eea06b1 100644 --- a/.github/workflows/python_analysis.yml +++ b/.github/workflows/python_analysis.yml @@ -26,7 +26,7 @@ concurrency: jobs: call-workflow-static-analysis: name: Static analysis - uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-static_analysis.yml@9d0728c5214f5e416e580139fe0e7f1cea1237aa # GA-9681-pixi-workflow + uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-static_analysis.yml@4a000ba323d8818b874c907dd7cfb3b29960cba4 # v4.1.0 permissions: contents: read pull-requests: read @@ -35,9 +35,12 @@ jobs: app-name: 'grid_apps' python-version: '3.12' pixi-version: 'v0.84.2' + secrets: + JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }} + JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }} call-workflow-pytest: name: Pytest - uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-pytest.yml@9d0728c5214f5e416e580139fe0e7f1cea1237aa # GA-9681-pixi-workflow + uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-pytest.yml@4a000ba323d8818b874c907dd7cfb3b29960cba4 # v4.1.0 permissions: contents: read pull-requests: read @@ -51,4 +54,6 @@ jobs: codecov-reference-python-version: '3.12' codecov-reference-os: '["windows-latest"]' secrets: + JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }} + JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }} CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e249f1b..d91aaf1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -73,7 +73,7 @@ repos: rev: v2.4.3 hooks: - id: codespell - exclude: (\.lock|-lock\.ya?ml|\benvironments/.*\.ya?ml|\.ipynb|^THIRD_PARTY_SOFTWARE\.rst)$ + exclude: (\.lock|\.ipynb|^THIRD_PARTY_SOFTWARE\.rst)$ entry: codespell -I .codespellignore - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 diff --git a/README-dev.rst b/README-dev.rst index 4f7a4c9..786c2ca 100644 --- a/README-dev.rst +++ b/README-dev.rst @@ -1,4 +1,3 @@ - Setup for development ===================== @@ -6,245 +5,117 @@ Setup for development :local: :depth: 2 -After you have cloned the Git repository, you will need to: - -#. install the Pixi environments for the project -#. execute the tests -#. setup Git LFS if needed -#. configure the prek hooks for static code analysis and auto-formatting -#. configure the Python IDE (PyCharm) - - -.. _Pixi: https://pixi.sh/ -.. _prek: https://prek.j178.dev/ - - -Install the Pixi environment -^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -Install `Pixi`_ version 0.84.2 or newer and external `uv `_. -Keep both commands on ``PATH``; uv is not installed by Pixi. From the project root, -install the default development environment with:: - - pixi install - -The default environment includes the test and lint tools. Run the tests with:: - - pixi run test - -The project also provides ``py312``, ``py313`` and ``py314`` test environments, -plus ``runtime`` environments for application use. -On Windows, run ``install_in_analyst.bat`` to install the locked runtime in Geoscience -Analyst; pass ``-e`` for an editable installation. +Prerequisites +^^^^^^^^^^^^^ +* **Pixi and uv:** Install `Pixi `_ 0.84.2 and external + `uv `_. Keep both commands on ``PATH``; uv is not + installed by Pixi. +* **Git LFS:** This repository uses Git LFS. Follow GitHub's `installation + instructions + `_. +* **prek:** Install `prek `_ for the configured Git + hooks. +* **IDE interpreter:** Configure your IDE to use the interpreter inside + ``.pixi/envs/default`` and exclude ``.pixi`` from source indexing. + For **PyCharm**, follow Pixi's `JetBrains integration guide + `_. +* **JFrog authentication:** Pixi uses uv's PyPI authentication, which is + separate from ``pixi auth login``. Configure a protected ``.netrc`` file + (``%HOME%\_netrc`` on Windows) with your Artifactory machine, login, and + password or access token, as described in `Pixi's authentication guide + `_. + Never add credentials to ``pixi.toml`` or ``pixi.lock``. + +.. note:: External contributors using Pixi + + If you do not have Mira Artifactory credentials, comment out ``index-url`` + under ``[feature.mira-pypi.pypi-options]`` in ``pixi.toml``, then run + ``pixi lock``. Packages configured with version references will resolve from + public PyPI if the required versions are available there; packages configured + with Git references will resolve from Git. + Keep these local ``pixi.toml`` and ``pixi.lock`` changes uncommitted. + +Install and test +^^^^^^^^^^^^^^^^ + +The shared lock covers Windows and Linux with multiple Python versions:: + + pixi install --locked -e py312 + pixi run --frozen -e py312 install + pixi run --frozen -e py312 test + +The ``install`` task installs this checkout in editable mode without changing +locked dependencies, then checks package compatibility. + +The ``runtime`` environment omits test and lint tools. + +On Windows, install the locked runtime into Geoscience Analyst with:: + + install_in_analyst.bat + install_in_analyst.bat -e --name mirageo-dev + +Possibly, replace ``mirageo-dev`` with a dedicated environment name of your choice. + +The script exports the locked ``win-64`` runtime, installs its dependencies +through Analyst, and installs this checkout without resolving dependencies +again. Pass ``-e`` first for editable mode; optional ``--conda`` and ``--name`` +arguments are forwarded to Analyst. A valid ``pixi.lock`` is required. When the +lock points to JFrog, Analyst's pip installation also needs access, for example +through the same ``.netrc`` credentials. Building documentation ^^^^^^^^^^^^^^^^^^^^^^ -Install `uv `_ alongside Pixi and keep both commands -available on ``PATH``. Read the Docs installs uv 0.13.8 separately. - -The separate ``docs`` environment uses Python 3.14. Build the HTML documentation with:: +The separate ``docs`` environment uses Python 3.14 and Sphinx. Read the Docs +installs uv separately. Fetch the Git LFS documentation images, then +build HTML with:: + git lfs pull pixi run --frozen --environment docs build-docs -The output is written to ``docs/_build/html``. Read the Docs uses the same task and -also creates the downloadable ``grid-apps-docs.zip`` archive. - +The task installs the local package without dependencies, uses the checked-in +configuration ``docs/source/conf.py``, and builds the documentation from +``docs/source`` into ``docs/_build/html``. Read the Docs uses the same task. Updating dependencies ^^^^^^^^^^^^^^^^^^^^^ -Runtime dependency constraints are maintained in ``pyproject.toml`` and ``pixi.toml``. -After changing either file, refresh the resolved environment with:: - - pixi update +Keep published package requirements in ``pyproject.toml`` and their Conda/PyPI +environment equivalents in ``pixi.toml`` aligned. Update the recipe's matching +runtime requirements when a dependency constraint changes. +After editing requirements, run ``pixi update`` to update dependencies, or +``pixi lock`` to resolve the manifest and refresh the lock file without +installing the environments. -Adding a dependency -------------------- -Add runtime requirements to both the PEP 621 dependency list in ``pyproject.toml`` -and the matching Pixi package requirements in ``pixi.toml``. Put development-only -tools in the appropriate Pixi feature. Run ``pixi update`` after changing them. +Commit ``pixi.lock`` with the manifest changes. In ``pixi.toml``, the +``mira-pypi`` feature lists Mira packages resolved from PyPI or GitHub: +- On a development branch, comment out published versions and use git sources. +- When preparing a release, use published versions and comment out git sources. -Configure prek hooks -^^^^^^^^^^^^^^^^^^^^ +The lock file is checked by ``tests/pixi_lock_test.py``: it ensures all dependencies +are resolved from Conda, except for the Mira packages listed under the +``mira-pypi`` feature. Keep compatibility bounds on indirect Conda dependencies: +Pixi solves Conda before PyPI and does not backtrack between them. -`prek`_ runs the checks configured in ``.pre-commit-config.yaml``. Install it with:: - - uv tool install prek +Git hooks +^^^^^^^^^ -From the project directory, install the Git hook and run all checks with:: +Install `prek `_ and use the existing hook configuration:: - prek install --prepare-hooks + prek install -t prepare-commit-msg -t commit-msg -t pre-commit -f --prepare-hooks prek run --all-files -Run ``prek run`` to check only the files selected for the current commit. Update -hook revisions with ``prek auto-update``. - - -Running the tests -^^^^^^^^^^^^^^^^^ - -Test files are placed under the ``tests`` folder. Inside this folder and sub-folders, -Python test files are to be named with ``_test.py`` as a suffix. -The test function within this files must have a ``test_`` prefix. - - -Install pytest --------------- -.. _pytest: https://docs.pytest.org/ - -After installing the default Pixi environment, run pytest from the project folder:: - - pixi run pytest tests - - -Code coverage with Pytest -------------------------- -.. _pytest-cov: https://pypi.org/project/pytest-cov/ - -`pytest-cov`_ is installed in the default environment. Run the tests with HTML coverage:: - - pixi run pytest --cov-report html tests - -The html report is generated in the folder ``htmlcov`` at the root of the project. -You can then explore the report by opening ``index.html`` in a browser. - - -Git LFS -^^^^^^^ -In the case your package requires large files, `git-lfs`_ can be used to store those files. -Copy it from the `git-lfs`_ website, and install it. - -Then, in the project folder, run the following command to install git-lfs:: - - $ git lfs install - - -It will update the file ``.gitattributes`` with the list of files to track. - -Then, add the files and the ``.gitattributes`` to the git repository, and commit. - -.. _git-lfs: https://git-lfs.com/ +The local pylint hook runs in the locked ``py312`` environment. -Then, add the files to track with git-lfs:: +Test layout +^^^^^^^^^^^ - $ git lfs track "*.desire_extension" +Tests live under ``tests`` and use the ``_test.py`` filename suffix. -IDE : PyCharm -^^^^^^^^^^^^^ -`PyCharm`_, by JetBrains, is a very good IDE for developing with Python. - - -Configure the Python interpreter in PyCharm --------------------------------------------- - -First, exclude the ``.pixi`` folder from PyCharm by right-clicking it and selecting -``Mark Directory as > Excluded``. - - .. image:: devtools/images/pycharm-exclude_conda_env.png - :alt: PyCharm: Exclude Pixi environment - :align: center - :width: 40% - -Add the Pixi environment's Python interpreter (``.pixi/envs/default/Scripts/python.exe`` -on Windows or ``.pixi/envs/default/bin/python`` on Linux). - -In PyCharm settings, open ``File > Settings``, go to ``Python Interpreter``, -and add click add interpreter (at the top left): - - .. image:: devtools/images/pycharm-add_Python_interpreter.png - :alt: PyCharm: Python interpreter settings - :align: center - :width: 80% - -Select the option for an existing or system interpreter and choose the Python executable -inside ``.pixi/envs/default``: - - .. image:: devtools/images/pycharm-set_conda_env_as_interpreter.png - :alt: PyCharm: Set Pixi environment as interpreter - :align: center - :width: 80% - -Then you can check the list of installed packages in the ``Packages`` table. You should see -this source package and its dependencies. Make sure to turn off the ``Use Conda Package Manager`` -option to see also the packages installed through pip: - - .. image:: devtools/images/pycharm-list_all_conda_packages.png - :alt: PyCharm: Pixi environment packages - :align: center - :width: 80% - - -Run the tests from PyCharm --------------------------- -First, right click on the ``tests`` folder and select ``Mark Directory as > Test Sources Root``: - - .. image:: devtools/images/pycharm-mark_directory_as_tests.png - :alt: PyCharm: Add Python interpreter - :align: center - :width: 40% - -You can now start tests with a right click on the ``tests`` folder and -select ``Run 'pytest in tests'``, or select the folder and just hit ``Ctrl+Shift+F10``. - -PyCharm will nicely present the test results and logs: - - .. image:: devtools/images/pycharm-test_results.png - :alt: PyCharm: Run tests - :align: center - :width: 80% - +--------- -Execute tests with coverage from PyCharm ----------------------------------------- - -You can run the tests with a nice report of the code coverage, thanks to the pytest-cov plugin -(already installed in the virtual environment as development dependency as per `pyproject.toml`_). - - -To set up this option in PyCharm, right click on the ``tests`` folder and ``Modify Run Configuration...``, -then add the following option in the ``Additional Arguments`` field: - - .. image:: devtools/images/pycharm-menu_modify_test_run_config.png - :alt: PyCharm tests contextual menu: modify run configuration - :width: 30% - - .. image:: devtools/images/pycharm-dialog_edit_test_run_config.png - :alt: PyCharm dialog: edit tests run configuration - :width: 60% - -Select ``pytest in tests``, and add the following option in the ``Additional Arguments`` field:: - - --cov --cov-report html - -Then, run the tests as usual, and you will get a nice report of the code coverage. - -.. note:: - - Running tests with coverage disables the debugger, so breakpoints will be ignored. - -Some useful plugins for PyCharm --------------------------------- -Here is a suggestion for some plugins you can install in PyCharm. - -- `Toml`_, to edit and validate ``pyproject.toml`` file. -- `IdeaVim`_, for Vim lovers. -- `GitHub Copilot`_, for AI assisted coding. - -.. _PyCharm: https://www.jetbrains.com/pycharm/ - -.. _Toml: https://plugins.jetbrains.com/plugin/8195-toml/ -.. _IdeaVim: https://plugins.jetbrains.com/plugin/164-ideavim/ -.. _GitHub Copilot: https://plugins.jetbrains.com/plugin/17718-github-copilot - -.. _pyproject.toml: pyproject.toml -.. _.pre-commit-config.yaml: .pre-commit-config.yaml - - -Copyright -^^^^^^^^^ -Copyright (c) 2024-2026 Mira Geoscience Ltd. +*Copyright (c) 2026 Mira Geoscience Ltd.* diff --git a/README.rst b/README.rst index 211f884..6038678 100644 --- a/README.rst +++ b/README.rst @@ -157,7 +157,7 @@ License ^^^^^^^ MIT License -Copyright (c) 2024-2025 Mira Geoscience +Copyright (c) 2026 Mira Geoscience Ltd. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -194,4 +194,4 @@ Trademarks Copyright ^^^^^^^^^ -Copyright (c) 2024-2026 Mira Geoscience Ltd. +Copyright (c) 2026 Mira Geoscience Ltd. diff --git a/devtools/images/pycharm-add_Python_interpreter.png b/devtools/images/pycharm-add_Python_interpreter.png deleted file mode 100644 index f2c2795..0000000 Binary files a/devtools/images/pycharm-add_Python_interpreter.png and /dev/null differ diff --git a/devtools/images/pycharm-dialog_edit_test_run_config.png b/devtools/images/pycharm-dialog_edit_test_run_config.png deleted file mode 100644 index b230bd1..0000000 Binary files a/devtools/images/pycharm-dialog_edit_test_run_config.png and /dev/null differ diff --git a/devtools/images/pycharm-exclude_conda_env.png b/devtools/images/pycharm-exclude_conda_env.png deleted file mode 100644 index daa99e7..0000000 Binary files a/devtools/images/pycharm-exclude_conda_env.png and /dev/null differ diff --git a/devtools/images/pycharm-list_all_conda_packages.png b/devtools/images/pycharm-list_all_conda_packages.png deleted file mode 100644 index f484e30..0000000 Binary files a/devtools/images/pycharm-list_all_conda_packages.png and /dev/null differ diff --git a/devtools/images/pycharm-mark_directory_as_tests.png b/devtools/images/pycharm-mark_directory_as_tests.png deleted file mode 100644 index 71d0d3b..0000000 Binary files a/devtools/images/pycharm-mark_directory_as_tests.png and /dev/null differ diff --git a/devtools/images/pycharm-menu_modify_test_run_config.png b/devtools/images/pycharm-menu_modify_test_run_config.png deleted file mode 100644 index 75246ad..0000000 Binary files a/devtools/images/pycharm-menu_modify_test_run_config.png and /dev/null differ diff --git a/devtools/images/pycharm-set_conda_env_as_interpreter.png b/devtools/images/pycharm-set_conda_env_as_interpreter.png deleted file mode 100644 index 5815a9b..0000000 Binary files a/devtools/images/pycharm-set_conda_env_as_interpreter.png and /dev/null differ diff --git a/devtools/images/pycharm-test_results.png b/devtools/images/pycharm-test_results.png deleted file mode 100644 index 73ab273..0000000 Binary files a/devtools/images/pycharm-test_results.png and /dev/null differ diff --git a/pixi.lock b/pixi.lock index 856bde8..e4a7a71 100644 --- a/pixi.lock +++ b/pixi.lock @@ -15,7 +15,7 @@ environments: channels: - url: https://repo.prefix.dev/conda-forge/ indexes: - - https://pypi.org/simple + - https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/simple packages: linux-64: - conda: https://repo.prefix.dev/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda @@ -120,6 +120,7 @@ environments: - conda: https://repo.prefix.dev/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/parso-0.8.7-pyhcf101f3_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/pexpect-4.9.0-pyhd8ed1ab_1.conda + - conda: https://repo.prefix.dev/conda-forge/noarch/pixi-pycharm-0.0.12-unix_hf108a03_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/platformdirs-4.14.5-pyh5ded981_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/pluggy-1.7.0-pyh5ded981_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/prompt-toolkit-3.0.53-pyha770c72_0.conda @@ -145,8 +146,8 @@ environments: - conda: https://repo.prefix.dev/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/zipp-4.1.2-pyh5ded981_0.conda - - pypi: https://files.pythonhosted.org/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl win-64: - conda: https://repo.prefix.dev/conda-forge/noarch/_python_abi3_support-1.0-hd8ed1ab_3.conda - conda: https://repo.prefix.dev/conda-forge/noarch/annotated-types-0.8.0-pyhd8ed1ab_0.conda @@ -173,6 +174,7 @@ environments: - conda: https://repo.prefix.dev/conda-forge/noarch/mypy_extensions-1.1.0-pyha770c72_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/packaging-26.3-pyhc364b38_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/parso-0.8.7-pyhcf101f3_0.conda + - conda: https://repo.prefix.dev/conda-forge/noarch/pixi-pycharm-0.0.12-win_hba80fca_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/platformdirs-4.14.5-pyh5ded981_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/pluggy-1.7.0-pyh5ded981_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/prompt-toolkit-3.0.53-pyha770c72_0.conda @@ -266,8 +268,8 @@ environments: - conda: https://repo.prefix.dev/conda-forge/win-64/zlib-1.3.2-hfd05255_3.conda - conda: https://repo.prefix.dev/conda-forge/win-64/zlib-ng-2.3.3-h0261ad2_1.conda - conda: https://repo.prefix.dev/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda - - pypi: https://files.pythonhosted.org/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl docs: channels: - url: https://repo.prefix.dev/conda-forge/ @@ -385,7 +387,7 @@ environments: channels: - url: https://repo.prefix.dev/conda-forge/ indexes: - - https://pypi.org/simple + - https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/simple packages: linux-64: - conda: https://repo.prefix.dev/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda @@ -497,8 +499,8 @@ environments: - conda: https://repo.prefix.dev/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/zipp-4.1.2-pyh5ded981_0.conda - - pypi: https://files.pythonhosted.org/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl win-64: - conda: https://repo.prefix.dev/conda-forge/noarch/annotated-types-0.8.0-pyhd8ed1ab_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/ca-certificates-2026.10.23-h4c7d964_0.conda @@ -602,13 +604,13 @@ environments: - conda: https://repo.prefix.dev/conda-forge/win-64/zlib-1.3.2-hfd05255_3.conda - conda: https://repo.prefix.dev/conda-forge/win-64/zlib-ng-2.3.3-h0261ad2_1.conda - conda: https://repo.prefix.dev/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda - - pypi: https://files.pythonhosted.org/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl py313: channels: - url: https://repo.prefix.dev/conda-forge/ indexes: - - https://pypi.org/simple + - https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/simple packages: linux-64: - conda: https://repo.prefix.dev/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda @@ -718,8 +720,8 @@ environments: - conda: https://repo.prefix.dev/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/zipp-4.1.2-pyh5ded981_0.conda - - pypi: https://files.pythonhosted.org/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl win-64: - conda: https://repo.prefix.dev/conda-forge/noarch/annotated-types-0.8.0-pyhd8ed1ab_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/ca-certificates-2026.10.23-h4c7d964_0.conda @@ -823,13 +825,13 @@ environments: - conda: https://repo.prefix.dev/conda-forge/win-64/zlib-1.3.2-hfd05255_3.conda - conda: https://repo.prefix.dev/conda-forge/win-64/zlib-ng-2.3.3-h0261ad2_1.conda - conda: https://repo.prefix.dev/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda - - pypi: https://files.pythonhosted.org/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl py314: channels: - url: https://repo.prefix.dev/conda-forge/ indexes: - - https://pypi.org/simple + - https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/simple packages: linux-64: - conda: https://repo.prefix.dev/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda @@ -939,8 +941,8 @@ environments: - conda: https://repo.prefix.dev/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/zipp-4.1.2-pyh5ded981_0.conda - - pypi: https://files.pythonhosted.org/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl win-64: - conda: https://repo.prefix.dev/conda-forge/noarch/annotated-types-0.8.0-pyhd8ed1ab_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/ca-certificates-2026.10.23-h4c7d964_0.conda @@ -1044,13 +1046,13 @@ environments: - conda: https://repo.prefix.dev/conda-forge/win-64/zlib-1.3.2-hfd05255_3.conda - conda: https://repo.prefix.dev/conda-forge/win-64/zlib-ng-2.3.3-h0261ad2_1.conda - conda: https://repo.prefix.dev/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda - - pypi: https://files.pythonhosted.org/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl runtime: channels: - url: https://repo.prefix.dev/conda-forge/ indexes: - - https://pypi.org/simple + - https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/simple packages: linux-64: - conda: https://repo.prefix.dev/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda @@ -1141,8 +1143,8 @@ environments: - conda: https://repo.prefix.dev/conda-forge/noarch/typing-inspection-0.4.5-pyh5ded981_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda - - pypi: https://files.pythonhosted.org/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl win-64: - conda: https://repo.prefix.dev/conda-forge/noarch/annotated-types-0.8.0-pyhd8ed1ab_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/ca-certificates-2026.10.23-h4c7d964_0.conda @@ -1225,13 +1227,13 @@ environments: - conda: https://repo.prefix.dev/conda-forge/win-64/zlib-1.3.2-hfd05255_3.conda - conda: https://repo.prefix.dev/conda-forge/win-64/zlib-ng-2.3.3-h0261ad2_1.conda - conda: https://repo.prefix.dev/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda - - pypi: https://files.pythonhosted.org/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl runtime-py313: channels: - url: https://repo.prefix.dev/conda-forge/ indexes: - - https://pypi.org/simple + - https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/simple packages: linux-64: - conda: https://repo.prefix.dev/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda @@ -1320,8 +1322,8 @@ environments: - conda: https://repo.prefix.dev/conda-forge/noarch/typing-inspection-0.4.5-pyh5ded981_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda - - pypi: https://files.pythonhosted.org/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl win-64: - conda: https://repo.prefix.dev/conda-forge/noarch/annotated-types-0.8.0-pyhd8ed1ab_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/ca-certificates-2026.10.23-h4c7d964_0.conda @@ -1404,13 +1406,13 @@ environments: - conda: https://repo.prefix.dev/conda-forge/win-64/zlib-1.3.2-hfd05255_3.conda - conda: https://repo.prefix.dev/conda-forge/win-64/zlib-ng-2.3.3-h0261ad2_1.conda - conda: https://repo.prefix.dev/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda - - pypi: https://files.pythonhosted.org/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl runtime-py314: channels: - url: https://repo.prefix.dev/conda-forge/ indexes: - - https://pypi.org/simple + - https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/simple packages: linux-64: - conda: https://repo.prefix.dev/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda @@ -1499,8 +1501,8 @@ environments: - conda: https://repo.prefix.dev/conda-forge/noarch/typing-inspection-0.4.5-pyh5ded981_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/typing_extensions-4.16.0-pyhcf101f3_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/tzdata-2026e-h5d301ff_0.conda - - pypi: https://files.pythonhosted.org/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl win-64: - conda: https://repo.prefix.dev/conda-forge/noarch/annotated-types-0.8.0-pyhd8ed1ab_0.conda - conda: https://repo.prefix.dev/conda-forge/noarch/ca-certificates-2026.10.23-h4c7d964_0.conda @@ -1583,8 +1585,8 @@ environments: - conda: https://repo.prefix.dev/conda-forge/win-64/zlib-1.3.2-hfd05255_3.conda - conda: https://repo.prefix.dev/conda-forge/win-64/zlib-ng-2.3.3-h0261ad2_1.conda - conda: https://repo.prefix.dev/conda-forge/win-64/zstd-1.5.7-h534d264_7.conda - - pypi: https://files.pythonhosted.org/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl - - pypi: https://files.pythonhosted.org/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl + - pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl packages: - conda: https://repo.prefix.dev/conda-forge/linux-64/_openmp_mutex-4.5-20_gnu.conda build_number: 20 @@ -3935,6 +3937,30 @@ packages: run_exports: {} size: 53561 timestamp: 1733302019362 +- conda: https://repo.prefix.dev/conda-forge/noarch/pixi-pycharm-0.0.12-unix_hf108a03_0.conda + sha256: 66cd439b83657c2728d0e45e4e40d140eb33dd22b61b045b23f922cae51bb503 + md5: a92eadbeec2c489f209382433acf14a5 + depends: + - __unix + - python >=3.8 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: {} + size: 7177 + timestamp: 1783850404460 +- conda: https://repo.prefix.dev/conda-forge/noarch/pixi-pycharm-0.0.12-win_hba80fca_0.conda + sha256: 534ded667c2d914f0c5fc0af98837121f66dec5c57c192e338e210381e9c5c0d + md5: 9173b283fc573d5e4e7e7071456a0d29 + depends: + - __win + - python >=3.8 + license: BSD-3-Clause + license_family: BSD + purls: [] + run_exports: {} + size: 7188 + timestamp: 1783850402995 - conda: https://repo.prefix.dev/conda-forge/noarch/platformdirs-4.14.5-pyh5ded981_0.conda sha256: 8bbb25f131001457e5fd19385000e9d6a8047223a35f4c507d92113eb68d42f9 md5: 07cf1805b475a26f12362b1a65b62d48 @@ -6349,10 +6375,11 @@ packages: - zstd >=1.5.7,<1.6.0a0 size: 387535 timestamp: 1786599623274 -- pypi: https://files.pythonhosted.org/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl +- pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/50/a3/474e2769a66716e629829a234adea681df96f7bc153567c3ec818a7dadc8/geoh5py-0.14.0b1-py3-none-any.whl name: geoh5py version: 0.14.0b1 sha256: e6f57dc47305ed69825c1dafc9899c78072c00e86fa04bcf02e6cced260aa871 + index: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/simple requires_dist: - pillow>=13.0.0,<14.0.0 - defusedxml>=0.7.1,<0.8.0 @@ -6361,10 +6388,11 @@ packages: - psutil>=7.2.2,<7.3.0 - pydantic>=2.12.0,<2.13.0 requires_python: '>=3.12,<3.15' -- pypi: https://files.pythonhosted.org/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl +- pypi: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/packages/packages/fd/56/9a7d2fb5a53b943bbef1fa0944e2d91245c4b403eaa4dd0a14b36c20a356/geoapps_utils-0.8.0b1-py3-none-any.whl name: geoapps-utils version: 0.8.0b1 sha256: 1ff1bbd9cb9d8d909027fd4ac2f7f7248cf1251579401a34dcc2a750743c45c1 + index: https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/simple requires_dist: - geoh5py>=0.14.0b1,<0.15.0 - matplotlib>=3.10.0,<3.11.0 diff --git a/pixi.toml b/pixi.toml index 4f8c009..443368c 100644 --- a/pixi.toml +++ b/pixi.toml @@ -9,27 +9,34 @@ PYTHONNOUSERSITE = "1" [dependencies] discretize = "0.12.*" -defusedxml = ">=0.7.1,<0.8" -h5py = ">=3.15.1,<3.16" -matplotlib-base = "3.10.*" -numpy = ">=2.4.2,<2.5" -pillow = "13.*" # Security floor (GHSA-wqgw-9xfh-qf2g). -psutil = ">=7.2.2,<7.3" +numpy = ">=2.4.2,2.4.*" pydantic = "2.12.*" scipy = "1.17.*" +# Keep Mira packages' indirect dependencies in Conda and compatible with PyPI metadata. +# Pixi solves Conda first, without backtracking from the PyPI solve. +defusedxml = ">=0.7.1,0.7.*" +h5py = ">=3.15.1,3.15.*" +matplotlib-base = "3.10.*" +pillow = "13.*" +psutil = ">=7.2.2,7.2.*" + +[feature.mira-pypi.pypi-options] +index-url = "https://mirageoscienceltd.jfrog.io/artifactory/api/pypi/public-pypi-dev/simple" -[pypi-dependencies] -geoh5py = ">=0.14.0b1,<0.15" -geoapps-utils = ">=0.8.0b1,<0.9" +[feature.mira-pypi.pypi-dependencies] +geoh5py = ">=0.14.0b1,==0.14.*" +# geoh5py = { git = "https://github.com/MiraGeoscience/geoh5py.git", rev = "release/ga-4.9" } +geoapps-utils = ">=0.8.0b1,==0.8.*" +# geoapps-utils = { git = "https://github.com/MiraGeoscience/geoapps-utils.git", rev = "release/ga-4.9" } [environments] -default = { features = ["py312", "test", "lint", "dev"], solve-group = "py312" } -py312 = { features = ["py312", "test", "lint"], solve-group = "py312" } -py313 = { features = ["py313", "test", "lint"], solve-group = "py313" } -py314 = { features = ["py314", "test", "lint"], solve-group = "py314" } -runtime = { features = ["py312"], solve-group = "py312" } -runtime-py313 = { features = ["py313"], solve-group = "py313" } -runtime-py314 = { features = ["py314"], solve-group = "py314" } +default = { features = ["mira-pypi", "py312", "test", "lint", "dev"], solve-group = "py312" } +py312 = { features = ["mira-pypi", "py312", "test", "lint"], solve-group = "py312" } +py313 = { features = ["mira-pypi", "py313", "test", "lint"], solve-group = "py313" } +py314 = { features = ["mira-pypi", "py314", "test", "lint"], solve-group = "py314" } +runtime = { features = ["mira-pypi", "py312"], solve-group = "py312" } +runtime-py313 = { features = ["mira-pypi", "py313"], solve-group = "py313" } +runtime-py314 = { features = ["mira-pypi", "py314"], solve-group = "py314" } docs = { features = ["py314", "docs"], no-default-feature = true } [feature.py312.dependencies] @@ -44,6 +51,7 @@ python = "3.14.*" [feature.dev.dependencies] pygments = "*" ipython = "*" +pixi-pycharm = "*" [feature.dev.tasks] repl = "ipython" @@ -58,7 +66,7 @@ pyyaml = "*" test = { cmd = "pytest --cov --cov-report=xml", description = "Run tests from the source checkout with coverage" } [feature.lint.dependencies] -pylint = ">=4.0.9,<5" +pylint = ">=4.0.9,4.*" [feature.lint.tasks] lint = { cmd = "pylint", description = "Run pylint on the local sources" } diff --git a/pyproject.toml b/pyproject.toml index 2a3c787..c740def 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,11 @@ [build-system] requires = [ "poetry-core>=2.2.1", - "poetry-dynamic-versioning>=1.9.1,<2.0", + "poetry-dynamic-versioning>=1.9.1,==1.*", # list dependencies to work with PIP_NO_DEPS=1 "MarkupSafe>=2.0", - "dunamai>=1.25,<2.0", - "jinja2>=3.0,<4.0", + "dunamai>=1.25,==1.*", + "jinja2==3.*", "packaging>=24.0", "tomlkit>=0.13", ] @@ -38,16 +38,13 @@ maintainers = [ ] dependencies = [ # Mira packages - # geoh5py @ git+https://github.com/MiraGeoscience/geoh5py.git@release/ga-4.9 - "geoh5py>=0.14.0b1,<0.15.0", - # geoapps-utils @ git+https://github.com/MiraGeoscience/geoapps-utils.git@release/ga-4.9 - "geoapps-utils>=0.8.0b1,<0.9.0", + "geoh5py>=0.14.0b1,==0.14.*", + "geoapps-utils>=0.8.0b1,==0.8.*", # other direct dependencies - "discretize>=0.12.0,<0.13.0", - "numpy>=2.4.2,<2.5.0", - "pydantic>=2.12.0,<2.13.0", - "scipy>=1.17.0,<1.18.0", - "pillow>=13.0.0,<14.0.0", # Security floor (GHSA-wqgw-9xfh-qf2g). + "discretize==0.12.*", + "numpy>=2.4.2,==2.4.*", + "pydantic==2.12.*", + "scipy==1.17.*", ] [project.urls] @@ -99,7 +96,7 @@ docs = [ ] [tool.poetry.requires-plugins] -poetry-dynamic-versioning = { version = ">=1.9.1,<2.0.0", extras = ["plugin"] } +poetry-dynamic-versioning = { version = ">=1.9.1, 1.*", extras = ["plugin"] } [tool.poetry-dynamic-versioning] bump = true diff --git a/recipe.yaml b/recipe.yaml index 94250fa..45ac939 100644 --- a/recipe.yaml +++ b/recipe.yaml @@ -28,18 +28,20 @@ requirements: - python ${{ python_min }}.* - pip - poetry-core >=2.2.1 - - poetry-dynamic-versioning >=1.9, <2.0.dev + - poetry-dynamic-versioning >=1.9.1, 1.* run: - python >=${{ python_min }} # Mira packages - - geoh5py >=0.14.0b1, <0.15.0 - - geoapps-utils >=0.8.0b1, <0.9.0 + - geoh5py >=0.14.0b1, 0.14.* + - geoapps-utils >=0.8.0b1, 0.8.* # other direct dependencies - discretize 0.12.* - numpy 2.4.* - pydantic 2.12.* - scipy 1.17.* - - pillow 13.* # Security floor (GHSA-wqgw-9xfh-qf2g). + run_constraints: + # Security floors for transitive dependencies: + - pillow >=13.0.0 # GHSA-wqgw-9xfh-qf2g tests: - python: @@ -48,7 +50,7 @@ tests: - ${{ module_name }} - ${{ module_name }}._version - script: - - pytest --ignore=tests/version_test.py + - pytest --ignore=tests/version_test.py --ignore=tests/pixi_lock_test.py requirements: run: - pytest diff --git a/tests/pixi_lock_test.py b/tests/pixi_lock_test.py new file mode 100644 index 0000000..55f4306 --- /dev/null +++ b/tests/pixi_lock_test.py @@ -0,0 +1,56 @@ +# +# Copyright (c) 2024-2026 Mira Geoscience Ltd. +# +# This file is part of grid-apps package. +# +# grid-apps is distributed under the terms and conditions of the MIT License +# (see LICENSE file at the root of this source code package). +# + +import tomllib +from pathlib import Path + +import yaml +from packaging.utils import canonicalize_name + + +def locked_pypi_names(entries, packages): + return { + canonicalize_name(packages[entry["pypi"]]) + for entry in entries + if "pypi" in entry + } + + +def test_locked_pypi_names_with_git_source(): + url = "git+https://github.com/MiraGeoscience/geoh5py.git@release/ga-4.9" + assert locked_pypi_names([{"pypi": url}], {url: "geoh5py"}) == {"geoh5py"} + + +# pylint: disable=line-too-long +def test_locked_pypi_sources(): + """Test that the only packages resolved from PyPI are the ones specified in the mira-pypi feature.""" + + package_root = Path(__file__).resolve().parents[1] + pixi = tomllib.loads((package_root / "pixi.toml").read_text()) + mira_sources = { + canonicalize_name(name) + for name in pixi["feature"]["mira-pypi"]["pypi-dependencies"] + } + lock = yaml.safe_load((package_root / "pixi.lock").read_text()) + packages = { + package["pypi"]: package["name"] + for package in lock["packages"] + if "pypi" in package + } + for environment, data in lock["environments"].items(): + if environment == "docs": + continue + for platform, entries in data["packages"].items(): + pypi_sources = locked_pypi_names(entries, packages) + assert pypi_sources == mira_sources, ( + environment, + platform, + mira_sources - pypi_sources, + pypi_sources - mira_sources, + )