public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/limnoria/
Date: Wed, 25 Oct 2023 02:26:52 +0000 (UTC)	[thread overview]
Message-ID: <1698200542.c58d89d5f1dc63231baa5a0280664ffe6ec6af4a.sam@gentoo> (raw)

commit:     c58d89d5f1dc63231baa5a0280664ffe6ec6af4a
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Tue Oct 17 23:57:59 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Oct 25 02:22:22 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c58d89d5

net-irc/limnoria: drop unneeded test dependency on mock

With this, we can remove the "test" USE flag altogether.

Since 2015, the stdlib mock has been used if available:
https://github.com/progval/Limnoria/commit/758dc6d57f4aa0c3768f494715445d789a5cd6d8

(In 20230211 even the python2 fallback code is removed.)

Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...99999999.ebuild => limnoria-20221116-r1.ebuild} | 28 ++++++++++------------
 net-irc/limnoria/limnoria-99999999.ebuild          |  4 +---
 2 files changed, 14 insertions(+), 18 deletions(-)

diff --git a/net-irc/limnoria/limnoria-99999999.ebuild b/net-irc/limnoria/limnoria-20221116-r1.ebuild
similarity index 76%
copy from net-irc/limnoria/limnoria-99999999.ebuild
copy to net-irc/limnoria/limnoria-20221116-r1.ebuild
index 9f3c9f0c7e1d..3da735a7e56b 100644
--- a/net-irc/limnoria/limnoria-99999999.ebuild
+++ b/net-irc/limnoria/limnoria-20221116-r1.ebuild
@@ -4,7 +4,7 @@
 EAPI=7
 
 PYTHON_COMPAT=( python3_{9..11} )
-DISTUTILS_USE_SETUPTOOLS=no
+DISTUTILS_IN_SOURCE_BUILD=yes # needed for tests
 inherit distutils-r1
 
 MY_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}"
@@ -18,15 +18,14 @@ if [[ ${PV} == *9999 ]]; then
 else
 	SRC_URI="https://github.com/ProgVal/${MY_PN}/archive/master-${MY_PV}.tar.gz -> ${P}.tar.gz"
 	S="${WORKDIR}/${MY_PN}-master-${MY_PV}"
-	KEYWORDS="~amd64 ~x86"
+	KEYWORDS="~amd64 ~riscv ~x86"
 fi
 
 DESCRIPTION="Python based extensible IRC infobot and channel bot"
 HOMEPAGE="https://docs.limnoria.net"
 LICENSE="BSD GPL-2 GPL-2+"
 SLOT="0"
-IUSE="crypt ssl test"
-RESTRICT=" !test? ( test )"
+IUSE="crypt ssl"
 
 RDEPEND="
 	dev-python/chardet[${PYTHON_USEDEP}]
@@ -38,15 +37,12 @@ RDEPEND="
 	dev-python/PySocks[${PYTHON_USEDEP}]
 	dev-python/sqlalchemy[${PYTHON_USEDEP}]
 	crypt? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )
-	ssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] )
-	!net-irc/supybot
-	!net-irc/supybot-plugins"
-BDEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )"
+	ssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] )"
 
