Pixi is a modern package management tool that helps manage Python environments with conda packages. This guide explains how to use pixi with fstd2nc.
- First, install pixi following the official installation guide
The following tasks are available in the project:
-
Testing:
pixi run -e dev test # Run package tests with pytest (verbose mode)
-
Code Quality:
pixi run -e dev lint # Check code with ruff pixi run -e dev lint-fix # Auto-fix linting issues pixi run -e dev format # Format code with ruff
-
Building and Installation:
pixi run -e dev build # Install package in development mode
-
Documentation:
pixi run -e dev doc # Build Sphinx documentation
-
Version Management:
pixi run -e dev get-version # Check current package version
-
Conda Packaging:
pixi run -e dev conda-build # Build conda package pixi run -e dev render # Rerender conda-smithy configuration pixi run -e dev conda-upload # Upload package to fortiers channel
The project includes a dev
environment with additional tools for development:
- Testing: pytest
- Code Quality: ruff
- Documentation: sphinx and related packages
- Building: setuptools, wheel, pip
To activate the development environment:
pixi shell --environment dev
- The
fstd2nc-deps
package will only be installed on Windows systems eccc_rpnpy
is installed from the fortiers channel- All other dependencies are fetched from conda-forge by default
- Currently configured for linux-64 platform
-
Always activate the pixi environment before working on the project:
pixi shell -e dev
-
Update dependencies when needed:
pixi add <package-name>
-
Run code quality checks before committing:
pixi run -e dev lint pixi run -e dev format
If you encounter issues with the fortiers channel or eccc_rpnpy:
- Verify the channel is properly added:
pixi info channels
- Try updating the environment:
pixi update