-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bash script to compile requirements
1 parent
4156b25
commit ed7ab7d
Showing
9 changed files
with
612 additions
and
627 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/bash | ||
|
||
CWD="$PWD" | ||
TMPDIR=$(mktemp -d); trap 'rm -rf ${TMPDIR}' 0 | ||
|
||
declare -a COMBINATIONS | ||
|
||
COMBINATIONS[0]='3.9;1.6' | ||
COMBINATIONS[1]='3.10;1.6' | ||
COMBINATIONS[2]='3.11;1.6' | ||
COMBINATIONS[3]='3.12;1.4' | ||
COMBINATIONS[4]='3.12;1.5' | ||
COMBINATIONS[5]='3.12;1.6' | ||
|
||
set -eu | ||
|
||
( | ||
cp -r .. "${TMPDIR}/skore" | ||
cp ../../LICENSE "${TMPDIR}/LICENSE" | ||
cp ../../README.md "${TMPDIR}/README.md" | ||
|
||
cd "${TMPDIR}" | ||
|
||
for combination in "${COMBINATIONS[@]}" | ||
do | ||
IFS=";" read -r -a combination <<< "${combination}" | ||
|
||
python="${combination[0]}" | ||
scikit_learn="${combination[1]}" | ||
filepath="${CWD}/requirements/python-${python}-scikit-learn-${scikit_learn}-test-requirements.txt" | ||
|
||
sed -i "s/scikit-learn.*/scikit-learn==${scikit_learn}.*/g" skore/test-requirements.in | ||
|
||
pyenv local "${python}" | ||
python -m venv "python-${python}" | ||
source "python-${python}/bin/activate" | ||
|
||
echo "Generating requirements: python ==${python} | scikit-learn ==${scikit_learn}" | ||
|
||
python -m pip install pip pip-tools --quiet | ||
python -m piptools compile \ | ||
--quiet \ | ||
--no-strip-extras \ | ||
--no-header \ | ||
--extra=test \ | ||
--output-file="${filepath}" \ | ||
"${@:2}" \ | ||
skore/pyproject.toml | ||
done | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
241 changes: 0 additions & 241 deletions
241
skore/ci/requirements/python-3.10/scikit-learn-1.6-test-requirements.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
225 changes: 225 additions & 0 deletions
225
skore/ci/requirements/python-3.12-scikit-learn-1.6-test-requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,225 @@ | ||
altair==5.5.0 | ||
# via skore (skore/pyproject.toml) | ||
annotated-types==0.7.0 | ||
# via pydantic | ||
anyio==4.8.0 | ||
# via | ||
# httpx | ||
# starlette | ||
attrs==25.1.0 | ||
# via | ||
# jsonschema | ||
# referencing | ||
certifi==2024.12.14 | ||
# via | ||
# httpcore | ||
# httpx | ||
# requests | ||
cfgv==3.4.0 | ||
# via pre-commit | ||
charset-normalizer==3.4.1 | ||
# via requests | ||
click==8.1.8 | ||
# via uvicorn | ||
contourpy==1.3.1 | ||
# via matplotlib | ||
coverage[toml]==7.6.10 | ||
# via pytest-cov | ||
cycler==0.12.1 | ||
# via matplotlib | ||
diskcache==5.6.3 | ||
# via skore (skore/pyproject.toml) | ||
distlib==0.3.9 | ||
# via virtualenv | ||
execnet==2.1.1 | ||
# via pytest-xdist | ||
fastapi==0.115.7 | ||
# via skore (skore/pyproject.toml) | ||
filelock==3.17.0 | ||
# via | ||
# huggingface-hub | ||
# virtualenv | ||
fonttools==4.55.8 | ||
# via matplotlib | ||
fsspec==2024.12.0 | ||
# via huggingface-hub | ||
h11==0.14.0 | ||
# via | ||
# httpcore | ||
# uvicorn | ||
httpcore==1.0.7 | ||
# via httpx | ||
httpx==0.28.1 | ||
# via skore (skore/pyproject.toml) | ||
huggingface-hub==0.28.0 | ||
# via skops | ||
identify==2.6.6 | ||
# via pre-commit | ||
idna==3.10 | ||
# via | ||
# anyio | ||
# httpx | ||
# requests | ||
iniconfig==2.0.0 | ||
# via pytest | ||
jinja2==3.1.5 | ||
# via | ||
# altair | ||
# skrub | ||
joblib==1.4.2 | ||
# via | ||
# scikit-learn | ||
# skore (skore/pyproject.toml) | ||
jsonschema==4.23.0 | ||
# via altair | ||
jsonschema-specifications==2024.10.1 | ||
# via jsonschema | ||
kiwisolver==1.4.8 | ||
# via matplotlib | ||
markdown-it-py==3.0.0 | ||
# via rich | ||
markupsafe==3.0.2 | ||
# via jinja2 | ||
matplotlib==3.10.0 | ||
# via | ||
# skore (skore/pyproject.toml) | ||
# skrub | ||
mdurl==0.1.2 | ||
# via markdown-it-py | ||
narwhals==1.24.1 | ||
# via altair | ||
nodeenv==1.9.1 | ||
# via pre-commit | ||
numpy==2.2.2 | ||
# via | ||
# contourpy | ||
# matplotlib | ||
# pandas | ||
# scikit-learn | ||
# scipy | ||
# skore (skore/pyproject.toml) | ||
# skrub | ||
orjson==3.10.15 | ||
# via skore (skore/pyproject.toml) | ||
packaging==24.2 | ||
# via | ||
# altair | ||
# huggingface-hub | ||
# matplotlib | ||
# plotly | ||
# pytest | ||
# skops | ||
# skrub | ||
pandas==2.2.3 | ||
# via | ||
# skore (skore/pyproject.toml) | ||
# skrub | ||
pillow==11.1.0 | ||
# via | ||
# matplotlib | ||
# skore (skore/pyproject.toml) | ||
platformdirs==4.3.6 | ||
# via virtualenv | ||
plotly==5.24.1 | ||
# via skore (skore/pyproject.toml) | ||
pluggy==1.5.0 | ||
# via pytest | ||
polars==1.21.0 | ||
# via skore (skore/pyproject.toml) | ||
pre-commit==4.1.0 | ||
# via skore (skore/pyproject.toml) | ||
pyarrow==19.0.0 | ||
# via skore (skore/pyproject.toml) | ||
pydantic==2.10.6 | ||
# via fastapi | ||
pydantic-core==2.27.2 | ||
# via pydantic | ||
pygments==2.19.1 | ||
# via rich | ||
pyparsing==3.2.1 | ||
# via matplotlib | ||
pytest==8.3.4 | ||
# via | ||
# pytest-cov | ||
# pytest-order | ||
# pytest-randomly | ||
# pytest-xdist | ||
# skore (skore/pyproject.toml) | ||
pytest-cov==6.0.0 | ||
# via skore (skore/pyproject.toml) | ||
pytest-order==1.3.0 | ||
# via skore (skore/pyproject.toml) | ||
pytest-randomly==3.16.0 | ||
# via skore (skore/pyproject.toml) | ||
pytest-xdist==3.6.1 | ||
# via skore (skore/pyproject.toml) | ||
python-dateutil==2.9.0.post0 | ||
# via | ||
# matplotlib | ||
# pandas | ||
pytz==2024.2 | ||
# via pandas | ||
pyyaml==6.0.2 | ||
# via | ||
# huggingface-hub | ||
# pre-commit | ||
referencing==0.36.2 | ||
# via | ||
# jsonschema | ||
# jsonschema-specifications | ||
requests==2.32.3 | ||
# via | ||
# huggingface-hub | ||
# skrub | ||
rich==13.9.4 | ||
# via skore (skore/pyproject.toml) | ||
rpds-py==0.22.3 | ||
# via | ||
# jsonschema | ||
# referencing | ||
ruff==0.9.3 | ||
# via skore (skore/pyproject.toml) | ||
scikit-learn==1.6.1 | ||
# via | ||
# skops | ||
# skore (skore/pyproject.toml) | ||
# skrub | ||
scipy==1.15.1 | ||
# via | ||
# scikit-learn | ||
# skrub | ||
six==1.17.0 | ||
# via python-dateutil | ||
skops==0.11.0 | ||
# via skore (skore/pyproject.toml) | ||
skrub==0.5.1 | ||
# via skore (skore/pyproject.toml) | ||
sniffio==1.3.1 | ||
# via anyio | ||
starlette==0.45.3 | ||
# via fastapi | ||
tabulate==0.9.0 | ||
# via skops | ||
tenacity==9.0.0 | ||
# via plotly | ||
threadpoolctl==3.5.0 | ||
# via scikit-learn | ||
tqdm==4.67.1 | ||
# via huggingface-hub | ||
typing-extensions==4.12.2 | ||
# via | ||
# altair | ||
# anyio | ||
# fastapi | ||
# huggingface-hub | ||
# pydantic | ||
# pydantic-core | ||
# referencing | ||
tzdata==2025.1 | ||
# via pandas | ||
urllib3==2.3.0 | ||
# via requests | ||
uvicorn==0.34.0 | ||
# via skore (skore/pyproject.toml) | ||
virtualenv==20.29.1 | ||
# via pre-commit |
225 changes: 225 additions & 0 deletions
225
skore/ci/requirements/python-3.9-scikit-learn-1.6-test-requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,225 @@ | ||
altair==5.5.0 | ||
# via skore (skore/pyproject.toml) | ||
annotated-types==0.7.0 | ||
# via pydantic | ||
anyio==4.8.0 | ||
# via | ||
# httpx | ||
# starlette | ||
attrs==25.1.0 | ||
# via | ||
# jsonschema | ||
# referencing | ||
certifi==2024.12.14 | ||
# via | ||
# httpcore | ||
# httpx | ||
# requests | ||
cfgv==3.4.0 | ||
# via pre-commit | ||
charset-normalizer==3.4.1 | ||
# via requests | ||
click==8.1.8 | ||
# via uvicorn | ||
contourpy==1.3.1 | ||
# via matplotlib | ||
coverage[toml]==7.6.10 | ||
# via pytest-cov | ||
cycler==0.12.1 | ||
# via matplotlib | ||
diskcache==5.6.3 | ||
# via skore (skore/pyproject.toml) | ||
distlib==0.3.9 | ||
# via virtualenv | ||
execnet==2.1.1 | ||
# via pytest-xdist | ||
fastapi==0.115.7 | ||
# via skore (skore/pyproject.toml) | ||
filelock==3.17.0 | ||
# via | ||
# huggingface-hub | ||
# virtualenv | ||
fonttools==4.55.8 | ||
# via matplotlib | ||
fsspec==2024.12.0 | ||
# via huggingface-hub | ||
h11==0.14.0 | ||
# via | ||
# httpcore | ||
# uvicorn | ||
httpcore==1.0.7 | ||
# via httpx | ||
httpx==0.28.1 | ||
# via skore (skore/pyproject.toml) | ||
huggingface-hub==0.28.0 | ||
# via skops | ||
identify==2.6.6 | ||
# via pre-commit | ||
idna==3.10 | ||
# via | ||
# anyio | ||
# httpx | ||
# requests | ||
iniconfig==2.0.0 | ||
# via pytest | ||
jinja2==3.1.5 | ||
# via | ||
# altair | ||
# skrub | ||
joblib==1.4.2 | ||
# via | ||
# scikit-learn | ||
# skore (skore/pyproject.toml) | ||
jsonschema==4.23.0 | ||
# via altair | ||
jsonschema-specifications==2024.10.1 | ||
# via jsonschema | ||
kiwisolver==1.4.8 | ||
# via matplotlib | ||
markdown-it-py==3.0.0 | ||
# via rich | ||
markupsafe==3.0.2 | ||
# via jinja2 | ||
matplotlib==3.10.0 | ||
# via | ||
# skore (skore/pyproject.toml) | ||
# skrub | ||
mdurl==0.1.2 | ||
# via markdown-it-py | ||
narwhals==1.24.1 | ||
# via altair | ||
nodeenv==1.9.1 | ||
# via pre-commit | ||
numpy==2.2.2 | ||
# via | ||
# contourpy | ||
# matplotlib | ||
# pandas | ||
# scikit-learn | ||
# scipy | ||
# skore (skore/pyproject.toml) | ||
# skrub | ||
orjson==3.10.15 | ||
# via skore (skore/pyproject.toml) | ||
packaging==24.2 | ||
# via | ||
# altair | ||
# huggingface-hub | ||
# matplotlib | ||
# plotly | ||
# pytest | ||
# skops | ||
# skrub | ||
pandas==2.2.3 | ||
# via | ||
# skore (skore/pyproject.toml) | ||
# skrub | ||
pillow==11.1.0 | ||
# via | ||
# matplotlib | ||
# skore (skore/pyproject.toml) | ||
platformdirs==4.3.6 | ||
# via virtualenv | ||
plotly==5.24.1 | ||
# via skore (skore/pyproject.toml) | ||
pluggy==1.5.0 | ||
# via pytest | ||
polars==1.21.0 | ||
# via skore (skore/pyproject.toml) | ||
pre-commit==4.1.0 | ||
# via skore (skore/pyproject.toml) | ||
pyarrow==19.0.0 | ||
# via skore (skore/pyproject.toml) | ||
pydantic==2.10.6 | ||
# via fastapi | ||
pydantic-core==2.27.2 | ||
# via pydantic | ||
pygments==2.19.1 | ||
# via rich | ||
pyparsing==3.2.1 | ||
# via matplotlib | ||
pytest==8.3.4 | ||
# via | ||
# pytest-cov | ||
# pytest-order | ||
# pytest-randomly | ||
# pytest-xdist | ||
# skore (skore/pyproject.toml) | ||
pytest-cov==6.0.0 | ||
# via skore (skore/pyproject.toml) | ||
pytest-order==1.3.0 | ||
# via skore (skore/pyproject.toml) | ||
pytest-randomly==3.16.0 | ||
# via skore (skore/pyproject.toml) | ||
pytest-xdist==3.6.1 | ||
# via skore (skore/pyproject.toml) | ||
python-dateutil==2.9.0.post0 | ||
# via | ||
# matplotlib | ||
# pandas | ||
pytz==2024.2 | ||
# via pandas | ||
pyyaml==6.0.2 | ||
# via | ||
# huggingface-hub | ||
# pre-commit | ||
referencing==0.36.2 | ||
# via | ||
# jsonschema | ||
# jsonschema-specifications | ||
requests==2.32.3 | ||
# via | ||
# huggingface-hub | ||
# skrub | ||
rich==13.9.4 | ||
# via skore (skore/pyproject.toml) | ||
rpds-py==0.22.3 | ||
# via | ||
# jsonschema | ||
# referencing | ||
ruff==0.9.3 | ||
# via skore (skore/pyproject.toml) | ||
scikit-learn==1.6.1 | ||
# via | ||
# skops | ||
# skore (skore/pyproject.toml) | ||
# skrub | ||
scipy==1.15.1 | ||
# via | ||
# scikit-learn | ||
# skrub | ||
six==1.17.0 | ||
# via python-dateutil | ||
skops==0.11.0 | ||
# via skore (skore/pyproject.toml) | ||
skrub==0.5.1 | ||
# via skore (skore/pyproject.toml) | ||
sniffio==1.3.1 | ||
# via anyio | ||
starlette==0.45.3 | ||
# via fastapi | ||
tabulate==0.9.0 | ||
# via skops | ||
tenacity==9.0.0 | ||
# via plotly | ||
threadpoolctl==3.5.0 | ||
# via scikit-learn | ||
tqdm==4.67.1 | ||
# via huggingface-hub | ||
typing-extensions==4.12.2 | ||
# via | ||
# altair | ||
# anyio | ||
# fastapi | ||
# huggingface-hub | ||
# pydantic | ||
# pydantic-core | ||
# referencing | ||
tzdata==2025.1 | ||
# via pandas | ||
urllib3==2.3.0 | ||
# via requests | ||
uvicorn==0.34.0 | ||
# via skore (skore/pyproject.toml) | ||
virtualenv==20.29.1 | ||
# via pre-commit |
250 changes: 0 additions & 250 deletions
250
skore/ci/requirements/python-3.9/scikit-learn-1.6-test-requirements.txt
This file was deleted.
Oops, something went wrong.