public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/setuptools_scm/
Date: Wed, 11 Jul 2018 06:51:50 +0000 (UTC)	[thread overview]
Message-ID: <1531291903.0c9868af0f9dbef1169657d330c4f3f23277f166.mgorny@gentoo> (raw)

commit:     0c9868af0f9dbef1169657d330c4f3f23277f166
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 11 06:49:33 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jul 11 06:51:43 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c9868af

dev-python/setuptools_scm: Improve test coverage

Remove the silly logic attempting to selectively run tests based on USE
flags.  Instead, require complete dependency set and run all tests
except those we explicitly can't run because of network access.

 .../setuptools_scm/setuptools_scm-2.1.0.ebuild     | 22 ++++++++--------------
 1 file changed, 8 insertions(+), 14 deletions(-)

diff --git a/dev-python/setuptools_scm/setuptools_scm-2.1.0.ebuild b/dev-python/setuptools_scm/setuptools_scm-2.1.0.ebuild
index a8abcb4338f..82df58170f3 100644
--- a/dev-python/setuptools_scm/setuptools_scm-2.1.0.ebuild
+++ b/dev-python/setuptools_scm/setuptools_scm-2.1.0.ebuild
@@ -14,31 +14,25 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
-IUSE="git mercurial test"
+IUSE="test"
 
 DEPEND="
 	dev-python/setuptools[${PYTHON_USEDEP}]
-	git? ( dev-vcs/git )
-	mercurial? ( dev-vcs/mercurial )
-	test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+	test? (
+		dev-python/pytest[${PYTHON_USEDEP}]
+		dev-vcs/git
+		dev-vcs/mercurial )"
 
 python_prepare_all() {
 	# network access
 	sed -i -e 's:test_pip_download:_&:' testing/test_regressions.py || die
+	# all fetch specific setuptools versions
+	rm testing/test_setuptools_support.py || die
 
 	distutils-r1_python_prepare_all
 }
 
 python_test() {
 	distutils_install_for_testing
-	py.test -v -v -x -k testing/test_basic_api.py || die "tests failed under ${EPYTHON}"
-	py.test -v -v -x -k testing/test_functions.py || die "tests failed under ${EPYTHON}"
-	py.test -v -v -x -k testing/test_main.py || die "tests failed under ${EPYTHON}"
-	py.test -v -v -x -k testing/test_regressions.py || die "tests failed under ${EPYTHON}"
-	if use git; then
-		py.test -v -v -x -k testing/test_git.py || die "tests failed under ${EPYTHON}"
-	fi
-	if use mercurial; then
-		py.test -v -v -x -k testing/test_mercurial.py || die "tests failed under ${EPYTHON}"
-	fi
+	py.test -v -v -x || die "Tests fail with ${EPYTHON}"
 }


             reply	other threads:[~2018-07-11  6:51 UTC|newest]

