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/unittest-or-fail/
Date: Sat,  6 Jul 2024 16:39:17 +0000 (UTC)	[thread overview]
Message-ID: <1720283870.40f62ca6b3ababb3f6c62ce0807bcffb63f1c0b6.mgorny@gentoo> (raw)

commit:     40f62ca6b3ababb3f6c62ce0807bcffb63f1c0b6
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  6 16:35:18 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jul  6 16:37:50 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40f62ca6

dev-python/unittest-or-fail: Make py3.12 and py3.13 support fake

Do not install any files for Python 3.12 or 3.13, but keep them
in PYTHON_COMPAT to make dependency graphs happier.

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

 .../unittest-or-fail/unittest-or-fail-2-r1.ebuild  | 45 ++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/dev-python/unittest-or-fail/unittest-or-fail-2-r1.ebuild b/dev-python/unittest-or-fail/unittest-or-fail-2-r1.ebuild
new file mode 100644
index 000000000000..522d10ee8ad3
--- /dev/null
+++ b/dev-python/unittest-or-fail/unittest-or-fail-2-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 2021-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=flit
+# in py3.12+ unittest already fails when no tests are found
+# we're adding these impls to PYTHON_COMPAT to clean up upgrade graphs
+# but we're not installing anything
+PYTHON_USED=( pypy3 python3_{10..11} )
+PYTHON_COMPAT=( "${PYTHON_USED[@]}" python3_{12..13} )
+
+inherit distutils-r1
+
+DESCRIPTION="Run unittests or fail if no tests were found"
+HOMEPAGE="https://github.com/projg2/unittest-or-fail/"
+SRC_URI="
+	https://github.com/projg2/unittest-or-fail/archive/v${PV}.tar.gz
+		-> ${P}.tar.gz
+"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+
+python_compile() {
+	if has "${EPYTHON/./_}" "${PYTHON_USED[@]}"; then
+		distutils-r1_python_compile
+	fi
+}
+
+# Warning: do not use distutils_enable_tests to avoid a circular
+# dependency on itself!
+python_test() {
+	if has "${EPYTHON/./_}" "${PYTHON_USED[@]}"; then
+		"${EPYTHON}" -m unittest -v test/test_unittest_or_fail.py ||
+			die "Tests failed with ${EPYTHON}"
+	fi
+}
+
+python_install() {
+	if has "${EPYTHON/./_}" "${PYTHON_USED[@]}"; then
+		distutils-r1_python_install
+	fi
+}


             reply	other threads:[~2024-07-06 16:39 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-06 16:39 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-27  9:44 [gentoo-commits] repo/gentoo:master commit in: dev-python/unittest-or-fail/ Michał Górny
2024-07-27  6:44 Arthur Zamarin
2023-10-20 14:55 Michał Górny
2023-03-09  7:38 Arthur Zamarin
2022-07-28 12:00 Sam James
2022-05-31  7:22 Michał Górny
2022-05-31  7:08 Jakov Smolić
2022-05-09 20:38 Michał Górny
2022-04-06 17:48 Michał Górny
2022-03-16  7:56 Michał Górny
2022-01-30 13:09 Michał Górny
2021-05-23 23:36 Joshua Kinard
2021-05-04 15:40 Michał Górny
2021-03-28 10:13 Mikle Kolyada
2021-03-27 17:57 Matt Turner
2021-03-26 20:34 Michał Górny
2021-03-26 18:40 Sam James
2021-03-26 11:50 Agostino Sarubbo
2021-03-25 21:32 Sam James
2021-03-25 21:29 Sam James
2021-03-25 17:52 Sergei Trofimovich
2021-03-24 19:42 Sam James
2021-03-22  0:10 Sam James
2021-03-22  0:10 Sam James
2021-03-16 12:21 Michał Górny
2021-03-15  7:52 Fabian Groffen
2021-03-15  7:43 Sam James
2021-03-15  7:02 Sam James
2021-03-15  6:54 Sam James
2021-03-15  6:49 Sam James
2021-03-15  6:46 Sam James
2021-03-15  6:45 Sam James
2021-03-15  6:43 Sam James
2021-03-15  6:43 Sam James
2021-03-15  6:38 Sam James
2021-03-15  3:07 Sam James
2021-03-14 15:20 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=1720283870.40f62ca6b3ababb3f6c62ce0807bcffb63f1c0b6.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