forked from requests/requests-oauthlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
39 lines (34 loc) · 927 Bytes
/
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
[tox]
envlist=py27,py34,py35,py36,py37,py38,py39,py310,pypy,pypy3,docs,readme,black
[testenv]
deps=
-r{toxinidir}/requirements-test.txt
commands=coverage run --source=requests_oauthlib -m unittest discover
# special py27 requirements as upstream libraries stopped
# supporting latest versions
[testenv:py27]
deps=
-r{toxinidir}/requirements-test-27.txt
[testenv:pypy]
deps=
-r{toxinidir}/requirements-test-27.txt
# tox -e docs to mimick readthedocs build.
# should be similar to .readthedocs.yaml pipeline
[testenv:docs]
basepython=python3.7
skipsdist=True
deps=
-r{toxinidir}/docs/requirements.txt
changedir=docs
whitelist_externals=make
commands=make clean html
# tox -e readme to mimick pypi validation of readme/rst files.
[testenv:readme]
basepython=python3.7
deps=twine>=1.12.0
commands=
twine check .tox/dist/*
[testenv:black]
basepython=python3.7
deps=black
commands=black --check --diff .