From f9018508bc5e45f59af13620dae81794c51d2d17 Mon Sep 17 00:00:00 2001 From: Daniel Pressler Date: Mon, 26 Jan 2026 10:39:42 -0700 Subject: [PATCH] Move dev & examples to dependency-groups --- .github/workflows/test.yml | 6 ++++-- .gitlab-ci.yml | 8 ++++++-- pyproject.toml | 4 ++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7844681..e43aff7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,9 @@ jobs: - name: checkout uses: actions/checkout@v6 - name: install dependencies - run: python -m pip install .[dev] + run: | + python -m pip install --upgrade pip + python -m pip install --group dev . - name: lint run: make lint @@ -37,6 +39,6 @@ jobs: - name: install run: | python -m pip install --upgrade pip - python -m pip install .[dev] + python -m pip install --group dev . - name: run tests run: make test diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index acb4b99..9a2f90e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,10 +5,14 @@ stages: image: python:3.11 +default: + before_script: + - python -m pip install --upgrade pip + lint: stage: build script: - - pip install .[dev] + - python -m pip install --group dev . - make lint build_wheel: @@ -29,5 +33,5 @@ test: echo ${wheels[*]} [ ${#wheels[*]} -eq 1 ] # make sure there is only one wheel_file=${wheels[0]} - python -m pip install ${wheel_file}[dev] + python -m pip install --group dev ${wheel_file} make test diff --git a/pyproject.toml b/pyproject.toml index 8801306..bc58abd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,7 +46,7 @@ classifiers = [ dependencies = [ ] -[project.optional-dependencies] +[dependency-groups] dev = [ "aiohttp", "mypy", @@ -54,7 +54,7 @@ dev = [ "pytest", "smart_open[http]", "numpy", - "jbpy[examples]", + {include-group = "examples"}, ] # Dependencies needed to run the examples