Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-portage-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-portage-dev] [PATCH v2 1/2] Add a tox.ini to support running tests via tox
Date: Wed, 01 Aug 2018 07:34:28
Message-Id: 20180801073420.16678-1-mgorny@gentoo.org
1 tox is the common Pythonic tool for running tests against multiple
2 interpreters. It integrates well with virtualenv, making testing
3 trivial on practically any system. Add a tox.ini file so users can take
4 advantage of it.
5 ---
6 tox.ini | 16 ++++++++++++++++
7 1 file changed, 16 insertions(+)
8 create mode 100644 tox.ini
9
10 Changes in v2:
11 passing '-b -Wd' to python
12
13 diff --git a/tox.ini b/tox.ini
14 new file mode 100644
15 index 000000000..cafdb0045
16 --- /dev/null
17 +++ b/tox.ini
18 @@ -0,0 +1,16 @@
19 +[tox]
20 +envlist = py27,py34,py35,py36,pypy,pypy3
21 +skipsdist = True
22 +
23 +[testenv]
24 +deps =
25 + lxml!=4.2.0
26 + pygost
27 + pyyaml
28 + py27,py34,py35,pypy: pyblake2
29 + py27,py34,py35,pypy: pysha3
30 +setenv =
31 + PYTHONPATH={toxinidir}/lib
32 +commands =
33 + python -b -Wd setup.py test
34 + python -b -Wd repoman/setup.py test
35 --
36 2.18.0

Replies

Subject Author
[gentoo-portage-dev] [PATCH v2 2/2] .travis.yml: Take advantage of tox "Michał Górny" <mgorny@g.o>