Skip to content

Commit 1426f5f

Browse files
committed
Add test and doc requirements to pyproject
1 parent 565769f commit 1426f5f

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
@@ -29,14 +29,13 @@ jobs:
2929
python-version: ${{ matrix.python-version }}
3030
allow-prereleases: true
3131

32-
- name: Install Python dependencies
32+
- name: Upgrade pip
3333
run: |
3434
python -m pip install --upgrade pip
35-
python -m pip install --upgrade pytest pytest-cov pytest-xdist
3635
3736
- name: Install cycler
3837
run: |
39-
python -m pip install --no-deps .
38+
python -m pip install .[tests]
4039
4140
- name: Run pytest
4241
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)