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 1/2] Add a tox.ini to support running tests via tox
Date: Wed, 01 Aug 2018 06:40:25
Message-Id: 20180801064005.1575-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 diff --git a/tox.ini b/tox.ini
11 new file mode 100644
12 index 000000000..184f75265
13 --- /dev/null
14 +++ b/tox.ini
15 @@ -0,0 +1,16 @@
16 +[tox]
17 +envlist = py27,py34,py35,py36,pypy,pypy3
18 +skipsdist = True
19 +
20 +[testenv]
21 +deps =
22 + lxml!=4.2.0
23 + pygost
24 + pyyaml
25 + py27,py34,py35,pypy: pyblake2
26 + py27,py34,py35,pypy: pysha3
27 +setenv =
28 + PYTHONPATH={toxinidir}/lib
29 +commands =
30 + python setup.py test
31 + python repoman/setup.py test
32 --
33 2.18.0

Replies

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