From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/unittest-or-fail/
Date: Sun, 14 Mar 2021 15:20:58 +0000 (UTC) [thread overview]
Message-ID: <1615735255.904dacc249f7ed33376457c5f65b93a7b384dd7b.mgorny@gentoo> (raw)
commit: 904dacc249f7ed33376457c5f65b93a7b384dd7b
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 14 15:05:30 2021 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Mar 14 15:20:55 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=904dacc2
dev-python/unittest-or-fail: New package to aid running unittests
New package to ensure that src_test() will fail if unittest does not
discover any tests.
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/unittest-or-fail/Manifest | 1 +
dev-python/unittest-or-fail/metadata.xml | 11 ++++++++++
.../unittest-or-fail/unittest-or-fail-0.ebuild | 25 ++++++++++++++++++++++
3 files changed, 37 insertions(+)
diff --git a/dev-python/unittest-or-fail/Manifest b/dev-python/unittest-or-fail/Manifest
new file mode 100644
index 00000000000..8ce67bb37ef
--- /dev/null
+++ b/dev-python/unittest-or-fail/Manifest
@@ -0,0 +1 @@
+DIST unittest-or-fail-0.tar.gz 2445 BLAKE2B 42d97fb3bd7e825ecf521ebbb435ca3973f83e107d86848f2c03d6d2321c9b87ec68db159e658bd5eead5321b7085ecec5350947818f55141eb18eb72719e2ad SHA512 8df21f5e235e03f4b5a8ae351420ac667612afddeb52a27bb2d4812bedbea87ba857dedfa37001a72872529b7c1984d15ddda93edfa6f989f0990b72c4b57baf
diff --git a/dev-python/unittest-or-fail/metadata.xml b/dev-python/unittest-or-fail/metadata.xml
new file mode 100644
index 00000000000..22e0d6d87f6
--- /dev/null
+++ b/dev-python/unittest-or-fail/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-python/unittest-or-fail/unittest-or-fail-0.ebuild b/dev-python/unittest-or-fail/unittest-or-fail-0.ebuild
new file mode 100644
index 00000000000..71a06e180e2
--- /dev/null
+++ b/dev-python/unittest-or-fail/unittest-or-fail-0.ebuild
@@ -0,0 +1,25 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DISTUTILS_USE_SETUPTOOLS=no
+PYTHON_COMPAT=( python3_{7..9} pypy3 )
+inherit distutils-r1
+
+DESCRIPTION="Run unittests or fail if no tests were found"
+HOMEPAGE="https://github.com/mgorny/unittest-or-fail/"
+SRC_URI="
+ https://github.com/mgorny/unittest-or-fail/archive/v${PV}.tar.gz
+ -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# Warning: do not use distutils_enable_tests to avoid a circular
+# dependency on itself!
+python_test() {
+ "${EPYTHON}" -m unittest -v test/test_unittest_or_fail.py ||
+ die "Tests failed with ${EPYTHON}"
+}
next reply other threads:[~2021-03-14 15:21 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-14 15:20 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-03-15 3:07 [gentoo-commits] repo/gentoo:master commit in: dev-python/unittest-or-fail/ Sam James
2021-03-15 6:38 Sam James
2021-03-15 6:43 Sam James
2021-03-15 6:43 Sam James
2021-03-15 6:45 Sam James
2021-03-15 6:46 Sam James
2021-03-15 6:49 Sam James
2021-03-15 6:54 Sam James
2021-03-15 7:02 Sam James
2021-03-15 7:43 Sam James
2021-03-15 7:52 Fabian Groffen
2021-03-16 12:21 Michał Górny
2021-03-22 0:10 Sam James
2021-03-22 0:10 Sam James
2021-03-24 19:42 Sam James
2021-03-25 17:52 Sergei Trofimovich
2021-03-25 21:29 Sam James
2021-03-25 21:32 Sam James
2021-03-26 11:50 Agostino Sarubbo
2021-03-26 18:40 Sam James
2021-03-26 20:34 Michał Górny
2021-03-27 17:57 Matt Turner
2021-03-28 10:13 Mikle Kolyada
2021-05-04 15:40 Michał Górny
2021-05-23 23:36 Joshua Kinard
2022-01-30 13:09 Michał Górny
2022-03-16 7:56 Michał Górny
2022-04-06 17:48 Michał Górny
2022-05-09 20:38 Michał Górny
2022-05-31 7:08 Jakov Smolić
2022-05-31 7:22 Michał Górny
2022-07-28 12:00 Sam James
2023-03-09 7:38 Arthur Zamarin
2023-10-20 14:55 Michał Górny
2024-07-06 16:39 Michał Górny
2024-07-27 6:44 Arthur Zamarin
2024-07-27 9:44 Michał Górny
2025-02-15 7:12 Michał Górny
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=1615735255.904dacc249f7ed33376457c5f65b93a7b384dd7b.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