Skip to content

Commit b05d7c9

Browse files
committed
Added basic pixi support to pyproject.toml
1 parent 4eb9004 commit b05d7c9

File tree

4 files changed

+57
-10
lines changed

4 files changed

+57
-10
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ docs/_build
2222
.directory
2323
test.py
2424
*.nbconvert.ipynb
25+
.pixi
26+
pixi.lock

doctest.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

pyproject.toml

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,62 @@ ci = [
5353
"pytest >= 4.4.1",
5454
"isort >= 5.11.0",
5555
'tbb >= 2019.5 ; platform_system == "Linux"',
56-
"polars >= 1.14.0"
56+
"polars >= 1.14.0",
57+
"lxml"
5758
]
5859

5960
[project.urls]
6061
Homepage = "https://github.com/stumpy-dev/stumpy"
6162
Documentation = "https://stumpy.readthedocs.io/en/latest/"
6263
Repository = "https://github.com/stumpy-dev/stumpy"
6364

65+
[tool.pixi.project]
66+
channels = ["conda-forge"]
67+
platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"]
68+
69+
[tool.pixi.dependencies]
70+
# All Conda dependencies.
71+
# Ignores PyPI [dependencies] and [project.optional-dependencies] above
72+
python = "==3.10"
73+
numpy = ">=1.24"
74+
scipy = ">=1.10"
75+
numba = ">=0.61.2"
76+
# ci
77+
pandas = ">=0.20.0"
78+
dask = ">=1.2.2"
79+
distributed =">=1.28.1"
80+
coverage = ">=4.5.3"
81+
flake8 = ">=3.7.7"
82+
flake8-docstrings = ">=1.5.0"
83+
black = ">=22.1.0"
84+
pytest = ">=4.4.1"
85+
isort = ">=5.11.0"
86+
polars = ">=1.14.0"
87+
pip = "*"
88+
lxml = "*"
89+
fftw = "*"
90+
pyfftw = "*"
91+
# readthedocs
92+
sphinx = ">=3.5.3"
93+
pydata-sphinx-theme = "*"
94+
jupyterlab = "*"
95+
matplotlib = "*"
96+
scikit-learn = "*"
97+
numpydoc = "*"
98+
myst-nb = "*"
99+
jupyterlab-myst = "*"
100+
sphinx-togglebutton = "*"
101+
102+
[tool.pixi.activation]
103+
# Always execute ./setup.sh when activating the default environment
104+
scripts = ["setup.sh"]
105+
106+
[tool.pixi.target.linux-64.dependencies]
107+
# Conda dependencies specific to linux-64
108+
tbb = ">=2019.5"
109+
110+
[tool.pixi.tasks]
111+
# Note that ./setup.sh is executed during [tool.pixi.activation] above
112+
tests = "./test.sh"
113+
coverage = "./test.sh coverage"
114+
docs = "cd docs && ./setup.sh"

test.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ check_errs()
5454
check_black()
5555
{
5656
echo "Checking Black Code Formatting"
57-
black --check --exclude=".*\.ipynb" --extend-exclude=".venv" --diff ./
57+
black --check --exclude=".*\.ipynb" --extend-exclude=".venv" --extend-exclude=".pixi" --diff ./
5858
check_errs $?
5959
}
6060

6161
check_isort()
6262
{
6363
echo "Checking iSort Import Formatting"
64-
isort --profile black --skip .venv --check-only ./
64+
isort --profile black --skip .venv --skip .pixi --check-only ./
6565
check_errs $?
6666
}
6767

@@ -75,7 +75,7 @@ check_docstrings()
7575
check_flake()
7676
{
7777
echo "Checking Flake8 Style Guide Enforcement"
78-
flake8 --extend-exclude=.venv ./
78+
flake8 --extend-exclude=.venv --extend-exclude=.pixi ./
7979
check_errs $?
8080
}
8181

0 commit comments

Comments
 (0)