Skip to content

Commit 29ac244

Browse files
Move test and docs dependencies to dependency groups (#124)
1 parent 5ddf349 commit 29ac244

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ jobs:
4646
environment-file: environment-dev.yml
4747
environment-name: pycrdt-websocket
4848
extra-specs: python=${{ matrix.python-version }}
49+
- name: Ensure pip >= v25.1
50+
run: python -m pip install "pip >= 25.1"
4951
- name: Install dependencies
5052
run: |
51-
pip install ".[test]"
53+
pip install --group test .
5254
cd tests; npm install
5355
- name: Check types
5456
run: |

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ dependencies = [
3434
]
3535

3636
[project.optional-dependencies]
37+
django = [
38+
"channels",
39+
]
40+
41+
[dependency-groups]
3742
test = [
3843
"mypy !=1.10.0,!=1.10.1", # see https://github.com/python/mypy/issues/17166
3944
"pre-commit",
@@ -49,9 +54,6 @@ docs = [
4954
"mkdocs-material",
5055
"mkdocstrings-python",
5156
]
52-
django = [
53-
"channels",
54-
]
5557

5658
[project.urls]
5759
Homepage = "https://github.com/y-crdt/pycrdt-websocket"

0 commit comments

Comments
 (0)