Move test dependencies into pyproject.toml

This commit is contained in:
Hugo Osvaldo Barrera 2025-04-07 18:47:44 +02:00
parent 2b4496fea4
commit 17e43fd633
4 changed files with 14 additions and 11 deletions

View file

@ -49,8 +49,8 @@ release-deb:
install-dev: install-dev:
pip install -U pip setuptools wheel pip install -U pip setuptools wheel
pip install -e . pip install -e '.[test]'
pip install -Ur test-requirements.txt -r docs-requirements.txt pre-commit pip install -U -r docs-requirements.txt pre-commit
set -xe && if [ "$(REQUIREMENTS)" = "minimal" ]; then \ set -xe && if [ "$(REQUIREMENTS)" = "minimal" ]; then \
pip install pyproject-dependencies && \ pip install pyproject-dependencies && \
pip install -U --force-reinstall $$(pyproject-dependencies . | sed 's/>/=/'); \ pip install -U --force-reinstall $$(pyproject-dependencies . | sed 's/>/=/'); \

View file

@ -46,8 +46,9 @@ You can install the all development dependencies with::
make install-dev make install-dev
You probably don't want this since it will use pip to download the You probably don't want this since it will use pip to download the
dependencies. Alternatively you can find the testing dependencies in dependencies. Alternatively test dependencies are listed as ``test`` optional
``test-requirements.txt``, again with lower-bound version requirements. dependencies in ``pyproject.toml``, again with lower-bound version
requirements.
You also have to have vdirsyncer fully installed at this point. Merely You also have to have vdirsyncer fully installed at this point. Merely
``cd``-ing into the tarball will not be sufficient. ``cd``-ing into the tarball will not be sufficient.

View file

@ -43,6 +43,15 @@ dynamic = ["version"]
[project.optional-dependencies] [project.optional-dependencies]
google = ["aiohttp-oauthlib"] google = ["aiohttp-oauthlib"]
test = [
"hypothesis>=6.72.0,<7.0.0",
"pytest",
"pytest-cov",
"pytest-httpserver",
"trustme",
"pytest-asyncio",
"aioresponses",
]
[project.scripts] [project.scripts]
vdirsyncer = "vdirsyncer.cli:app" vdirsyncer = "vdirsyncer.cli:app"

View file

@ -1,7 +0,0 @@
hypothesis>=6.72.0,<7.0.0
pytest
pytest-cov
pytest-httpserver
trustme
pytest-asyncio
aioresponses