-
Notifications
You must be signed in to change notification settings - Fork 139
Autogenerate pixi.toml
#1542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
maresb
wants to merge
24
commits into
pymc-devs:main
Choose a base branch
from
maresb:autogenerate-pixi-toml
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Autogenerate pixi.toml
#1542
Changes from 19 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
2e00423
Add tomlkit as test dependency
maresb c74f47c
Add generate-pixi-toml script
maresb 038c777
Add temporary workaround for pytest-sphinx not on conda-forge
maresb 67433b2
Generate pixi.toml
maresb a7002ad
Include environment.yml to add compilers
maresb 2d50ee8
Readd BLAS dependencies
maresb 3ae3fe0
Update pixi.toml
maresb b6df989
Improve comment
maresb 0a9d152
Add more postprocessing of pixi.toml
maresb 5701540
Update pixi.toml
maresb 5526786
Comment out non-default environments
maresb 20113ca
Revert "Improve comment"
maresb a3b14c5
Revert "Add temporary workaround for pytest-sphinx not on conda-forge"
maresb 4fc4453
Install pytest-sphinx with conda not pip
maresb 81e1ac1
Improve comments
maresb 7022f41
Regenerate pixi.toml
maresb f4d0f63
Refactor cleanup
maresb fa6fa72
Add --verify-only option
maresb fd224d7
Check pixi consistency
maresb e272f7c
Add pixi.lock
maresb 49023ee
Add comments
maresb 5d46315
Refactor
maresb 67fc58d
Fix doctests
maresb 77249fd
Run diff between original and new pixi.toml on verification failure
maresb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,8 @@ | |
- 'setup.cfg' | ||
- 'requirements.txt' | ||
- '.pre-commit-config.yaml' | ||
- 'pixi.toml' | ||
- 'pixi.lock' | ||
|
||
style: | ||
name: Check code style | ||
|
@@ -63,6 +65,17 @@ | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: pre-commit/[email protected] | ||
# Check that pixi stuff is consistent | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
run-install: false | ||
- name: Check that the pixi.lock is consistent with pixi.toml | ||
run: | | ||
pixi run --no-install --locked echo "All good!" | ||
- name: Check that pixi.toml is consistent with environment.yml and pyproject.toml | ||
run: | | ||
pip install tomlkit | ||
python scripts/generate-pixi-toml.py --verify-only | ||
|
||
test: | ||
name: "${{ matrix.os }} test py${{ matrix.python-version }} numpy${{ matrix.numpy-version }} : fast-compile ${{ matrix.fast-compile }} : float32 ${{ matrix.float32 }} : ${{ matrix.part }}" | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
# THIS FILE WAS GENERATED BY `scripts/generate-pixi-toml.py` | ||
# You can edit this file locally, but if you want to push changes | ||
# upstream to pymc-devs/pytensor, then you should instead modify | ||
# the script. | ||
|
||
[project] | ||
name = "pytensor" | ||
platforms = ["linux-64", "osx-64", "osx-arm64", "win-64"] | ||
channels = ["conda-forge"] | ||
|
||
[dependencies] | ||
cons = "*" | ||
etuples = "*" | ||
filelock = ">=3.15" | ||
logical-unification = "*" | ||
minikanren = "*" | ||
numpy = ">=1.17.0" | ||
scipy = "<2,>=1" | ||
setuptools = ">=59.0.0" | ||
|
||
[pypi-dependencies] | ||
pytensor = {path = ".", editable = true} | ||
|
||
[feature.blas.target.linux-64.dependencies] | ||
libblas = {version = "*", build = "*mkl"} | ||
mkl = "*" | ||
mkl-service = "*" | ||
|
||
[feature.blas.target.osx-64.dependencies] | ||
libblas = {version = "*", build = "*mkl"} | ||
mkl = "*" | ||
mkl-service = "*" | ||
|
||
[feature.blas.target.osx-arm64.dependencies] | ||
libblas = {version = "*", build = "*accelerate"} | ||
|
||
[feature.blas.target.win-64.dependencies] | ||
libblas = {version = "*", build = "*mkl"} | ||
mkl = "*" | ||
mkl-service = "*" | ||
|
||
[feature.conda-dev.dependencies] | ||
compilers = "*" | ||
coveralls = "*" | ||
cython = "*" | ||
diff-cover = "*" | ||
graphviz = "*" | ||
ipython = "*" | ||
matplotlib = "*" | ||
mypy = "*" | ||
myst-nb = "*" | ||
packaging = "*" | ||
pandas = "*" | ||
pydeprecate = "*" | ||
pymc-sphinx-theme = "*" | ||
pytest-xdist = "*" | ||
python = ">=3.10" | ||
ruff = "*" | ||
sphinx-design = "*" | ||
sphinx_rtd_theme = "*" | ||
types-setuptools = "*" | ||
watermark = "*" | ||
|
||
[feature.jax] | ||
platforms = ["linux-64", "osx-64", "osx-arm64"] | ||
|
||
[feature.jax.dependencies] | ||
jax = "*" | ||
jaxlib = "*" | ||
|
||
|
||
[feature.numba.dependencies] | ||
llvmlite = "*" | ||
numba = ">=0.57" | ||
|
||
[feature.rtd.dependencies] | ||
pydot = "*" | ||
pygments = "*" | ||
sphinx = "<6,>=5.1.0" | ||
|
||
[feature.tests.dependencies] | ||
coverage = ">=5.1" | ||
pre-commit = "*" | ||
pytest = "*" | ||
pytest-benchmark = "*" | ||
pytest-cov = ">=2.6.1" | ||
pytest-mock = "*" | ||
pytest-sphinx = "*" | ||
tomlkit = "*" | ||
|
||
|
||
[environments] | ||
default = {features = ["blas", "conda-dev", "jax", "numba", "rtd", "tests"], solve-group = "default"} | ||
|
||
# Disable non-default environments pending <https://github.com/prefix-dev/pixi/issues/2725> | ||
# If you want to re-enable some of these, it's recommended to remove the solve-group key. | ||
# minimal = {features = [], solve-group = "default"} | ||
# blas = {features = ["blas"], solve-group = "default"} | ||
# conda-dev = {features = ["conda-dev"], 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"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This file defines BLAS for pixi.toml generation via | ||
# `scripts/generate-pixi-toml.py`. | ||
|
||
name: pytensor-blas | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
# Use MKL for Linux, Intel macOS, and Windows. | ||
- mkl # [linux] | ||
- mkl-service # [linux] | ||
- libblas=*=*mkl # [linux] | ||
- mkl # [osx64] | ||
- mkl-service # [osx64] | ||
- libblas=*=*mkl # [osx64] | ||
- mkl # [win] | ||
- mkl-service # [win] | ||
- libblas=*=*mkl # [win] | ||
|
||
# Use Accelerate for Apple Silicon. | ||
- libblas=*=*accelerate # [arm64] | ||
|
||
category: blas |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check failure
Code scanning / zizmor
unpinned action reference Error test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should tackle this separately across all the workflows