Skip to content

Commit 0bee083

Browse files
authored
build: break out dev/test dependencies into separate groups (#53)
1 parent 0db64ff commit 0bee083

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

.github/workflows/python-package.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ jobs:
3131
cache: pip
3232
cache-dependency-path: '**/pyproject.yaml'
3333

34-
- name: Install test dependencies
34+
- name: Install dev dependencies
3535
run: |
3636
python -m pip install --upgrade pip
37-
pip install --use-deprecated=legacy-resolver -e .[dev]
37+
pip install --use-deprecated=legacy-resolver '.[dev]'
3838
3939
- name: Lint with Ruff
4040
run: |
@@ -70,7 +70,7 @@ jobs:
7070
- name: Install dependencies
7171
run: |
7272
python -m pip install --upgrade pip
73-
make develop
73+
pip install --use-deprecated=legacy-resolver '.[tests]'
7474
7575
- name: Test with pytest
7676
run: |

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ ${VE_DIR}:
4949
#=> develop: install package in develop mode
5050
.PHONY: develop
5151
develop:
52-
pip install -e ".[dev]"
52+
pip install -e ".[dev,tests]"
5353
pre-commit install
5454

5555
#=> install: install package

pyproject.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,15 @@ dev = [
2727
"ipython ~= 8.4",
2828
"mypy-extensions ~= 1.0",
2929
"pre-commit ~= 3.4",
30-
"pytest-cov ~= 4.1",
31-
"pytest-optional-tests",
32-
"pytest ~= 7.1",
3330
"pyright~=1.1",
3431
"ruff == 0.4.4",
35-
"tox ~= 4.15",
36-
"vcrpy",
32+
]
33+
tests = [
34+
"pytest-cov ~= 4.1",
35+
"pytest-optional-tests",
36+
"pytest ~= 7.1",
37+
"vcrpy",
38+
"tox ~= 4.15",
3739
]
3840
docs = [
3941
"mkdocs",

0 commit comments

Comments
 (0)