11[project ]
22name = " fastcan"
33version = " 0.4.1"
4- description = " A fast canonical-correlation-based feature selection method "
4+ description = " A fast canonical-correlation-based greedy search algorithm "
55authors = [
66 {
name =
" Matthew Sikai Zhang" ,
email =
" [email protected] " },
77]
@@ -59,7 +59,7 @@ channels = ["conda-forge"]
5959platforms = [" win-64" , " linux-64" , " osx-64" , " osx-arm64" , " linux-aarch64" ]
6060
6161[tool .pixi .dependencies ]
62- python = " >=3.12.0,<3.13 "
62+ python = " >=3.10 "
6363scikit-learn = " >=1.7.0,!=1.7.1"
6464
6565[tool .pixi .pypi-dependencies ]
@@ -81,6 +81,7 @@ plantuml = "*"
8181[tool .pixi .feature .wasm .dependencies ]
8282pip = " *"
8383pyodide-build = " *"
84+ prettier = " *"
8485
8586[tool .pixi .feature .asv .dependencies ]
8687asv = " *"
@@ -156,19 +157,23 @@ spell = "codespell"
156157
157158[tool .pixi .feature .docs .tasks ]
158159doc = { cmd = " {{ SPHINXBUILD }} -M {{ CMD }} {{ SOURCEDIR }} {{ BUILDDIR }} {{ SPHINXOPTS }} --fail-on-warning" , cwd = " doc" , args = [{ arg = " SPHINXBUILD" , default = " sphinx-build" }, { arg = " CMD" , default = " html" }, { arg = " SOURCEDIR" , default = " ." }, { arg = " BUILDDIR" , default = " _build" }, { arg = " SPHINXOPTS" , default = " " }] }
159- doc-clean = { cmd = " rm -rf {{ BUILDDIR }} generated auto_examples jupyterlite_contents .jupyterlite.doit.db _contents" , cwd = " doc" , args = [{ arg = " BUILDDIR" , default = " _build" }] }
160+ doc-clean = { cmd = " rm -rf {{ BUILDDIR }} generated auto_examples jupyterlite_contents .jupyterlite.doit.db _contents _output .cache " , cwd = " doc" , args = [{ arg = " BUILDDIR" , default = " _build" }] }
160161doc-deploy = { cmd = " python -m http.server" , cwd = " doc/_build/html" }
161162
162163[tool .pixi .feature .nogil .tasks ]
163164nogil-h = " python -Xgil=0 -m timeit -n 5 -s 'import numpy as np; from fastcan import FastCan; X = np.random.rand(3000, 100); y = np.random.rand(3000, 20)' 's = FastCan(100, verbose=0).fit(X, y)'"
164165nogil-eta = " python -Xgil=0 -m timeit -n 5 -s 'import numpy as np; from fastcan import FastCan; X = np.random.rand(3000, 100); y = np.random.rand(3000, 20)' 's = FastCan(100, eta=True, verbose=0).fit(X, y)'"
165166
166167[tool .pixi .feature .wasm .tasks ]
167- wasm-clone-emsdk = " bash -c '[ -d emsdk ] || git clone https://github.com/emscripten-core/emsdk.git emsdk'"
168- wasm-compatible = " pyodide xbuildenv search -a"
169- wasm-toolchain = { cmd = " LATEST_COMPATIBLE=$(pyodide xbuildenv search -a | grep '│ Yes' | head -n 1 | awk -F '│' '{print $2}' | xargs) && pyodide xbuildenv install $LATEST_COMPATIBLE" }
170- wasm-setup-emsdk = { cmd = " PYODIDE_EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version) && ./emsdk install $PYODIDE_EMSCRIPTEN_VERSION && ./emsdk activate $PYODIDE_EMSCRIPTEN_VERSION" , cwd = " emsdk" , depends-on = [" wasm-clone-emsdk" , " wasm-toolchain" ] }
171- wasm-build = { cmd = " bash -c 'source emsdk/emsdk_env.sh && pyodide build'" , depends-on = [" wasm-setup-emsdk" ] }
168+ emsdk-clone = " bash -c '[ -d emsdk ] || git clone https://github.com/emscripten-core/emsdk.git emsdk'"
169+ pyodide-compatible = " pyodide xbuildenv search -a"
170+ pyodide-toolchain = { cmd = " LATEST_COMPATIBLE=$(pyodide xbuildenv search -a | grep '│ Yes' | head -n 1 | awk -F '│' '{print $2}' | xargs) && pyodide xbuildenv install $LATEST_COMPATIBLE" }
171+ emsdk-setup = { cmd = " PYODIDE_EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version) && ./emsdk install $PYODIDE_EMSCRIPTEN_VERSION && ./emsdk activate $PYODIDE_EMSCRIPTEN_VERSION" , cwd = " emsdk" , depends-on = [" emsdk-clone" , " pyodide-toolchain" ] }
172+ pyodide-build = { cmd = " bash -c 'source emsdk/emsdk_env.sh && pyodide build'" , depends-on = [" emsdk-setup" ] }
173+ pyodide-create-recipe = " rm -rf packages && pyodide skeleton pypi fastcan"
174+ pyodide-build-recipe = { cmd = " rm -rf dist && bash -c 'source emsdk/emsdk_env.sh && pyodide build-recipes fastcan --install'" , depends-on = [" emsdk-setup" ] }
175+ pyodide-download = ''' bash -c "[ -d pyodide ] || (LATEST_TAG=$(curl -s https://api.github.com/repos/pyodide/pyodide/releases/latest | grep \"tag_name\" | cut -d \" -f4) && curl -L https://github.com/pyodide/pyodide/releases/download/${LATEST_TAG}/pyodide-${LATEST_TAG}.tar.bz2 | tar -xjf -)"'''
176+ pyodide-test-recipe = { cmd = " mv ../dist/* . && python -m http.server --directory ." , cwd = " pyodide" , depends-on = [" pyodide-download" , " pyodide-build-recipe" ] }
172177
173178[tool .pixi .environments ]
174179dev = [" docs" , " test" , " build" , " jupyter" , " asv" ]
0 commit comments