Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ pytensor-venv/
testing-report.html
coverage.xml
.coverage.*
# pixi environments
.pixi/*
!.pixi/config.toml
18 changes: 18 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Choose a reason for hiding this comment

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

I think this will only support development on linux?

Copy link
Member Author

Choose a reason for hiding this comment

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

I suppose, but I wouldn't be able to test it on any other platform so I am thinking that it is easier if people who want support on other platforms add it themselves


[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" }
Comment on lines +208 to +215

Choose a reason for hiding this comment

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

Does this work when you don't have anything defined under tool.pixi.features? IIUC, this is using the different entries under project.optional-dependencies, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that's correct!


[tool.pixi.tasks]

Choose a reason for hiding this comment

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

Why this empty entry?

Copy link
Member Author

@Armavica Armavica Dec 18, 2025

Choose a reason for hiding this comment

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

pixi init created this entry but one could add tasks. Maybe testing, running mypy, building the docs, etc?

Loading