diff options
Diffstat (limited to 'dev-python/cheetah3')
-rw-r--r-- | dev-python/cheetah3/Manifest | 5 | ||||
-rw-r--r-- | dev-python/cheetah3/cheetah3-3.2.6.ebuild | 45 | ||||
-rw-r--r-- | dev-python/cheetah3/cheetah3-3.2.6_p2.ebuild | 4 | ||||
-rw-r--r-- | dev-python/cheetah3/files/cheetah3-3.2.6-fix-py3.10-tests.patch | 27 |
4 files changed, 3 insertions, 78 deletions
diff --git a/dev-python/cheetah3/Manifest b/dev-python/cheetah3/Manifest index 603e1f3bc52a..20b2b03f21e4 100644 --- a/dev-python/cheetah3/Manifest +++ b/dev-python/cheetah3/Manifest @@ -1,6 +1,3 @@ -AUX cheetah3-3.2.6-fix-py3.10-tests.patch 1082 BLAKE2B 5e418f22d9067208c038ddcbd35ef5942c09bc92a14a9a28c7ed996496c419b41b772d1fafd3ac01b524aea0dd70706ea69815db0f6fbb3de26abd95b416c3c4 SHA512 1adcc664bfd580fcd62156591b52375e3f01a5107a995ad6a8c01baf8e604c2114451be7cd13775bdf2bcc2d16998d86fd5d0db38c85d4ff6e52bd314fb3c264 DIST cheetah3-3.2.6.post2.tar.gz 316291 BLAKE2B d5dfaa958bc0cc41097d4a75abfe092d51379efd644daa01caac6ba1b789c21334a662904166b6069a0204e302c1d9e7bea74aa9f11082b9c8fce1c1c509f888 SHA512 b10d2569ce92181029b8f95d23602ec7b002400c8fdf4f6bb095ff40201154b97418fec19c9920f2f212f545633571aa32dc50a16a9ba81a9427303ca7938f29 -DIST cheetah3-3.2.6.tar.gz 2481158 BLAKE2B cb8ad192ae9caf0d1284294b323cf4a918cd2fc951bae25867d69a3dd7933728056b76fbf52a22d34f290056a96cce7d9ccbeb2404f2f0bb782f8db8b7453e47 SHA512 abf74def695018a79cb1364f60e402e7e0095a4d2f069decfbddf42501d865b70451ebc7b52abc67aa23e57276d7a3b8c2894a9571876e15db43cd1358f74d31 -EBUILD cheetah3-3.2.6.ebuild 1139 BLAKE2B 4bf5c4cc0f85b4f7b4e46287055cd3b0e33f4fd69e162b514ff8bb96a8337f8b95ae81964f31e4332a93a214cbc4333530bb5c8c20d756a7b927ee4d0601d55b SHA512 1534d89a0e31a31f6b1027425bbaedcc8e14e1af91e319418ac6be6eccd001a364cdad0f103be82aeb8b018c41f603a70caeaae660776f2b6edf81e2b0d5e2f5 -EBUILD cheetah3-3.2.6_p2.ebuild 917 BLAKE2B 8df67aa52d0f1a93392328bb637ef4e654a7eb554f297f14285ed7e2a407b92e0dcd6b4215002b889324eaf6c93dd7d58be2f54d1aced6a4e0b75738c409febe SHA512 a9ac52e0d04b7fd066cc0cbeee8b0ebef0001ff9db71bc34a8d5e9a844bdbe092a1d4a06a190b0b96a1d5b9b8e7b21f6b6eb3f49a519ffb09bdbbe462be72a76 +EBUILD cheetah3-3.2.6_p2.ebuild 913 BLAKE2B 0b94462a6c57cf619d16e412aacc42f1da89e8444b8a53b4dc7384b5637cb6f359606e6bfd82b58c8759057d945a28104b56b09377d264f0a927d29bbc73f270 SHA512 1e823f237aaa564d3d7f96ea5d3dd5a33d62690719bc433d9efd7f80d35c7a8cffb828af54cb5eb3273a7bd26ba700c2936a7b03036d5eab15ebf307655593bd MISC metadata.xml 728 BLAKE2B eed475bf99f19abf5f934cc9e9f0ed10c3a29536767133a628dc3f23e95a37a0feaa82e4f080ac8f6d541cc6d802a084d670e64049149937b061e5f20bac317b SHA512 52b5eb46efb8d6e750823775ef459eec200e617e9232867cdfa229e2d7b6a41feee15441ac1a7c1ad2871f0fd19fb91fd6c36719eee2592c41e27ad8ec5fd162 diff --git a/dev-python/cheetah3/cheetah3-3.2.6.ebuild b/dev-python/cheetah3/cheetah3-3.2.6.ebuild deleted file mode 100644 index 77379adab8a1..000000000000 --- a/dev-python/cheetah3/cheetah3-3.2.6.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{8..10} ) -inherit distutils-r1 - -DESCRIPTION="Python-powered template engine and code generator" -HOMEPAGE="https://cheetahtemplate.org/ https://pypi.org/project/Cheetah3/" -SRC_URI="https://github.com/CheetahTemplate3/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -KEYWORDS="amd64 arm arm64 ~riscv x86" -SLOT="0" - -RDEPEND=" - dev-python/markdown[${PYTHON_USEDEP}] - !dev-python/cheetah -" -BDEPEND="${RDEPEND}" - -DOCS=( ANNOUNCE.rst README.rst TODO ) - -PATCHES=( - "${FILESDIR}/${P}-fix-py3.10-tests.patch" -) - -python_prepare_all() { - # Disable broken tests. - sed \ - -e "/Unicode/d" \ - -e "s/if not sys.platform.startswith('java'):/if False:/" \ - -e "/results =/a\\ sys.exit(not results.wasSuccessful())" \ - -i Cheetah/Tests/Test.py || die "sed failed" - - distutils-r1_python_prepare_all -} - -python_test() { - cp -r "${S}/Cheetah/Tests/ImportHooksTemplates" \ - "${BUILD_DIR}/lib/Cheetah/Tests/ImportHooksTemplates" || die - - "${EPYTHON}" Cheetah/Tests/Test.py || die "Tests fail with ${EPYTHON}" -} diff --git a/dev-python/cheetah3/cheetah3-3.2.6_p2.ebuild b/dev-python/cheetah3/cheetah3-3.2.6_p2.ebuild index a4c89574fcc1..bca8706b192f 100644 --- a/dev-python/cheetah3/cheetah3-3.2.6_p2.ebuild +++ b/dev-python/cheetah3/cheetah3-3.2.6_p2.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_COMPAT=( python3_{8..11} ) inherit distutils-r1 @@ -18,7 +18,7 @@ SRC_URI=" S=${WORKDIR}/${MY_P} LICENSE="MIT" -KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" +KEYWORDS="amd64 arm arm64 ~riscv x86" SLOT="0" RDEPEND=" diff --git a/dev-python/cheetah3/files/cheetah3-3.2.6-fix-py3.10-tests.patch b/dev-python/cheetah3/files/cheetah3-3.2.6-fix-py3.10-tests.patch deleted file mode 100644 index 845520fb02ad..000000000000 --- a/dev-python/cheetah3/files/cheetah3-3.2.6-fix-py3.10-tests.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 112dddd8fa5fb9c285fb8ef2818abfef99365070 Mon Sep 17 00:00:00 2001 -From: Victor Stinner <vstinner@python.org> -Date: Tue, 19 Jan 2021 11:19:15 +0100 -Subject: [PATCH] Skip test_import_bootlocale() on Python 3.10 - -The _bootlocale module has been removed from Python 3.10: -https://github.com/python/cpython/commit/b62bdf71ea0cd52041d49691d8ae3dc645bd48e1 -https://bugs.python.org/issue42208 ---- - Cheetah/Tests/ImportHooks.py | 4 +++- - 1 file changed, 3 insertions(+), 1 deletion(-) - -diff --git a/Cheetah/Tests/ImportHooks.py b/Cheetah/Tests/ImportHooks.py -index d7b5f5d..bc0239c 100644 ---- a/Cheetah/Tests/ImportHooks.py -+++ b/Cheetah/Tests/ImportHooks.py -@@ -87,7 +87,9 @@ def test_import_builtin(self): - return - raise self.fail("All builtin modules are imported") - -- if not PY2: -+ # _bootlocale was removed in Python 3.10: -+ # https://bugs.python.org/issue42208 -+ if not PY2 and sys.version_info < (3, 10): - def test_import_bootlocale(self): - if '_bootlocale' in sys.modules: - del sys.modules['_bootlocale'] |