From e417a953f879fb5b20095f04ab692616d4bf9e9e Mon Sep 17 00:00:00 2001 From: Sultan Orazbayev Date: Mon, 7 Oct 2024 04:46:43 -0400 Subject: [PATCH 1/6] Add pixi support --- pyproject.toml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index a3447b751..77a78b184 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", +] } From efdc8a34834422ea3c4f9d513f2484986c1c5a02 Mon Sep 17 00:00:00 2001 From: Sultan Orazbayev Date: Mon, 7 Oct 2024 04:49:25 -0400 Subject: [PATCH 2/6] Update .gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 07e76ee4d..d283596c3 100644 --- a/.gitignore +++ b/.gitignore @@ -115,3 +115,5 @@ venv.bak/ # Mac .DS_Store + +.pixi From ddff8d9c35d4af5cdafa1b54f567da8ddd040c12 Mon Sep 17 00:00:00 2001 From: Sultan Orazbayev Date: Mon, 7 Oct 2024 04:52:24 -0400 Subject: [PATCH 3/6] Update index.rst --- docs/contributor_guide/index.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/contributor_guide/index.rst b/docs/contributor_guide/index.rst index 3b94f2f35..4ae4ff002 100644 --- a/docs/contributor_guide/index.rst +++ b/docs/contributor_guide/index.rst @@ -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 followings pre-defined tasks: + +:: + + # run pytest + pixi run test + + # run pre-commit on all files + pixi run pre-commit From bc4f894015d0b39bc7bb380143b559e27bdea859 Mon Sep 17 00:00:00 2001 From: Sultan Orazbayev Date: Mon, 7 Oct 2024 04:57:46 -0400 Subject: [PATCH 4/6] typo --- docs/contributor_guide/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/contributor_guide/index.rst b/docs/contributor_guide/index.rst index 4ae4ff002..45ccf7f1c 100644 --- a/docs/contributor_guide/index.rst +++ b/docs/contributor_guide/index.rst @@ -74,7 +74,7 @@ Here are instructions for two popular environment managers: # to trigger manual check use: # pre-commit run --all-files -* If you are using [`pixi`](https://pixi.sh), then you can use the followings pre-defined tasks: +* If you are using [`pixi`](https://pixi.sh), then you can use the following pre-defined tasks: :: From a79f18c7b63fc63db49fae88cca028a1d3ffec20 Mon Sep 17 00:00:00 2001 From: Sultan Orazbayev Date: Mon, 7 Oct 2024 05:03:47 -0400 Subject: [PATCH 5/6] Update index.rst --- docs/contributor_guide/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/contributor_guide/index.rst b/docs/contributor_guide/index.rst index 45ccf7f1c..d77320b6d 100644 --- a/docs/contributor_guide/index.rst +++ b/docs/contributor_guide/index.rst @@ -74,7 +74,7 @@ Here are instructions for two popular environment managers: # 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: +* If you are using `pixi`_, then you can use the following pre-defined tasks: :: From ecfc8e50f1362471746d2b94ce80b0c1e6f56121 Mon Sep 17 00:00:00 2001 From: Sultan Orazbayev Date: Mon, 7 Oct 2024 05:06:25 -0400 Subject: [PATCH 6/6] Update index.rst --- docs/contributor_guide/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/contributor_guide/index.rst b/docs/contributor_guide/index.rst index d77320b6d..660e3a656 100644 --- a/docs/contributor_guide/index.rst +++ b/docs/contributor_guide/index.rst @@ -74,7 +74,7 @@ Here are instructions for two popular environment managers: # to trigger manual check use: # pre-commit run --all-files -* If you are using `pixi`_, then you can use the following pre-defined tasks: +* If you are using `pixi `_, then you can use the following pre-defined tasks: :: 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