2016-03-03 17:16:54 +01:00
|
|
|
[tox]
|
2023-02-23 11:28:33 +01:00
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/passerelle/{env:RAND_TEST:}
|
2023-12-22 12:52:12 +01:00
|
|
|
envlist = py3-django32-codestyle-coverage
|
2016-03-03 17:16:54 +01:00
|
|
|
|
|
|
|
[testenv]
|
2018-08-09 17:24:50 +02:00
|
|
|
usedevelop = True
|
2016-03-03 17:16:54 +01:00
|
|
|
setenv =
|
2016-03-10 14:05:24 +01:00
|
|
|
DJANGO_SETTINGS_MODULE=passerelle.settings
|
|
|
|
PASSERELLE_SETTINGS_FILE=tests/settings.py
|
2023-02-23 11:28:33 +01:00
|
|
|
RAND_TEST={env:RAND_TEST:}
|
2020-09-01 14:25:03 +02:00
|
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
2022-07-06 15:42:30 +02:00
|
|
|
NUMPROCESSES={env:NUMPROCESSES:1}
|
2016-10-07 10:56:48 +02:00
|
|
|
fast: FAST=--nomigrations
|
2020-01-24 12:20:48 +01:00
|
|
|
coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=passerelle/ --cov-config .coveragerc -Wignore
|
2016-03-03 17:16:54 +01:00
|
|
|
deps =
|
2022-07-28 15:15:30 +02:00
|
|
|
django32: django>=3.2,<3.3
|
2023-03-29 11:59:07 +02:00
|
|
|
xmlschema<1.5
|
2022-07-28 15:15:30 +02:00
|
|
|
django32: psycopg2-binary
|
|
|
|
django32: django-model-utils>=4.2
|
2016-03-03 17:16:54 +01:00
|
|
|
pytest-cov
|
2020-03-13 17:53:21 +01:00
|
|
|
pytest-django
|
2022-07-06 15:42:30 +02:00
|
|
|
pytest-xdist
|
2020-07-29 14:38:04 +02:00
|
|
|
pytest!=6.0.0
|
2016-03-03 17:16:54 +01:00
|
|
|
WebTest
|
2020-10-06 09:23:22 +02:00
|
|
|
mock<4
|
2016-04-06 18:39:39 +02:00
|
|
|
httmock
|
2016-05-09 17:18:31 +02:00
|
|
|
python-dateutil
|
2022-07-28 15:15:30 +02:00
|
|
|
django32: django-webtest
|
2017-05-23 00:40:18 +02:00
|
|
|
lxml
|
2018-05-14 15:03:56 +02:00
|
|
|
mohawk
|
2018-09-17 11:58:19 +02:00
|
|
|
pytest-freezegun
|
2019-02-15 10:57:26 +01:00
|
|
|
pytest-localserver
|
2019-03-29 17:01:04 +01:00
|
|
|
pytest-sftpserver
|
2020-08-11 14:06:29 +02:00
|
|
|
Quixote>=3.0,<3.2
|
2019-04-01 13:08:38 +02:00
|
|
|
vobject
|
2022-12-05 16:38:10 +01:00
|
|
|
django-ratelimit<3
|
2021-11-30 17:26:58 +01:00
|
|
|
bleach
|
2023-04-14 12:33:59 +02:00
|
|
|
emoji
|
2022-11-29 18:20:53 +01:00
|
|
|
phonenumbers
|
2021-12-15 08:19:18 +01:00
|
|
|
dnspython
|
2019-08-12 18:17:11 +02:00
|
|
|
pyquery
|
2023-02-01 12:12:25 +01:00
|
|
|
requests_toolbelt
|
2022-03-21 17:51:58 +01:00
|
|
|
responses
|
2020-01-20 15:41:49 +01:00
|
|
|
zeep<3.3
|
2021-04-12 09:23:11 +02:00
|
|
|
codestyle: pre-commit
|
2022-08-01 19:15:30 +02:00
|
|
|
ldaptools
|
2023-04-02 21:09:10 +02:00
|
|
|
Pillow<9.5.0
|
2024-02-01 12:44:01 +01:00
|
|
|
jsonschema==4.10.3
|
2022-09-23 10:03:34 +02:00
|
|
|
python-ldap<=3.2 # align with Debian <= 11 (buster, bullseye)
|
2023-06-13 19:29:58 +02:00
|
|
|
cryptography<39
|
2022-12-25 14:49:42 +01:00
|
|
|
git+https://git.entrouvert.org/publik-django-templatetags.git
|
2016-03-10 09:41:29 +01:00
|
|
|
commands =
|
2022-07-06 15:42:30 +02:00
|
|
|
py.test {posargs: --numprocesses {env:NUMPROCESSES:1} --dist loadfile {env:FAST:} {env:COVERAGE:} {env:JUNIT:} tests/}
|
2021-04-12 09:23:11 +02:00
|
|
|
codestyle: pre-commit run --all-files --show-diff-on-failure
|
2019-11-19 14:01:20 +01:00
|
|
|
|
|
|
|
[pytest]
|
|
|
|
filterwarnings = default
|
|
|
|
# to delete when using python3, it's a warning inside ElementTree
|
|
|
|
ignore:.*tree.iter().*:PendingDeprecationWarning
|
|
|
|
# pyproj warning about deprecation of '+init=authority:code which comes from using Proj(init='EPSG:4326') instead of Proj('EPSG:4326')
|
|
|
|
# I tried the new syntax but it broke some opengis tests
|
|
|
|
module:.*init.*authority.*code.*syntax is deprecated:DeprecationWarning:pyproj
|
2022-03-17 14:58:14 +01:00
|
|
|
|
|
|
|
[testenv:pylint]
|
|
|
|
setenv =
|
|
|
|
DJANGO_SETTINGS_MODULE=passerelle.settings
|
|
|
|
PASSERELLE_SETTINGS_FILE=tests/settings.py
|
|
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
2022-07-06 15:42:30 +02:00
|
|
|
NUMPROCESSES={env:NUMPROCESSES:6}
|
2022-03-17 14:58:14 +01:00
|
|
|
deps =
|
|
|
|
pytest-django
|
|
|
|
pytest!=6.0.0
|
|
|
|
WebTest
|
|
|
|
mock<4
|
|
|
|
httmock
|
2023-10-03 06:17:50 +02:00
|
|
|
pylint<3
|
|
|
|
astroid<3
|
2022-03-17 14:58:14 +01:00
|
|
|
pylint-django
|
|
|
|
django-webtest<1.9.3
|
|
|
|
pytest-freezegun
|
2022-10-12 14:17:12 +02:00
|
|
|
pyquery
|
2022-03-17 14:58:14 +01:00
|
|
|
responses
|
|
|
|
mohawk
|
2022-08-01 19:15:30 +02:00
|
|
|
ldaptools
|
2022-12-25 14:49:42 +01:00
|
|
|
git+https://git.entrouvert.org/publik-django-templatetags.git
|
2023-09-25 09:29:19 +02:00
|
|
|
allowlist_externals =
|
|
|
|
./pylint.sh
|
2022-03-17 14:58:14 +01:00
|
|
|
commands =
|
|
|
|
./pylint.sh passerelle/ tests/
|
2023-11-02 14:43:04 +01:00
|
|
|
|
|
|
|
[testenv:vitest]
|
|
|
|
deps = nodeenv
|
|
|
|
allowlist_externals =
|
|
|
|
bash
|
|
|
|
npx
|
|
|
|
install_command = bash setup-vitest.sh {packages}
|
|
|
|
setenv =
|
|
|
|
NODE_PATH={envdir}/lib/node_modules
|
2024-02-23 09:46:24 +01:00
|
|
|
LC_ALL=en_US.UTF-8
|
2023-11-02 14:43:04 +01:00
|
|
|
commands = npx vitest --run
|