Skip to content

ewoks install: support the pixi package manager - #337

Open
woutdenolf wants to merge 1 commit into
mainfrom
add_pixi_support
Open

ewoks install: support the pixi package manager#337
woutdenolf wants to merge 1 commit into
mainfrom
add_pixi_support

Conversation

@woutdenolf

@woutdenolf woutdenolf commented Aug 28, 2026

Copy link
Copy Markdown
Member

PR summary

ewoks convert and ewoks install support pip-venv and uv. This PR adds pixi.

AI Disclosure

@codecov

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.23810% with 6 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/ewoks/_requirements/pixi.py 95.40% 4 Missing ⚠️
src/ewoks/_requirements/utils/conda_channel.py 80.00% 1 Missing ⚠️
src/ewoks/_requirements/utils/toml_dependencies.py 96.42% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Comment on lines +93 to +98
def test_create_environment(manager_case, environment):
assert environment.exists()
assert environment.python_version() == PYTHON_VERSION
if manager_case.CHANNEL_PYTHON:
assert environment.python_version().startswith(f"{PYTHON_MINOR_VERSION}.")
else:
assert environment.python_version() == PYTHON_VERSION

@woutdenolf woutdenolf Aug 28, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one was tricky. The environment fixture creates an empty environment with the manager case (pip-venv, uv and pixi).

It uses platform.python_version() by default. But when using pixi and conda, the python comes from the conda channel and the version is not exactly the same, up to the minor. See python_specifier which is used to trim the patch version. This is needed because not all patch versions of python are in the conda channel.

enable-coverage: ${{ matrix.enable-coverage }}
jupyter-platform-dirs: "1"
package-managers: "uv"
package-managers: "uv pixi"

@woutdenolf woutdenolf Aug 28, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When everything is done we can add something to CONTRIBUTING.md for what is needed to run the full test suite.

@woutdenolf
woutdenolf marked this pull request as ready for review August 28, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant