From 0843f9a852d6f018c48b41a24bafe9040b37e4e1 Mon Sep 17 00:00:00 2001 From: Virgile Andreani Date: Thu, 18 Dec 2025 11:02:29 +0100 Subject: [PATCH] Add pixi config to pyproject.toml --- .gitattributes | 2 ++ .gitignore | 3 +++ pyproject.toml | 18 ++++++++++++++++++ 3 files changed, 23 insertions(+) diff --git a/.gitattributes b/.gitattributes index 06b49db0b7..d97eed980b 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,3 @@ pytensor/_version.py export-subst +# SCM syntax highlighting & preventing 3-way merges +pixi.lock merge=binary linguist-language=YAML linguist-generated=true diff --git a/.gitignore b/.gitignore index ebe8e61bd0..0b4c102a70 100644 --- a/.gitignore +++ b/.gitignore @@ -55,3 +55,6 @@ pytensor-venv/ testing-report.html coverage.xml .coverage.* +# pixi environments +.pixi/* +!.pixi/config.toml diff --git a/pyproject.toml b/pyproject.toml index 89e95bcd4d..b05474bb80 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -197,3 +197,21 @@ test-skip = ["*musllinux*", "*i686*"] # Testing seems to be running into issues locating libs where expected # test-requires = ["pytest", "numba", "jax", "jaxlib"] # test-command = "pytest {package}/tests" + +[tool.pixi.workspace] +channels = ["conda-forge"] +platforms = ["linux-64"] + +[tool.pixi.pypi-dependencies] +pytensor = { path = ".", editable = true } + +[tool.pixi.environments] +default = { solve-group = "default" } +complete = { features = ["complete"], solve-group = "default" } +development = { features = ["development"], solve-group = "default" } +jax = { features = ["jax"], solve-group = "default" } +numba = { features = ["numba"], solve-group = "default" } +rtd = { features = ["rtd"], solve-group = "default" } +tests = { features = ["tests"], solve-group = "default" } + +[tool.pixi.tasks]