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/pytest-cov/
Date: Sat,  1 Oct 2022 16:24:35 +0000 (UTC)	[thread overview]
Message-ID: <1664639651.58368fd32c23c4facee8cfcbf99236ce4b51d94e.mgorny@gentoo> (raw)

commit:     58368fd32c23c4facee8cfcbf99236ce4b51d94e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  1 15:15:22 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Oct  1 15:54:11 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58368fd3

dev-python/pytest-cov: Bump to 4.0.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pytest-cov/Manifest                |  1 +
 dev-python/pytest-cov/pytest-cov-4.0.0.ebuild | 61 +++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)

diff --git a/dev-python/pytest-cov/Manifest b/dev-python/pytest-cov/Manifest
index 3099cb0090e6..c4e0c945f72b 100644
--- a/dev-python/pytest-cov/Manifest
+++ b/dev-python/pytest-cov/Manifest
@@ -1 +1,2 @@
 DIST pytest-cov-3.0.0.tar.gz 61440 BLAKE2B 85f0b079c4c373191553271e34e78af68ac69ea53e3721aa0d43eb9dd55be935570eb15c0f8b954e4c0de6201c004ddef435ea70b03cfda893ecdcc230c283e7 SHA512 289d1b1e29dcc3461276de4c1bbd3884e4ec957efb7dd4c330bc3f25f1b978cbee64c0e2882b419eee5f9ccf44c9d1a23ce47a1b7cc7e436b9ebe894e4c11ae8
+DIST pytest-cov-4.0.0.tar.gz 62013 BLAKE2B af8a12955e3f22cd9dc257874f86c04c3c6e29f4af2d2838f37ca196c4955dcf4007c7b404f31c303d0eef6c3735fa1a6268c3bb9f01ed54860750ca2f83b6f5 SHA512 fb993be4d86b29a44e4f2ccd2309d99ab9fe8e6b291abbc2a8a3fc8b36479491165a242a20bfa9886dfd296fcc827da9984b556fdbe9a3ac496ac5b6ba379012

diff --git a/dev-python/pytest-cov/pytest-cov-4.0.0.ebuild b/dev-python/pytest-cov/pytest-cov-4.0.0.ebuild
new file mode 100644
index 000000000000..00e9dce47cda
--- /dev/null
+++ b/dev-python/pytest-cov/pytest-cov-4.0.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="pytest plugin for coverage reporting"
+HOMEPAGE="
+	https://github.com/pytest-dev/pytest-cov/
+	https://pypi.org/project/pytest-cov/
+"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+RDEPEND="
+	>=dev-python/py-1.4.22[${PYTHON_USEDEP}]
+	>=dev-python/pytest-3.6[${PYTHON_USEDEP}]
+	>=dev-python/coverage-4.4[${PYTHON_USEDEP}]
+	dev-python/toml[${PYTHON_USEDEP}]
+"
+BDEPEND="
+	test? (
+		dev-python/virtualenv[${PYTHON_USEDEP}]
+		dev-python/fields[${PYTHON_USEDEP}]
+		>=dev-python/process-tests-2.0.2[${PYTHON_USEDEP}]
+		dev-python/pytest-xdist[${PYTHON_USEDEP}]
+	)
+"
+
+distutils_enable_sphinx docs \
+	dev-python/sphinx-py3doc-enhanced-theme
+distutils_enable_tests pytest
+
+python_test() {
+	# NB: disabling all plugins speeds tests up a lot
+	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+	local -x PYTEST_PLUGINS=pytest_cov.plugin,xdist.plugin,xdist.looponfail
+
+	local EPYTEST_DESELECT=(
+		# attempts to install packages via pip (network)
+		tests/test_pytest_cov.py::test_dist_missing_data
+		# TODO
+		tests/test_pytest_cov.py::test_contexts
+	)
+
+	# TODO: why do we need to do that?!
+	# https://github.com/pytest-dev/pytest-cov/issues/517
+	ln -s "${BROOT}$(python_get_sitedir)/coverage" \
+		"${BUILD_DIR}/install$(python_get_sitedir)/coverage" || die
+
+	epytest
+
+	rm "${BUILD_DIR}/install$(python_get_sitedir)/coverage" || die
+}


             reply	other threads:[~2022-10-01 16:24 UTC|newest]

