Skip to content

Commit

Permalink
pixi environment setup
Browse files Browse the repository at this point in the history
  • Loading branch information
hameerabbasi committed Sep 24, 2024
1 parent 8317821 commit c25bb55
Show file tree
Hide file tree
Showing 6 changed files with 14,314 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
sparse/_version.py export-subst
# GitHub syntax highlighting
pixi.lock 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 @@ -82,3 +82,6 @@ results/

# Notebooks converted to scripts.
docs/examples_ipynb/

# Pixi envs
.pixi/
1 change: 1 addition & 0 deletions ci/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ channels:
- nodefaults
dependencies:
- python
- pip
- numpy
- numba
- scipy
Expand Down
14,242 changes: 14,242 additions & 0 deletions pixi.lock

Large diffs are not rendered by default.

66 changes: 66 additions & 0 deletions pixi.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
[project]
authors = ["Hameer Abbasi <2190658+hameerabbasi@users.noreply.github.com>"]
channels = ["conda-forge"]
name = "sparse"
platforms = ["osx-arm64", "osx-64", "linux-64", "win-64"]

[pypi-dependencies]
sparse = { path = ".", editable = true }

[dependencies]
python = ">=3.10"
numpy = ">=1.17"
numba = ">=0.49"

[feature.extras.dependencies]
dask = ">=2024"
scipy = ">=0.19"
scikit-learn = "*"

[feature.docs.pypi-dependencies]
mkdocs-material = "*"
mkdocstrings = { version = "*", extras = ["python"] }
mkdocs-gen-files = "*"
mkdocs-literate-nav = "*"
mkdocs-section-index = "*"
mkdocs-jupyter = "*"

[feature.tests.tasks]
test = "pytest --pyargs sparse -n auto"
test-mlir = { cmd = "pytest --pyargs sparse/mlir_backend -vvv", env = { SPARSE_BACKEND = "MLIR" } }
test-finch = { cmd = "pytest --pyargs sparse/tests -n auto", env = { SPARSE_BACKEND = "Finch" }, depends-on = ["precompile"] }

[feature.tests.dependencies]
pytest = ">=3.5"
pytest-cov = "*"
pytest-xdist = "*"
pre-commit = "*"
pytest-codspeed = "*"

[feature.notebooks.dependencies]
nbmake = "*"
matplotlib = "*"

[feature.matrepr.dependencies]
matrepr = "*"

[feature.finch.tasks]
precompile = "python -c 'import finch'"

[feature.finch.pypi-dependencies]
scipy = ">=0.19"
finch-tensor = ">=0.1.31"

[feature.mlir]
channel-priority = "disabled"
channels = ["conda-forge", "conda-forge/label/llvm_rc"]

[feature.mlir.dependencies]
scipy = ">=0.19"
mlir-python-bindings = "19.*"

[environments]
tests = ["tests", "extras"]
docs = ["docs", "extras"]
mlir-dev = ["tests", "mlir"]
finch-dev = ["tests", "finch"]
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ classifiers = [
[project.optional-dependencies]
docs = [
"mkdocs-material",
"mkdocstrings",
"mkdocstrings[python]",
"mkdocs-gen-files",
"mkdocs-literate-nav",
Expand Down

0 comments on commit c25bb55

Please sign in to comment.