Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sgmllib3k/
Date: Fri, 17 Sep 2021 18:11:49
Message-Id: 1631902065.1450271cdd4fd7d5586c3eea9f13fd288ec6ae9d.arthurzam@gentoo
1 commit: 1450271cdd4fd7d5586c3eea9f13fd288ec6ae9d
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 17 18:07:45 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 17 18:07:45 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1450271c
7
8 dev-python/sgmllib3k: enable py3.10, add tests
9
10 Upstream repository is long gone, and with it the test file that
11 could be used for testing. After long searches, found the test
12 file in some web archive. But it needed small fixes for py3.10,
13 which were done, and the test file was uploaded to ~arthurzam.
14
15 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
16
17 dev-python/sgmllib3k/Manifest | 1 +
18 dev-python/sgmllib3k/sgmllib3k-1.0.0.ebuild | 11 +++++++++--
19 2 files changed, 10 insertions(+), 2 deletions(-)
20
21 diff --git a/dev-python/sgmllib3k/Manifest b/dev-python/sgmllib3k/Manifest
22 index 5f5d490e190..2ace818dd11 100644
23 --- a/dev-python/sgmllib3k/Manifest
24 +++ b/dev-python/sgmllib3k/Manifest
25 @@ -1 +1,2 @@
26 DIST sgmllib3k-1.0.0.tar.gz 5750 BLAKE2B 188ac3c55245ff431e1ad7981f706f1a8fce3e9f3aaf844252c02da1189e5b9c7d29b76d803cbbcfc157fbb1ec7f36245186693472b95ed1634a2989185308ae SHA512 f9238afb831356f66b1c3e55975e0ea88007ffe1469b8b4e325e704d1915eb0ab120f5f9e98f36eeb4bf6204a1938d8a4d5a424f0cc054b141ac94adc8ef8ca9
27 +DIST test_sgmllib.py.gz 3769 BLAKE2B 026a843eaeb698d87e0137453b7f82763dee9a1ca446fc2c2fa9af8324297176749b041dfc2fc4c1954d743d9cfb7e773a189d99f22f7dc55ea1de486da80dd4 SHA512 722b79aa8b38626540bc331f9edb36919a8fb2561c5526be19509a58901aa1e2582e312fc2ace09cae54cb62577f266fcb10a1d98ab10685e2c79a17fea2f124
28
29 diff --git a/dev-python/sgmllib3k/sgmllib3k-1.0.0.ebuild b/dev-python/sgmllib3k/sgmllib3k-1.0.0.ebuild
30 index 7d34b5788ff..d61a1417da3 100644
31 --- a/dev-python/sgmllib3k/sgmllib3k-1.0.0.ebuild
32 +++ b/dev-python/sgmllib3k/sgmllib3k-1.0.0.ebuild
33 @@ -3,13 +3,20 @@
34
35 EAPI=7
36
37 -PYTHON_COMPAT=( python3_{7..9} pypy3 )
38 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
39 inherit distutils-r1
40
41 DESCRIPTION="Py3k port of sgmllib"
42 HOMEPAGE="https://pypi.org/project/sgmllib3k/"
43 -SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
44 +SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz
45 + test? ( https://dev.gentoo.org/~arthurzam/distfiles/dev-python/${PN}/test_sgmllib.py.gz )"
46
47 LICENSE="PSF-2"
48 SLOT="0"
49 KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~x86-solaris"
50 +IUSE="test"
51 +RESTRICT="!test? ( test )"
52 +
53 +python_test() {
54 + "${EPYTHON}" "${WORKDIR}/test_sgmllib.py" -v || die "Tests failed with ${EPYTHON}"
55 +}