summaryrefslogtreecommitdiff
path: root/dev-python/manuel
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-11-09 09:25:48 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-11-09 09:25:48 +0000
commitfc2c8b325a27d1dd0e181a50517601b4fde8aa7f (patch)
treeef1849fa20636bdbda9fa704f3bfba6ee73bd418 /dev-python/manuel
parent7db983f17e59dfa621d994bcbdbddc71a6e70a57 (diff)
gentoo auto-resync : 09:11:2022 - 09:25:48
Diffstat (limited to 'dev-python/manuel')
-rw-r--r--dev-python/manuel/Manifest3
-rw-r--r--dev-python/manuel/files/manuel-1.12.4-tests-python311.patch22
-rw-r--r--dev-python/manuel/manuel-1.12.4.ebuild6
3 files changed, 29 insertions, 2 deletions
diff --git a/dev-python/manuel/Manifest b/dev-python/manuel/Manifest
index 013bdb296573..54107bdcc5b8 100644
--- a/dev-python/manuel/Manifest
+++ b/dev-python/manuel/Manifest
@@ -1,3 +1,4 @@
+AUX manuel-1.12.4-tests-python311.patch 793 BLAKE2B b5af04ad5b1508d35683e44c6fcfaf5c5d364c14f81d569c7971179a959c2eea98d70d077c45fa9473e4ae79f4a471f51e587c421588bb2e0795cbfc2cbd3c55 SHA512 1a89e91cbb63c5d040aa08afbb86e5fecf4fd8fb4d43079ac0fcb71d1e9d6cde7ba0c7eb042016e5e5eff8c594785662be3972c4667dc4e18ad7dcc1fa856eb8
DIST manuel-1.12.4.tar.gz 45369 BLAKE2B e15f9261854fbad8ee1e1dc8645ec286a212c460a78fff1576b6886d8bf462ffe9a5484338fd9efc2bf053a7689e16b08de55f763ae319e66a363c5c28cf2a60 SHA512 cd65307f2ca94e66d88bc0c7c75702d49f505b358ebb812fd20906036ba10f2d1d11d2d69404b88c5f10b584dea05a988b5dc8ba07210b9d20ebd8a11b701633
-EBUILD manuel-1.12.4.ebuild 752 BLAKE2B f4927ae883af1e7591d18f7bf4628c277ae705545f6be141815fdbd3a2b7b1ed7bb93bfd2813647c7dd98c2a9852b20d88164b6dbe10a77506c82d6b87f11f17 SHA512 e905aa42718cdf3ffb0caabc283ec84a1b8e580e32f22a1e06fb7d5e6c11adc4eb1be5c94e6ef6e335b8ce0a566185ad5081236d48c03cc460aa0b131e8b8e35
+EBUILD manuel-1.12.4.ebuild 807 BLAKE2B b5459f14b99e6b266a62a33943d9bdab51ba030302c180e4ab219b4e52ca8c8e3fa6c2109e204db3f74b291a8370aca756fa530ac29ae3eb89b8bbef5f8c8d3d SHA512 e9dad73f7ab25f52ee8a33f87dab645b77d80abf53bd20a340ad007132976828034f964089a962fa3c35d7e5ff5039acc0e601e366043834c183ca20e47c5c94
MISC metadata.xml 391 BLAKE2B 6b95f9d29d8df2b9f0cfd85012a7d751f443c3bc67f6254c376f8cd3c1c66e2972bc165edc8db6b5ef2851edf3e870cc2ca76d3f6f3c06daeb247ee349407f45 SHA512 ace493867fc08487876a55331b619a62b01e269d7b5307b2ae9e016d75ee9058f2e1354bd2e3243ef1b0cfff30cc3f8f661675e03c1ac07fb805f443b31c64ad
diff --git a/dev-python/manuel/files/manuel-1.12.4-tests-python311.patch b/dev-python/manuel/files/manuel-1.12.4-tests-python311.patch
new file mode 100644
index 000000000000..5a6ef9dc3b7d
--- /dev/null
+++ b/dev-python/manuel/files/manuel-1.12.4-tests-python311.patch
@@ -0,0 +1,22 @@
+https://github.com/benji-york/manuel/pull/32
+
+From d9f12d03e39bb76e4bb3ba43ad51af6d3e9d45c0 Mon Sep 17 00:00:00 2001
+From: Matt Jolly <Matt.Jolly@footclan.ninja>
+Date: Mon, 6 Jun 2022 22:44:22 +1000
+Subject: [PATCH] Replace TextTestResult with TestResult for Py3.11
+
+--- a/src/manuel/index.txt
++++ b/src/manuel/index.txt
+@@ -211,10 +211,7 @@ When tests are run this way:
+
+ >>> sys.stdout.writeln = lambda s: sys.stdout.write(s+'\n')
+ >>> suite = loader.loadTestsFromTestCase(MyTest)
+- >>> result = suite.run(unittest.TextTestResult(sys.stdout, True, 3))
+- test1 (tests.MyTest) ... ok
+- test2 (tests.MyTest) ... ok
+- test3 (tests.MyTest) ... FAIL
++ >>> result = suite.run(unittest.TestResult(True, 3))
+
+ >>> for _, e in result.errors:
+ ... print(e); print
+
diff --git a/dev-python/manuel/manuel-1.12.4.ebuild b/dev-python/manuel/manuel-1.12.4.ebuild
index 53d57dc4f904..51d2168b7d8b 100644
--- a/dev-python/manuel/manuel-1.12.4.ebuild
+++ b/dev-python/manuel/manuel-1.12.4.ebuild
@@ -4,7 +4,7 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{8..10} )
+PYTHON_COMPAT=( python3_{8..11} )
inherit distutils-r1
@@ -28,6 +28,10 @@ BDEPEND="
)
"
+PATCHES=(
+ "${FILESDIR}"/${P}-tests-python311.patch
+)
+
distutils_enable_tests setup.py
src_prepare() {