-python_prepare() {
-	einfo "Removing the RSS plugin because of clashes between libxml2's Python3"
-	einfo "bindings and feedparser."
-	rm -r "plugins/RSS" || die
+python_prepare_all() {
+	# replace "installed on ${timestamp}" with real version
+	echo "version='${MY_PV//-/.}'" > "${S}"/src/version.py || die
+	distutils-r1_python_prepare_all
 }
 
 python_test() {
@@ -55,9 +51,11 @@ python_test() {
 	EXCLUDE_PLUGINS=()
 	# intermittent failure due to issues loading libsandbox.so from LD_PRELOAD
 	# runs successfully when running the tests on the installed system
-	EXCLUDE_PLUGINS+=( --exclude="${PLUGINS_DIR}/Unix" )
-	# Runs despite --no-network (GH #1392)
-	EXCLUDE_PLUGINS+=( --exclude="${PLUGINS_DIR}/Aka" )
+	EXCLUDE_PLUGINS+=(
+		--exclude="${PLUGINS_DIR}/Unix"
+		--exclude="${PLUGINS_DIR}/Aka"
+		--exclude="${PLUGINS_DIR}/Misc"
+	)
 	"${EPYTHON}" "${BUILD_DIR}"/scripts/supybot-test "${BUILD_DIR}/../test" \
 		--plugins-dir="${PLUGINS_DIR}" --no-network \
 		--disable-multiprocessing "${EXCLUDE_PLUGINS[@]}" \

diff --git a/net-irc/limnoria/limnoria-99999999.ebuild b/net-irc/limnoria/limnoria-99999999.ebuild
index 9f3c9f0c7e1d..2bb6c682e6e1 100644
--- a/net-irc/limnoria/limnoria-99999999.ebuild
+++ b/net-irc/limnoria/limnoria-99999999.ebuild
@@ -25,8 +25,7 @@ DESCRIPTION="Python based extensible IRC infobot and channel bot"
 HOMEPAGE="https://docs.limnoria.net"
 LICENSE="BSD GPL-2 GPL-2+"
 SLOT="0"
-IUSE="crypt ssl test"
-RESTRICT=" !test? ( test )"
+IUSE="crypt ssl"
 
 RDEPEND="
 	dev-python/chardet[${PYTHON_USEDEP}]
@@ -41,7 +40,6 @@ RDEPEND="
 	ssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] )
 	!net-irc/supybot
 	!net-irc/supybot-plugins"
-BDEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )"
 
 python_prepare() {
 	einfo "Removing the RSS plugin because of clashes between libxml2's Python3"


             reply	other threads:[~2023-10-25  2:26 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-25  2:26 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-23 18:45 [gentoo-commits] repo/gentoo:master commit in: net-irc/limnoria/ Arthur Zamarin
2025-03-23 18:45 Arthur Zamarin
2024-07-30 19:01 Pacho Ramos
2024-07-30 19:01 Pacho Ramos
2024-07-30 19:01 Pacho Ramos
2023-04-09 16:03 Michał Górny
2022-11-20  7:32 Sam Jorna
2022-10-09  6:19 Sam Jorna
2022-10-09  6:19 Sam Jorna
2022-08-28  4:08 Sam Jorna
2022-08-28  4:08 Sam Jorna
2022-05-14  7:37 Sam Jorna
2022-05-14  7:37 Sam Jorna
2022-02-11  7:36 Sam Jorna
2022-02-11  7:36 Sam Jorna
2021-12-13  9:28 Sam Jorna
2021-10-23 20:55 Conrad Kostecki
2021-09-17 19:23 Arthur Zamarin
2021-06-20  2:48 Sam Jorna
2021-06-20  2:48 Sam Jorna
2021-05-30  4:35 Sam Jorna
2021-05-30  4:35 Sam Jorna
2021-04-17  2:05 Sam Jorna
2021-04-17  2:05 Sam Jorna
2021-03-29  7:56 Sam Jorna
2021-03-29  7:56 Sam Jorna
2021-02-26 22:05 Sam James
2021-02-26 14:26 Sam James
2021-02-26 14:26 Sam James
2021-02-26 14:26 Sam James
2021-02-26 14:26 Sam James
2020-08-14 23:22 Andreas Sturmlechner
2020-02-11 12:16 Michał Górny
2019-12-04  6:15 Göktürk Yüksek
2019-12-02 17:24 Göktürk Yüksek
2019-12-02 17:24 Göktürk Yüksek
2018-06-26 19:51 Pacho Ramos
2017-11-12 16:50 NP Hardass
2017-07-30  9:44 Michał Górny
2017-07-12 14:43 Pacho Ramos
2015-09-04  2:51 NP Hardass

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=1698200542.c58d89d5f1dc63231baa5a0280664ffe6ec6af4a.sam@gentoo \
    --to=sam@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