From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 034C2158092 for ; Fri, 17 Sep 2021 18:11:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2C2A7E05AC; Fri, 17 Sep 2021 18:11:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EDE7FE083D for ; Fri, 17 Sep 2021 18:11:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C4BD8342BC0 for ; Fri, 17 Sep 2021 18:11:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ED0B7E5 for ; Fri, 17 Sep 2021 18:11:44 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1631902065.1450271cdd4fd7d5586c3eea9f13fd288ec6ae9d.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sgmllib3k/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/sgmllib3k/Manifest dev-python/sgmllib3k/sgmllib3k-1.0.0.ebuild X-VCS-Directories: dev-python/sgmllib3k/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 1450271cdd4fd7d5586c3eea9f13fd288ec6ae9d X-VCS-Branch: master Date: Fri, 17 Sep 2021 18:11:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 902bb701-6fea-48cd-9a35-6ff0e208a53f X-Archives-Hash: 06ac2e81f886997c032a97eb50b108c2 commit: 1450271cdd4fd7d5586c3eea9f13fd288ec6ae9d Author: Arthur Zamarin gentoo org> AuthorDate: Fri Sep 17 18:07:45 2021 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Fri Sep 17 18:07:45 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1450271c dev-python/sgmllib3k: enable py3.10, add tests Upstream repository is long gone, and with it the test file that could be used for testing. After long searches, found the test file in some web archive. But it needed small fixes for py3.10, which were done, and the test file was uploaded to ~arthurzam. Signed-off-by: Arthur Zamarin gentoo.org> dev-python/sgmllib3k/Manifest | 1 + dev-python/sgmllib3k/sgmllib3k-1.0.0.ebuild | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dev-python/sgmllib3k/Manifest b/dev-python/sgmllib3k/Manifest index 5f5d490e190..2ace818dd11 100644 --- a/dev-python/sgmllib3k/Manifest +++ b/dev-python/sgmllib3k/Manifest @@ -1 +1,2 @@ DIST sgmllib3k-1.0.0.tar.gz 5750 BLAKE2B 188ac3c55245ff431e1ad7981f706f1a8fce3e9f3aaf844252c02da1189e5b9c7d29b76d803cbbcfc157fbb1ec7f36245186693472b95ed1634a2989185308ae SHA512 f9238afb831356f66b1c3e55975e0ea88007ffe1469b8b4e325e704d1915eb0ab120f5f9e98f36eeb4bf6204a1938d8a4d5a424f0cc054b141ac94adc8ef8ca9 +DIST test_sgmllib.py.gz 3769 BLAKE2B 026a843eaeb698d87e0137453b7f82763dee9a1ca446fc2c2fa9af8324297176749b041dfc2fc4c1954d743d9cfb7e773a189d99f22f7dc55ea1de486da80dd4 SHA512 722b79aa8b38626540bc331f9edb36919a8fb2561c5526be19509a58901aa1e2582e312fc2ace09cae54cb62577f266fcb10a1d98ab10685e2c79a17fea2f124 diff --git a/dev-python/sgmllib3k/sgmllib3k-1.0.0.ebuild b/dev-python/sgmllib3k/sgmllib3k-1.0.0.ebuild index 7d34b5788ff..d61a1417da3 100644 --- a/dev-python/sgmllib3k/sgmllib3k-1.0.0.ebuild +++ b/dev-python/sgmllib3k/sgmllib3k-1.0.0.ebuild @@ -3,13 +3,20 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7..9} pypy3 ) +PYTHON_COMPAT=( python3_{8..10} pypy3 ) inherit distutils-r1 DESCRIPTION="Py3k port of sgmllib" HOMEPAGE="https://pypi.org/project/sgmllib3k/" -SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" +SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz + test? ( https://dev.gentoo.org/~arthurzam/distfiles/dev-python/${PN}/test_sgmllib.py.gz )" LICENSE="PSF-2" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~x86-solaris" +IUSE="test" +RESTRICT="!test? ( test )" + +python_test() { + "${EPYTHON}" "${WORKDIR}/test_sgmllib.py" -v || die "Tests failed with ${EPYTHON}" +}