commit: 3d14a319be0352299d8834195b223da6322ebef8 Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net> AuthorDate: Mon Jun 12 22:02:16 2023 +0000 Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net> CommitDate: Mon Jun 12 22:19:31 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3d14a319
app-admin/gentoo_update: fix tests * Make use of distutils-r1 eclass to set the correct dependencies for simple testing via the unittest runner. * Fetch source with a sensible name. This program is not packaged correctly upstream: https://github.com/Lab-Brat/gentoo_update/issues/7 Bug: https://bugs.gentoo.org/908307 Bug: https://bugs.gentoo.org/908308 Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net> app-admin/gentoo_update/Manifest | 4 +--- app-admin/gentoo_update/gentoo_update-0.1.3.ebuild | 11 +++++------ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/app-admin/gentoo_update/Manifest b/app-admin/gentoo_update/Manifest index 0f730ef72..4e240f25a 100644 --- a/app-admin/gentoo_update/Manifest +++ b/app-admin/gentoo_update/Manifest @@ -1,3 +1 @@ -DIST 0.1.3.tar.gz 7356 BLAKE2B 497e8329f1cf335d699ab4f5549e6d35661e4f761d1b2890bb808383a7d30b621a289ba63e64da44dd57f46407410ce491531e1b85ab68b4ff48f48d7dcf2901 SHA512 c64d46337037a99b3d122a0cda4f1bceddec17432fdc28807f270a1f12edf3d50c4cac0f50c6ac437f5eb73f6d9dc6e065d0be870d39494d7ca635935f7f0561 -EBUILD gentoo_update-0.1.3.ebuild 511 BLAKE2B 742d55359537ef19f4e4ad55b6fcb7ec2f7eb779105ff44ee7398bebfe8fbf3af5a1068e46d1b16480f4fe9cbd45119b6cd5ede8d14c0f8b7bd87c73a76d3a65 SHA512 7c0893c6f992b1d9682d9e29e726500e5e2712b5fd55b61843665544947b12584610fd65d4048ded17828504a4e1dc8243f468c17b9aee079d540dfc2147831c -MISC metadata.xml 248 BLAKE2B f5ba454b03595a3a57657a2eb5fb7d95e2b97905f4dfae8e20ab39caa9da1a0e98bf2428cecc367bb55bd4fe9442e06e82a9a80ccff93f29d83aa65ee900add4 SHA512 8c19092e1c24e10bc4b030e6d6852f0175425d2343c2894bd964bff0402b0e8b61ff5d6ea24300db3939488ccb44ef1dfc6acba66427bdfa794dca7fdf82f18f +DIST gentoo_update-0.1.3.gh.tar.gz 7356 BLAKE2B 497e8329f1cf335d699ab4f5549e6d35661e4f761d1b2890bb808383a7d30b621a289ba63e64da44dd57f46407410ce491531e1b85ab68b4ff48f48d7dcf2901 SHA512 c64d46337037a99b3d122a0cda4f1bceddec17432fdc28807f270a1f12edf3d50c4cac0f50c6ac437f5eb73f6d9dc6e065d0be870d39494d7ca635935f7f0561 diff --git a/app-admin/gentoo_update/gentoo_update-0.1.3.ebuild b/app-admin/gentoo_update/gentoo_update-0.1.3.ebuild index 505abb059..0f72acc65 100644 --- a/app-admin/gentoo_update/gentoo_update-0.1.3.ebuild +++ b/app-admin/gentoo_update/gentoo_update-0.1.3.ebuild @@ -2,22 +2,21 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=8 +DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{9,10,11} ) inherit distutils-r1 DESCRIPTION="Gentoo Linux updater" HOMEPAGE="https://github.com/Lab-Brat/gentoo_update" -SRC_URI="https://github.com/Lab-Brat/gentoo_update/archive/refs/tags/${PV}.tar.gz" +SRC_URI="https://github.com/Lab-Brat/gentoo_update/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" -DEPEND="${PYTHON_DEPS}" -RDEPEND="${DEPEND}" +distutils_enable_tests unittest src_test() { - ${EPYTHON} -m unittest discover -v || die "Tests failed" + cd tests || die + distutils-r1_src_test } -
