diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..887a2c1 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# SCM syntax highlighting & preventing 3-way merges +pixi.lock merge=binary linguist-language=YAML linguist-generated=true diff --git a/.gitignore b/.gitignore index 9012091..206ddde 100644 --- a/.gitignore +++ b/.gitignore @@ -62,3 +62,7 @@ pip-wheel-metadata/ # Mac OSX .DS_Store coverage.xml +# pixi environments +.pixi +wfs.log +pixi.lock diff --git a/pyproject.toml b/pyproject.toml index 38fd7ae..1f32c02 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,7 +59,7 @@ requires = [ build-backend = 'setuptools.build_meta' [tool.pytest.ini_options] -minversion = 7.0 +minversion = "7.0" testpaths = [ "wfssrv/tests", ] @@ -109,3 +109,28 @@ filterwarnings = [ # Don't complain about IPython completion helper "def _ipython_key_completions_", ] + +[tool.pixi.workspace] +channels = ["conda-forge"] +platforms = ["osx-arm64", "linux-64"] + +[tool.pixi.pypi-dependencies] +wfssrv = { path = ".", editable = true } + +[tool.pixi.target.linux-64.dependencies] +mkl = "*" +mkl-service = "*" + +[tool.pixi.environments] +default = { solve-group = "default" } +docs = { features = ["docs"], solve-group = "default" } +test = { features = ["test"], solve-group = "default" } + +[tool.pixi.tasks] +wfssrv = "wfssrv" + +[tool.pixi.feature.test.tasks] +test = "pytest" + +[tool.pixi.dependencies] +matplotlib = "*"