Skip to content

Commit 4a904a7

Browse files
deps: Rename 'extra' dependency group to 'sklearn' (#3696)
* deps: Rename 'extra' to 'sklearn' * rm in line comment --------- Co-authored-by: Dan Redding <125183946+dangotbanned@users.noreply.github.com>
1 parent 71a0204 commit 4a904a7

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/pytest-pyspark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393

9494
- name: install-reqs
9595
# temporary pin to get CI green
96-
run: uv pip install -e ".[pandas]" --group core-tests --group extra "pyarrow<22.0"
96+
run: uv pip install -e ".[pandas]" --group core-tests --group sklearn "pyarrow<22.0"
9797
- name: install pyspark
9898
run: uv pip install -e . "pyspark[connect]==${SPARK_VERSION}" "setuptools<78"
9999
- name: show-deps

.github/workflows/pytest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
# we are not testing pyspark, modin, or dask on Windows here because nobody got time for that
5454
- name: Run pytest
5555
shell: bash
56-
run: make run-ci DEPS="--group core-tests --group extra --group plugins --extra pandas" CMD="pytest tests --cov=src --cov=tests --runslow --cov-fail-under=95 --durations=30 --constructors=pandas,pandas[nullable],pandas[pyarrow],pyarrow,polars[eager],polars[lazy],duckdb,sqlframe"
56+
run: make run-ci DEPS="--group core-tests --group sklearn --group plugins --extra pandas" CMD="pytest tests --cov=src --cov=tests --runslow --cov-fail-under=95 --durations=30 --constructors=pandas,pandas[nullable],pandas[pyarrow],pyarrow,polars[eager],polars[lazy],duckdb,sqlframe"
5757

5858
pytest-full-coverage:
5959
if: github.head_ref != 'bump-version'
@@ -77,11 +77,11 @@ jobs:
7777
cache-suffix: pytest-full-coverage-${{ matrix.python-version }}
7878
cache-dependency-glob: "pyproject.toml"
7979
- name: Run pytest
80-
run: make run-ci DEPS="--extra pandas --extra dask --group core-tests --group extra --group plugins" CMD="pytest tests --cov=src --cov=tests --cov-fail-under=100 --runslow --durations=30 --constructors=pandas,pandas[nullable],pandas[pyarrow],pyarrow,polars[eager],polars[lazy],dask,duckdb,sqlframe"
80+
run: make run-ci DEPS="--extra pandas --extra dask --group core-tests --group sklearn --group plugins" CMD="pytest tests --cov=src --cov=tests --cov-fail-under=100 --runslow --durations=30 --constructors=pandas,pandas[nullable],pandas[pyarrow],pyarrow,polars[eager],polars[lazy],dask,duckdb,sqlframe"
8181
- name: Run doctests
8282
# reprs differ between versions, so we only run doctests on the latest Python
8383
if: matrix.python-version == '3.13'
84-
run: make run-ci DEPS="--extra pandas --extra dask --group core-tests --group extra" CMD="pytest src --doctest-modules"
84+
run: make run-ci DEPS="--extra pandas --extra dask --group core-tests --group sklearn" CMD="pytest src --doctest-modules"
8585

8686
# Test against smaller dependency set, used e.g. on Gentoo.
8787
pytest-narrower-dependencies:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ tests = [
8686
# CI jobs that measure `tests/` coverage add `--group plugins` explicitly.
8787
# See https://github.com/narwhals-dev/narwhals/pull/3664 and https://github.com/narwhals-dev/narwhals/pull/3665
8888

89-
extra = [ # heavier dependencies we don't necessarily need in every testing job
89+
sklearn = [
9090
"scikit-learn",
9191
]
9292
typing = [ # keep some of these pinned and bump periodically so there's fewer surprises for contributors

0 commit comments

Comments
 (0)