Projet

Général

Profil

0001-enabled-django-3.2-testing-in-tox-file-68060.patch

A. Berriot, 09 août 2022 15:49

Télécharger (1,92 ko)

Voir les différences:

Subject: [PATCH] enabled django 3.2 testing in tox file (#68060)

 setup.py |  6 +++---
 tox.ini  | 11 +++++++----
 2 files changed, 10 insertions(+), 7 deletions(-)
setup.py
108 108
        'Programming Language :: Python',
109 109
    ],
110 110
    install_requires=[
111
        'django>=2.2,<2.3',
111
        'django>=2.2,<3.3',
112 112
        'gadjo',
113 113
        'django-ckeditor<4.5.4',
114
        'django-haystack<2.8',
115
        'django-taggit',
114
        'django-haystack<3.2',
115
        'django-taggit<3',
116 116
        'djangorestframework>=3.3,<3.13',
117 117
        'requests',
118 118
        'whoosh',
tox.ini
1 1
[tox]
2 2
envlist =
3
  py3-django22-black-coverage-pylint-drf39
4
  py3-django22-black-coverage-pylint-drf312
3
    py3-django22-drf39
4
    py3-django22-drf312
5
    py3-django32-black-coverage-pylint-drf312
5 6
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/welco/{env:BRANCH_NAME:}
6 7

  
7 8
[testenv]
......
15 16
  coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=welco/
16 17
deps =
17 18
  django22: django>=2.2,<2.3
19
  django32: django>=3.2,<3.3
20
  django22: django-haystack<2.8
18 21
  pytest-cov
19 22
  pytest-django
20 23
  pytest!=5.3.3
......
29 32
  lxml
30 33
  git+https://git.entrouvert.org/debian/django-ckeditor.git
31 34
  black: pre-commit
32
  drf39: djangorestframework>=3.9.2,<3.10
35
  drf39: djangorestframework>=3.9,<3.10
33 36
  drf312: djangorestframework>=3.12,<3.13
34 37
commands =
35 38
  pylint: ./pylint.sh welco/
36
  py.test {env:COVERAGE:} {posargs:tests/}
39
  py.test -p no:warnings {env:COVERAGE:} {posargs:tests/}
37 40
  black: pre-commit run black --all-files --show-diff-on-failure
38
-