Skip to content

Commit

Permalink
build: break out dev/test dependencies into separate groups (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson authored Sep 23, 2024
1 parent 0db64ff commit 0bee083
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ jobs:
cache: pip
cache-dependency-path: '**/pyproject.yaml'

- name: Install test dependencies
- name: Install dev dependencies
run: |
python -m pip install --upgrade pip
pip install --use-deprecated=legacy-resolver -e .[dev]
pip install --use-deprecated=legacy-resolver '.[dev]'
- name: Lint with Ruff
run: |
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
make develop
pip install --use-deprecated=legacy-resolver '.[tests]'
- name: Test with pytest
run: |
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ ${VE_DIR}:
#=> develop: install package in develop mode
.PHONY: develop
develop:
pip install -e ".[dev]"
pip install -e ".[dev,tests]"
pre-commit install

#=> install: install package
Expand Down
12 changes: 7 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ dev = [
"ipython ~= 8.4",
"mypy-extensions ~= 1.0",
"pre-commit ~= 3.4",
"pytest-cov ~= 4.1",
"pytest-optional-tests",
"pytest ~= 7.1",
"pyright~=1.1",
"ruff == 0.4.4",
"tox ~= 4.15",
"vcrpy",
]
tests = [
"pytest-cov ~= 4.1",
"pytest-optional-tests",
"pytest ~= 7.1",
"vcrpy",
"tox ~= 4.15",
]
docs = [
"mkdocs",
Expand Down

0 comments on commit 0bee083

Please sign in to comment.