Skip to content

Commit 2b1701e

Browse files
committed
Add test and doc requirements to pyproject
1 parent efa6376 commit 2b1701e

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,13 @@ jobs:
2828
with:
2929
python-version: ${{ matrix.python-version }}
3030

31-
- name: Install Python dependencies
31+
- name: Upgrade pip
3232
run: |
3333
python -m pip install --upgrade pip
34-
python -m pip install --upgrade pytest pytest-cov pytest-xdist
3534
3635
- name: Install cycler
3736
run: |
38-
python -m pip install --no-deps .
37+
python -m pip install .[tests]
3938
4039
- name: Run pytest
4140
run: |

pyproject.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@ keywords = ["cycle kwargs"]
2525
homepage = "https://matplotlib.org/cycler/"
2626
repository = "https://github.com/matplotlib/cycler"
2727

28+
[project.optional-dependencies]
29+
docs = [
30+
"ipython",
31+
"matplotlib",
32+
"numpydoc",
33+
"sphinx",
34+
]
35+
tests = [
36+
"pytest",
37+
"pytest-cov",
38+
"pytest-xdist",
39+
]
40+
2841
[tool.setuptools]
2942
packages = ["cycler"]
3043

0 commit comments

Comments
 (0)