This repository has been archived by the owner on Feb 7, 2019. It is now read-only.
forked from jenisys/parse_type
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
130 lines (119 loc) · 4.04 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# ============================================================================
# TOX CONFIGURATION: parse_type
# ============================================================================
# DESCRIPTION:
#
# Use tox to run tasks (tests, ...) in a clean virtual environment.
# Tox is configured by default for offline usage.
# Initialize local workspace once (download packages, create PyPI index):
#
# tox -e init1
# tox -e init2 (alternative)
#
# Afterwards you can run tox in offline mode, like:
#
# tox -e py27
#
# NOTE:
# You can either use "local1" or "local2" as local "tox.indexserver.default":
#
# * $HOME/.pip/downloads/ (local1, default)
# * downloads/ (local2, alternative)
#
# SEE ALSO:
# * http://tox.testrun.org/latest/config.html
# ============================================================================
# NOTE:
# virtualenv >= 1.10 dropped support for python2.5
# Use virtualenv==1.9.1 if you need python2.5 support
# ============================================================================
# -- ONLINE USAGE:
# PIP_INDEX_URL = http://pypi.python.org/simple
[tox]
minversion = 2.3
envlist = py26, py27, py32, py33, py34, py35, py36, pypy, doctest
skip_missing_interpreters = True
sitepackages = False
indexserver =
default = https://pypi.python.org/simple
local1 = file://{toxinidir}/downloads/simple
local2 = file://{homedir}/.pip/downloads/simple
pypi = http://pypi.python.org/simple
# -----------------------------------------------------------------------------
# TEST ENVIRONMENTS: Bootstrap
# -----------------------------------------------------------------------------
[testenv:init1]
install_command = pip install --use-mirrors -i http://pypi.python.org/simple --find-links downloads --no-index {packages}
changedir = {toxinidir}
skipsdist = True
commands=
{toxinidir}/bin/toxcmd.py mkdir {toxinidir}/downloads
pip install --use-mirrors --download={toxinidir}/downloads -r requirements/all.txt
{toxinidir}/bin/make_localpi.py {toxinidir}/downloads
deps=
# setenv =
# PIP_INDEX_URL = http://pypi.python.org/simple
# PIP_DOWNLOAD_DIR = {toxinidir}/downloads
# PIP_FIND_FILES = file://{toxinidir}/downloads
[testenv:init2]
install_command = pip install --use-mirrors -i http://pypi.python.org/simple --find-links downloads --no-index {packages}
changedir = {toxinidir}
skipsdist = True
commands=
{toxinidir}/bin/toxcmd.py mkdir {homedir}/.pip/downloads
pip install --use-mirrors --download={homedir}/.pip/downloads -r requirements/all.txt
{toxinidir}/bin/make_localpi.py {homedir}/.pip/downloads
deps=
# -----------------------------------------------------------------------------
# TEST ENVIRONMENTS:
# -----------------------------------------------------------------------------
# install_command = pip install -U --pre {opts} {packages}
[testenv]
install_command = pip install -U {opts} {packages}
changedir = {toxinidir}
commands =
pytest {posargs:tests}
deps =
pytest>=3.0
setenv =
TOXRUN = yes
PYSETUP_BOOTSTRAP = no
PIP_FIND_FILES = {toxinidir}/downloads
[testenv:py26]
deps =
{[testenv]deps}
unittest2
ordereddict
[testenv:doctest]
commands =
pytest --doctest-modules -v parse_type
# -----------------------------------------------------------------------------
# MORE TEST ENVIRONMENTS:
# -----------------------------------------------------------------------------
[testenv:coverage]
commands =
pytest --cov=parse_type {posargs:tests}
coverage combine
coverage html
coverage xml
deps =
{[testenv]deps}
pytest-cov
coverage>=4.0
[testenv:install]
changedir = {envdir}
commands =
python ../../setup.py install -q
{toxinidir}/bin/toxcmd.py copytree ../../tests .
pytest {posargs:tests}
deps =
pytest
# -- ENSURE: README.rst is well-formed.
# python setup.py --long-description | rst2html.py >output.html
#[testenv:check_README]
#changedir = {toxinidir}
#commands=
# python setup.py --long-description > output.tmp
# rst2html.py output.tmp output.html
#deps =
# docutils