Skip to content

Commit 17e43fd

Browse files
committed
Move test dependencies into pyproject.toml
1 parent 2b4496f commit 17e43fd

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ release-deb:
4949

5050
install-dev:
5151
pip install -U pip setuptools wheel
52-
pip install -e .
53-
pip install -Ur test-requirements.txt -r docs-requirements.txt pre-commit
52+
pip install -e '.[test]'
53+
pip install -U -r docs-requirements.txt pre-commit
5454
set -xe && if [ "$(REQUIREMENTS)" = "minimal" ]; then \
5555
pip install pyproject-dependencies && \
5656
pip install -U --force-reinstall $$(pyproject-dependencies . | sed 's/>/=/'); \

docs/packaging.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ You can install the all development dependencies with::
4646
make install-dev
4747

4848
You probably don't want this since it will use pip to download the
49-
dependencies. Alternatively you can find the testing dependencies in
50-
``test-requirements.txt``, again with lower-bound version requirements.
49+
dependencies. Alternatively test dependencies are listed as ``test`` optional
50+
dependencies in ``pyproject.toml``, again with lower-bound version
51+
requirements.
5152

5253
You also have to have vdirsyncer fully installed at this point. Merely
5354
``cd``-ing into the tarball will not be sufficient.

pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@ dynamic = ["version"]
4343

4444
[project.optional-dependencies]
4545
google = ["aiohttp-oauthlib"]
46+
test = [
47+
"hypothesis>=6.72.0,<7.0.0",
48+
"pytest",
49+
"pytest-cov",
50+
"pytest-httpserver",
51+
"trustme",
52+
"pytest-asyncio",
53+
"aioresponses",
54+
]
4655

4756
[project.scripts]
4857
vdirsyncer = "vdirsyncer.cli:app"

test-requirements.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)