summaryrefslogtreecommitdiff
path: root/dev-python/zope-testrunner
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-05-31 20:59:14 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-05-31 20:59:14 +0100
commite748ba9741f6540f4675c23e3e37b73e822c13a4 (patch)
tree23dece8beabb3a3d7c6c0273b0eb40b21c62a889 /dev-python/zope-testrunner
parent908778078736bd36f7a60a2d576d415cb8e000fa (diff)
gentoo resync : 31.05.2021
Diffstat (limited to 'dev-python/zope-testrunner')
-rw-r--r--dev-python/zope-testrunner/Manifest3
-rw-r--r--dev-python/zope-testrunner/files/zope-testrunner-5.3.0-fix-test-py3.10.patch64
-rw-r--r--dev-python/zope-testrunner/zope-testrunner-5.3.0.ebuild10
3 files changed, 73 insertions, 4 deletions
diff --git a/dev-python/zope-testrunner/Manifest b/dev-python/zope-testrunner/Manifest
index 1b7a17646420..2be003941db9 100644
--- a/dev-python/zope-testrunner/Manifest
+++ b/dev-python/zope-testrunner/Manifest
@@ -1,5 +1,6 @@
+AUX zope-testrunner-5.3.0-fix-test-py3.10.patch 3160 BLAKE2B 6ed60d4ec2e34fb36dacb81cc1b55d37e71546ac8b4f9ba9d1bff53f207a90699c4a3782952155ebccb233a22ef4f47fd0d2feab3b9d4fdf33aa88fefd9d6c01 SHA512 e47a8da060bbd402fdbaa0a5ff5c5682404702f10f7a17953a6fa12e350bd4413c22df926c05f9f16b640e08de58777e362c58ff775b7bd3811cf7885574f937
DIST zope.testrunner-5.2.tar.gz 141836 BLAKE2B 4a29a2377ece929658afbcf279f51cee445db46432d3ff15be43cb4c1d58b4b809b9077905aeeb5c970cda98bd867258091afe58b525a1716faa2c83e6502ea8 SHA512 8b5bb942f3ca42b6fa4de7db5b7149562aa1047128bbd3498a385f8537335cb0cab1a10934faedcd0a1492a14d57accdeefcb95a57d827ad80fff4e20ffd26ef
DIST zope.testrunner-5.3.0.tar.gz 141406 BLAKE2B f3434e9f22514fffe912385f61d163e42ba1dcd9e9d3f2b3f1d504b608c73804fa38b14a5ed1bf288b75b98ef106024a27de925c404ad67be6acc6c1d6c8f06d SHA512 6fd9375c7b58847868aaf04e85722fcc2b1fe7a8e4ae2ec9103dcb091e6f837d649557ba014146876f814345240b20863bf1584f32212b0b1b28c38ed343b87a
EBUILD zope-testrunner-5.2.ebuild 979 BLAKE2B d276c1fe01844f1c157def257119706ed0b241171f62b53deea2e70569f2d62fcdf6d754d274610a78c55020c670ca1797a61bc3b2ca3769aabf47abbb636c14 SHA512 89c2233d5caa6b8adf7eb5d4b909e554bc7d57e10051e53e18e97d3759cc5570423ec98fb6e6e381e1a6839fe45dc71799da443df4c01f73d22454ef9b211493
-EBUILD zope-testrunner-5.3.0.ebuild 983 BLAKE2B 326dffbafd007a86acb45a2da14a198b6657d41e8896e90cf6219290a12971bb6636402ce543f50d01b1ce5a6f7945a80c9267b70c8ab380008facc79f5608a2 SHA512 47cd4ed7ed1d8879bb479fef902f73ed9321dd75a0945cc79729d07f09e8abec3f43201e2c8f04b4672e919611ab3ec11be47257309dd860d3e4b2cfb5996653
+EBUILD zope-testrunner-5.3.0.ebuild 1039 BLAKE2B 105bfed4a0ddd0a7c43f21cea8d06516e2c6c7f270605bbcd8e7c3b04bd4e63b1778ae6f180e6ca3cbd188b4c03d2c94d77795f02bd2537835e8944e3aa94028 SHA512 5a436976e50600d2aa77aa11e12b11aa9ebe55e42c69defc17b29525533cafc4009411fcf25f34483b8c6e59f2d48f2a07bd94d42f2e157c6be5a4667fe27494
MISC metadata.xml 412 BLAKE2B 2bad0bfc23c6d11a25bb7aca8590bcd9efc8cc181a7aea19583dfd0134ba45860c787ea557374d8477dd336d8c54ee8a2f6d0e9b638b3f6c0e717924656b8fb5 SHA512 c147c65955c3436f1668f2b295cb63db1ecfe93a36ff944cee7abb3e4e722198223f05d2187dd637274f906e729dacd73f8285c91bf0b462082f5260ae52810b
diff --git a/dev-python/zope-testrunner/files/zope-testrunner-5.3.0-fix-test-py3.10.patch b/dev-python/zope-testrunner/files/zope-testrunner-5.3.0-fix-test-py3.10.patch
new file mode 100644
index 000000000000..6d495ba2cf5f
--- /dev/null
+++ b/dev-python/zope-testrunner/files/zope-testrunner-5.3.0-fix-test-py3.10.patch
@@ -0,0 +1,64 @@
+From af8bfec49d90613633b76e914a6f54884463ba94 Mon Sep 17 00:00:00 2001
+From: Jerry James <loganjerry@gmail.com>
+Date: Mon, 10 May 2021 09:55:23 -0600
+Subject: [PATCH] Adapt to python 3.10 SyntaxError messages
+
+---
+ .../testrunner/tests/testrunner-debugging-import-failure.rst | 2 +-
+ src/zope/testrunner/tests/testrunner-errors.rst | 2 +-
+ src/zope/testrunner/tests/testrunner-subunit-v2.rst | 2 +-
+ src/zope/testrunner/tests/testrunner-subunit.rst | 2 +-
+ 4 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/zope/testrunner/tests/testrunner-debugging-import-failure.rst b/src/zope/testrunner/tests/testrunner-debugging-import-failure.rst
+index 1613cb9..c0b2aee 100644
+--- a/src/zope/testrunner/tests/testrunner-debugging-import-failure.rst
++++ b/src/zope/testrunner/tests/testrunner-debugging-import-failure.rst
+@@ -41,7 +41,7 @@ Post-mortem debugging also works when there is an import failure.
+ File ".../TESTS-DIR/tests.py", line 2
+ impot doctest
+ ^
+- SyntaxError: invalid syntax
++ SyntaxError: invalid syntax...
+ > ...find.py(399)import_name()
+ -> __import__(name)
+ (Pdb) c
+diff --git a/src/zope/testrunner/tests/testrunner-errors.rst b/src/zope/testrunner/tests/testrunner-errors.rst
+index e210fe3..05d74b8 100644
+--- a/src/zope/testrunner/tests/testrunner-errors.rst
++++ b/src/zope/testrunner/tests/testrunner-errors.rst
+@@ -818,7 +818,7 @@ Then run the tests:
+ File "testrunner-ex/sample2/sampletests_i.py", line 1
+ importx unittest
+ ^
+- SyntaxError: invalid syntax
++ SyntaxError: invalid syntax...
+ <BLANKLINE>
+ <BLANKLINE>
+ Module: sample2.sample21.sampletests_i
+diff --git a/src/zope/testrunner/tests/testrunner-subunit-v2.rst b/src/zope/testrunner/tests/testrunner-subunit-v2.rst
+index 8658fe3..c165b23 100644
+--- a/src/zope/testrunner/tests/testrunner-subunit-v2.rst
++++ b/src/zope/testrunner/tests/testrunner-subunit-v2.rst
+@@ -447,7 +447,7 @@ Let's run tests including a module with some bad syntax:
+ File "/home/benji/workspace/all-the-trunks/zope.testrunner/src/zope/testrunner/testrunner-ex/sample2/badsyntax.py", line 16
+ importx unittest # noqa: E999
+ ^
+- SyntaxError: invalid syntax
++ SyntaxError: invalid syntax...
+ <BLANKLINE>
+ id=sample2.badsyntax status=fail tags=(zope:import_error)
+ id=sample2.sample21.sampletests_i status=inprogress
+diff --git a/src/zope/testrunner/tests/testrunner-subunit.rst b/src/zope/testrunner/tests/testrunner-subunit.rst
+index 6597a88..1882671 100644
+--- a/src/zope/testrunner/tests/testrunner-subunit.rst
++++ b/src/zope/testrunner/tests/testrunner-subunit.rst
+@@ -480,7 +480,7 @@ Let's run tests including a module with some bad syntax:
+ File "/home/benji/workspace/all-the-trunks/zope.testrunner/src/zope/testrunner/testrunner-ex/sample2/badsyntax.py", line 16
+ importx unittest # noqa: E999
+ ^
+- SyntaxError: invalid syntax
++ SyntaxError: invalid syntax...
+ ]
+ test: sample2.sample21.sampletests_i
+ tags: zope:import_error
diff --git a/dev-python/zope-testrunner/zope-testrunner-5.3.0.ebuild b/dev-python/zope-testrunner/zope-testrunner-5.3.0.ebuild
index 07f992c4b75a..1142107a76cd 100644
--- a/dev-python/zope-testrunner/zope-testrunner-5.3.0.ebuild
+++ b/dev-python/zope-testrunner/zope-testrunner-5.3.0.ebuild
@@ -4,7 +4,7 @@
EAPI=7
DISTUTILS_USE_SETUPTOOLS=rdepend
-PYTHON_COMPAT=( python3_{7..9} pypy3 )
+PYTHON_COMPAT=( python3_{7..10} pypy3 )
inherit distutils-r1
@@ -20,13 +20,17 @@ LICENSE="ZPL"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
-BDEPEND="
- test? ( dev-python/zope-testing[${PYTHON_USEDEP}] )"
RDEPEND="
dev-python/namespace-zope[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
dev-python/zope-exceptions[${PYTHON_USEDEP}]
dev-python/zope-interface[${PYTHON_USEDEP}]"
+BDEPEND="
+ test? ( dev-python/zope-testing[${PYTHON_USEDEP}] )"
+
+PATCHES=(
+ "${FILESDIR}/${P}-fix-test-py3.10.patch"
+)
distutils_enable_tests setup.py