mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Move test dependencies into pyproject.toml
This commit is contained in:
parent
2b4496fea4
commit
17e43fd633
4 changed files with 14 additions and 11 deletions
4
Makefile
4
Makefile
|
|
@ -49,8 +49,8 @@ release-deb:
|
|||
|
||||
install-dev:
|
||||
pip install -U pip setuptools wheel
|
||||
pip install -e .
|
||||
pip install -Ur test-requirements.txt -r docs-requirements.txt pre-commit
|
||||
pip install -e '.[test]'
|
||||
pip install -U -r docs-requirements.txt pre-commit
|
||||
set -xe && if [ "$(REQUIREMENTS)" = "minimal" ]; then \
|
||||
pip install pyproject-dependencies && \
|
||||
pip install -U --force-reinstall $$(pyproject-dependencies . | sed 's/>/=/'); \
|
||||
|
|
|
|||
|
|
@ -46,8 +46,9 @@ You can install the all development dependencies with::
|
|||
make install-dev
|
||||
|
||||
You probably don't want this since it will use pip to download the
|
||||
dependencies. Alternatively you can find the testing dependencies in
|
||||
``test-requirements.txt``, again with lower-bound version requirements.
|
||||
dependencies. Alternatively test dependencies are listed as ``test`` optional
|
||||
dependencies in ``pyproject.toml``, again with lower-bound version
|
||||
requirements.
|
||||
|
||||
You also have to have vdirsyncer fully installed at this point. Merely
|
||||
``cd``-ing into the tarball will not be sufficient.
|
||||
|
|
|
|||
|
|
@ -43,6 +43,15 @@ dynamic = ["version"]
|
|||
|
||||
[project.optional-dependencies]
|
||||
google = ["aiohttp-oauthlib"]
|
||||
test = [
|
||||
"hypothesis>=6.72.0,<7.0.0",
|
||||
"pytest",
|
||||
"pytest-cov",
|
||||
"pytest-httpserver",
|
||||
"trustme",
|
||||
"pytest-asyncio",
|
||||
"aioresponses",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
vdirsyncer = "vdirsyncer.cli:app"
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
hypothesis>=6.72.0,<7.0.0
|
||||
pytest
|
||||
pytest-cov
|
||||
pytest-httpserver
|
||||
trustme
|
||||
pytest-asyncio
|
||||
aioresponses
|
||||
Loading…
Reference in a new issue