-
Notifications
You must be signed in to change notification settings - Fork 65
/
tox.ini
80 lines (75 loc) · 1.83 KB
/
tox.ini
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
68
69
70
71
72
73
74
75
76
77
78
79
80
[tox]
envlist =
{py34}-django17
{py34,py35,py36}-django18
{py34,py35,py36}-django19
{py34,py35,py36}-django110
{py34,py35,py36}-django111
{py34,py35,py36}-django20
{py34,py35,py36}-django21
{py34,py35,py36}-django22LTS
{py36,py37,py38,py39}-django30
{py36,py37,py38,py39}-django31
{py36,py37,py38,py39,py310}-django32
{py38,py39,py310}-django40
{py38,py39,py310,py311}-django41
{py38,py39,py310,py311}-django42
coverage
skip_missing_interpreters = True
[testenv]
deps =
six
mock
factory_boy
py{34,311}: Faker>=1.0,<2.0
django17: Django>=1.7,<1.8
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django>=1.10,<1.11
django111: Django>=1.11,<2.0
django20: Django>=2.0,<2.1
django21: Django>=2.1,<2.2
django22LTS: Django>=2.2,<3.0
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3
passenv =
ALGOLIA*
commands = python runtests.py
[versions]
twine = >=1.13,<2.0
wheel = >=0.34,<1.0
[testenv:coverage]
basepython = python3.8
deps = coverage
passenv =
ALGOLIA*
commands =
coverage run --branch --source=algoliasearch_django runtests.py
coverage report
[testenv:coveralls]
basepython = python3.8
deps =
coverage
coveralls
passenv =
ALGOLIA*
commands =
coverage run --branch --source=algoliasearch_django runtests.py
coverage report
coveralls
[testenv:release]
basepython = python3.8
deps =
twine {[versions]twine}
wheel {[versions]wheel}
passenv =
PYPI_USER
PYPI_PASSWORD
commands =
python setup.py sdist bdist_wheel
twine check dist/*
twine upload -u {env:PYPI_USER} -p {env:PYPI_PASSWORD} --repository-url https://upload.pypi.org/legacy/ dist/*