Skip to content

Use pixi as a package manager - #134

Merged
loichuder merged 2 commits into
mainfrom
move-to-pixi
Oct 20, 2026
Merged

loichuder merged 2 commits into
mainfrom
move-to-pixi

Conversation

@loichuder

@loichuder loichuder commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

#132 (comment)

Fix #130 since we use the h5py conda package now

Used Claude for the first draft and iterated by hand from this point.

Comment thread pyproject.toml
# Ignore `F401` (imported but unused) in init files
"__init__.py" = ["F401"]

[tool.pixi.activation.env]

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.

Comment thread pyproject.toml
Comment on lines +79 to +83
[tool.pixi.dependencies]
python = ">=3.12"
numpy = "*"
h5py = "*"
orjson = "*"

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 is to declare the packages for which we use the conda packages. The others use the pypi package.

fail-fast: false
matrix:
python-version: ['3.12', '3.14']
environment: ['default', 'py315']

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.

https://github.com/marketplace/actions/setup-pixi#multiple-environments-using-a-matrix

Except that I use default as the Python 3.12 env to avoid duplication of envs.

@loichuder
loichuder requested review from axelboc and t20100 and removed request for t20100 October 20, 2026 12:51

@axelboc axelboc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

😍

@t20100 t20100 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, nice!

Comment thread .github/workflows/doc.yml Outdated
Comment thread .github/workflows/lint-test.yml
HATCH_INDEX_USER: '__token__'
HATCH_INDEX_AUTH: ${{ secrets.PYPI_API_TOKEN }}
run: hatch publish -n
uses: pypa/gh-action-pypi-publish@release/v1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

@loichuder
loichuder merged commit d2f1840 into main Oct 20, 2026
4 checks passed
@loichuder
loichuder deleted the move-to-pixi branch October 20, 2026 14:03
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.

Add support for Python 3.15

3 participants