Thread overview: 98+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-01 16:24 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-04-11 19:04 [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-cov/ Michał Górny
2024-04-11 16:35 Arthur Zamarin
2024-03-25  4:47 Michał Górny
2023-10-10  8:14 Michał Górny
2023-10-10  8:14 Michał Górny
2023-10-10  8:14 Michał Górny
2023-10-10  5:10 Michał Górny
2023-10-10  5:10 Michał Górny
2023-10-10  5:10 Michał Górny
2023-07-11  9:17 Michał Górny
2023-07-11  8:43 Jakov Smolić
2023-05-26 18:04 Michał Górny
2023-05-26 18:04 Michał Górny
2023-05-26 18:04 Michał Górny
2023-02-20  6:24 Michał Górny
2023-02-20  6:24 Michał Górny
2023-01-05 16:56 Michał Górny
2022-11-19  8:44 Arthur Zamarin
2022-11-19  8:39 Arthur Zamarin
2022-10-12 14:52 Michał Górny
2022-02-27 18:46 Michał Górny
2022-01-23 14:56 Michał Górny
2022-01-23 14:56 Michał Górny
2021-11-05  5:40 Arthur Zamarin
2021-11-05  2:12 Sam James
2021-10-04  8:05 Michał Górny
2021-09-21 21:37 James Le Cuirot
2021-06-23 21:27 Michał Górny
2021-06-14 22:30 Michał Górny
2021-06-14 22:18 Sam James
2021-06-01 22:44 Michał Górny
2021-05-15  8:39 Michał Górny
2021-02-24 22:30 Michał Górny
2021-02-24 22:05 Sam James
2021-02-19  8:58 Michał Górny
2021-02-19  2:54 Sam James
2021-01-30 19:31 Sam James
2021-01-21 10:52 Michał Górny
2021-01-18 11:42 Michał Górny
2021-01-18 11:42 Michał Górny
2020-12-01 10:41 Andrey Grozin
2020-11-18  8:47 Michał Górny
2020-10-16 18:22 Michał Górny
2020-08-01 21:48 Michał Górny
2020-06-16  8:18 Michał Górny
2020-03-28 18:49 Michał Górny
2020-03-28 18:49 Michał Górny
2020-03-28 18:49 Michał Górny
2020-03-26 10:19 Agostino Sarubbo
2020-03-26  8:29 Agostino Sarubbo
2020-03-25 17:44 Agostino Sarubbo
2020-03-25 16:14 Agostino Sarubbo
2020-03-25 16:12 Agostino Sarubbo
2019-12-02 21:13 Aaron Bauman
2019-11-25 12:35 Michał Górny
2019-10-12 20:23 Matt Turner
2019-04-12 13:47 Virgil Dupras
2019-04-12 13:03 Virgil Dupras
2018-12-03 12:16 Virgil Dupras
2018-11-09 13:42 Alexey Shvetsov
2018-08-14  6:41 Mart Raudsepp
2018-06-22 15:06 Mikle Kolyada
2018-05-04 15:17 Mart Raudsepp
2018-03-27 23:15 Matt Turner
2018-03-07 19:47 Markus Meier
2018-02-22 15:52 Michał Górny
2018-01-24 22:53 Sergei Trofimovich
2018-01-13 12:16 Sergei Trofimovich
2018-01-13 11:32 Sergei Trofimovich
2018-01-03 19:51 Sergei Trofimovich
2018-01-03  9:25 Michał Górny
2018-01-03  9:11 Michał Górny
2018-01-03  9:11 Michał Górny
2017-08-02  4:06 Sebastien Fabbro
2017-03-22 19:48 Markus Meier
2017-03-11 17:07 Agostino Sarubbo
2017-02-25 10:03 Agostino Sarubbo
2017-02-23 16:35 Michael Weber
2017-02-23 16:35 Michael Weber
2017-02-23 14:12 Michael Weber
2017-02-21 11:54 Tobias Klausmann
2017-02-19  8:40 Markus Meier
2017-02-12 22:20 Zac Medico
2017-02-12 17:10 Agostino Sarubbo
2017-02-12 16:25 Agostino Sarubbo
2017-02-06 14:55 Agostino Sarubbo
2017-02-04 12:08 Jeroen Roovers
2017-01-25  6:39 Jeroen Roovers
2016-02-01 16:27 Justin Lecher
2015-11-09 11:49 Justin Lecher
2015-10-15  8:57 Justin Lecher
2015-10-15  8:26 Justin Lecher
2015-10-14 17:21 Michał Górny
2015-09-29 13:03 Tobias Klausmann
2015-09-27 18:16 Justin Lecher
2015-09-22  7:02 Justin Lecher
2015-09-09  9:49 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=1664639651.58368fd32c23c4facee8cfcbf99236ce4b51d94e.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