File: tox.ini

package info (click to toggle)
django-cacheops 7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 404 kB
  • sloc: python: 3,189; sh: 7; makefile: 4
file content (67 lines) | stat: -rw-r--r-- 1,491 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[tox]
envlist =
    lint,
    py{38,39}-dj{32,40},
    py310-dj{32,40,41},
    py311-dj{41,42,50},
    py312-dj{42,50,51,52},
    py313-dj{50,51,52},
    pypy310-dj40

[gh-actions]
python =
    3.8: py38
    3.9: py39
    3.10: py310
    3.11: py311
    3.12: py312
    3.13: py313
    pypy-3.10: pypy310


[testenv]
passenv = *
allowlist_externals = *
# This is required for gdal to install
setenv =
    CPLUS_INCLUDE_PATH=/usr/include/gdal
    C_INCLUDE_PATH=/usr/include/gdal
deps =
    pytest==8.3.5
    pytest-django==4.11.1
    dj32: Django>=3.2,<3.3
    dj40: Django>=4.0,<4.1
    dj41: Django>=4.1,<4.2
    dj42: Django>=4.2.8,<5.0
    dj50: Django>=5.0,<5.1
    dj51: Django>=5.1,<5.2
    dj52: Django>=5.2,<5.3
    djmain: git+https://github.com/django/django
    mysqlclient
    py{38,39,310,311,312,313}: psycopg2-binary
    ; gdal=={env:GDAL_VERSION:2.4}
    pypy310: psycopg2cffi>=2.7.6
    before_after==1.0.0
    jinja2>=2.10
    dill
commands =
    pytest []
    env CACHEOPS_PREFIX=1 pytest []
    env CACHEOPS_INSIDEOUT=1 pytest []
    env CACHEOPS_DB=mysql pytest []
    env CACHEOPS_DB=postgresql pytest []
    ; env CACHEOPS_DB=postgis pytest []
    ; Test invalidate command
    ./manage.py invalidate tests.post
    ./manage.py invalidate tests
    ./manage.py invalidate all


[flake8]
max-line-length = 100
ignore = E126,E127,E131,E226,E261,E265,E266,E302,E305,E401,E402,F403,F405,E731,W503
exclude = cross.py,.tox/*

[testenv:lint]
deps = flake8
commands = flake8