From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 95C8A138334 for ; Wed, 1 Aug 2018 08:39:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7159FE081B; Wed, 1 Aug 2018 08:39:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 49D95E081B for ; Wed, 1 Aug 2018 08:39:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4ADCD335CDB for ; Wed, 1 Aug 2018 08:39:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ECC292CC for ; Wed, 1 Aug 2018 08:39:35 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1533112676.c852f0aed0d86178a5ebb3f30e50692f2657dcee.mgorny@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: / X-VCS-Repository: proj/portage X-VCS-Files: tox.ini X-VCS-Directories: / X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: c852f0aed0d86178a5ebb3f30e50692f2657dcee X-VCS-Branch: master Date: Wed, 1 Aug 2018 08:39:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 961bbc51-aa92-4f35-b8ed-556085862639 X-Archives-Hash: fe19f1b17c18e62b532a0f2dfaf1823d commit: c852f0aed0d86178a5ebb3f30e50692f2657dcee Author: Michał Górny gentoo org> AuthorDate: Wed Aug 1 05:58:29 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Aug 1 08:37:56 2018 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=c852f0ae Add a tox.ini to support running tests via tox tox is the common Pythonic tool for running tests against multiple interpreters. It integrates well with virtualenv, making testing trivial on practically any system. Add a tox.ini file so users can take advantage of it. Reviewed-by: Zac Medico gentoo.org> tox.ini | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tox.ini b/tox.ini new file mode 100644 index 000000000..cafdb0045 --- /dev/null +++ b/tox.ini @@ -0,0 +1,16 @@ +[tox] +envlist = py27,py34,py35,py36,pypy,pypy3 +skipsdist = True + +[testenv] +deps = + lxml!=4.2.0 + pygost + pyyaml + py27,py34,py35,pypy: pyblake2 + py27,py34,py35,pypy: pysha3 +setenv = + PYTHONPATH={toxinidir}/lib +commands = + python -b -Wd setup.py test + python -b -Wd repoman/setup.py test