Skip to content

Add pixi support #547

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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
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 .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,5 @@ venv.bak/

# Mac
.DS_Store

.pixi
10 changes: 10 additions & 0 deletions docs/contributor_guide/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,13 @@ Here are instructions for two popular environment managers:
pre-commit install
# to trigger manual check use:
# pre-commit run --all-files

* If you are using `pixi <https://pixi.sh>`_, then you can use the following pre-defined tasks:

::

# run pytest
pixi run test

# run pre-commit on all files
pixi run pre-commit
25 changes: 25 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -484,3 +484,28 @@ disable = [
"locally-disabled",
"suppressed-message",
]

[tool.pixi.project]
channels = ["conda-forge", "nodefaults"]
platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"]

[tool.pixi.pypi-dependencies]
python_graphblas = { path = ".", editable = true }

[tool.pixi.environments]
default = { solve-group = "default" }
test-env = { features = ["test"], solve-group = "default" }
dev-env = { features = ["dev"], solve-group = "default" }

[tool.pixi.feature.test-env.tasks]
test = "pytest graphblas"

[tool.pixi.feature.dev.tasks]
post-install = "pre-commit install"
pre-commit = { cmd = [
"pre-commit",
"run",
"--all-files",
], depends-on = [
"post-install",
] }
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy