Deltares / xugrid

Xarray and unstructured grids
https://deltares.github.io/xugrid/
MIT License
58 stars 8 forks source link

Solve TypeError for py39 #184

Closed veenstrajelmer closed 8 months ago

Huite commented 8 months ago

We're using pixi now to setup and environment and run the tests, which makes life a lot easier (also faster).

Ideally we could sort this out with pixi. There's two related issues:

A somewhat clumsy workaround is to define more than one pixi.toml (in different dirs if need be), with different python versions, but identical tasks. Then during testing, activate them one by one and run consecutively.

However, I wouldn't be surprised if pixi has this sorted out in a few months with a proper solution.

Huite commented 8 months ago

Easiest way of doing it now, I guess (?):

Start with pixi add python=3.9, run tests, then pixi add python=3.10, run tests, and finally 3.11.

This ends up recreating the environments every single time (which is still pretty fast probably).

veenstrajelmer commented 8 months ago

Will be picked up in https://github.com/Deltares/xugrid/pull/185