Thread overview: 138+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-11  6:51 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-03-03  5:53 [gentoo-commits] repo/gentoo:master commit in: dev-python/setuptools_scm/ Michał Górny
2023-02-01 13:18 Michał Górny
2023-01-28 20:33 Michał Górny
2023-01-28 20:21 Arthur Zamarin
2022-12-18  7:27 Michał Górny
2022-07-24 20:24 Michał Górny
2022-07-12  9:05 Michał Górny
2022-07-02  4:47 Michał Górny
2022-06-30  4:27 Michał Górny
2022-06-23  7:19 Michał Górny
2022-06-22  7:50 Michał Górny
2022-06-22  5:48 Michał Górny
2022-05-27 19:50 Michał Górny
2022-05-27  9:12 Jakov Smolić
2022-05-09 20:38 Michał Górny
2022-05-09 15:01 Michał Górny
2022-04-21 15:19 Michał Górny
2022-02-27 18:58 Michał Górny
2022-02-27 12:29 Jakov Smolić
2022-02-09  9:39 Michał Górny
2022-01-18 22:44 Michał Górny
2022-01-18  9:51 Michał Górny
2021-10-09 19:31 Michał Górny
2021-10-09 19:18 Sam James
2021-09-11 22:09 Michał Górny
2021-09-03 19:02 Arthur Zamarin
2021-09-03 15:43 Arthur Zamarin
2021-08-28  6:54 Michał Górny
2021-08-27  7:28 Michał Górny
2021-08-13  6:58 Michał Górny
2021-05-17 23:08 Sam James
2021-05-05 17:05 Michał Górny
2021-04-05 18:00 Michał Górny
2021-03-17 19:35 Michał Górny
2021-03-05 10:14 Michał Górny
2021-03-02  8:43 Michał Górny
2021-03-02  1:52 Sam James
2021-01-06 22:30 Fabian Groffen
2020-12-14  8:35 Michał Górny
2020-12-13 12:15 Michał Górny
2020-12-13 12:15 Michał Górny
2020-10-08 11:30 Fabian Groffen
2020-09-20 15:38 Michał Górny
2020-07-11  8:39 Michał Górny
2020-07-09  8:41 Agostino Sarubbo
2020-07-09  8:34 Agostino Sarubbo
2020-05-31 21:00 Michał Górny
2020-05-27  7:03 Michał Górny
2020-05-25 19:27 Michał Górny
2020-05-25 16:16 Michał Górny
2020-04-12 15:21 Michał Górny
2020-03-29  8:19 Michał Górny
2020-03-29  8:19 Michał Górny
2020-03-29  8:19 Michał Górny
2020-03-25 15:27 Agostino Sarubbo
2020-03-25 14:52 Agostino Sarubbo
2020-03-25 13:27 Agostino Sarubbo
2020-03-25 13:12 Agostino Sarubbo
2020-03-25 12:36 Agostino Sarubbo
2020-03-25 12:23 Agostino Sarubbo
2020-02-24  9:56 Agostino Sarubbo
2020-02-22 14:19 Sergei Trofimovich
2020-02-17 12:25 Agostino Sarubbo
2020-02-17 12:17 Agostino Sarubbo
2020-02-17 12:09 Agostino Sarubbo
2020-02-17 11:45 Agostino Sarubbo
2020-02-16 21:14 Thomas Deutschmann
2020-02-15 19:30 Sergei Trofimovich
2020-02-15 12:19 Mikle Kolyada
2020-02-14  7:51 Michał Górny
2020-02-14  7:51 Michał Górny
2020-01-23  6:51 Michał Górny
2020-01-20  8:16 Michał Górny
2019-11-16 11:02 Michał Górny
2019-11-16 11:02 Michał Górny
2019-07-28 20:10 Mikle Kolyada
2019-07-28 20:10 Mikle Kolyada
2019-07-28 20:10 Mikle Kolyada
2019-07-13 16:49 Sergei Trofimovich
2019-06-05  7:28 Agostino Sarubbo
2019-06-05  7:12 Agostino Sarubbo
2019-06-04 18:51 Agostino Sarubbo
2019-06-04 14:36 Agostino Sarubbo
2019-06-04  7:53 Tobias Klausmann
2019-05-15 20:41 Michał Górny
2019-05-13 20:25 Michał Górny
2019-05-13  0:38 Thomas Deutschmann
2019-05-11 11:11 Mikle Kolyada
2019-05-10 21:15 Sergei Trofimovich
2019-05-10 14:36 Michał Górny
2019-05-10 14:36 Michał Górny
2019-05-08  6:34 Michał Górny
2019-01-19  8:17 Michał Górny
2018-07-11  6:51 Michał Górny
2018-06-25 19:07 Tim Harder
2018-06-03 13:55 Mike Frysinger
2018-03-20  4:08 Tim Harder
2018-03-19  5:45 Tim Harder
2018-03-19  5:45 Tim Harder
2018-03-19  5:45 Tim Harder
2018-02-17 21:51 Patrice Clement
2018-02-13 22:03 Matt Thode
2017-12-27 19:02 Fabian Groffen
2017-11-19  2:50 Tim Harder
2017-11-19  2:50 Tim Harder
2017-07-26  9:40 Fabian Groffen
2017-06-23 11:41 Manuel Rüger
2017-06-16  7:57 Sergei Trofimovich
2017-05-09 16:30 Markus Meier
2017-05-03  9:26 Michał Górny
2017-04-15 22:21 Manuel Rüger
2017-03-29 21:26 Michael Weber
2017-03-29 16:46 Tobias Klausmann
2017-03-29  9:07 Michael Weber
2017-03-22 10:02 Jeroen Roovers
2017-02-19 17:19 Mike Gilbert
2017-02-09 12:01 Matt Thode
2016-10-26 22:28 Tim Harder
2016-08-10  3:06 Tim Harder
2016-01-03 19:55 Patrick Lauer
2015-12-13 14:05 Justin Lecher
2015-12-08 15:38 Justin Lecher
2015-11-23 10:05 Justin Lecher
2015-11-23  6:44 Jeroen Roovers
2015-11-22  8:52 Markus Meier
2015-11-19 10:25 Agostino Sarubbo
2015-11-17 11:03 Justin Lecher
2015-11-16 15:01 Agostino Sarubbo
2015-11-05 11:52 Agostino Sarubbo
2015-11-04 16:09 Agostino Sarubbo
2015-11-04 15:50 Agostino Sarubbo
2015-11-02 13:12 Agostino Sarubbo
2015-11-02 13:09 Agostino Sarubbo
2015-10-11 11:25 Justin Lecher
2015-09-18  6:40 Justin Lecher
2015-08-16 14:38 Justin Lecher
2015-08-09 12:30 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1531291903.0c9868af0f9dbef1169657d330c4f3f23277f166.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox