public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/cheetah3/files/, dev-python/cheetah3/
@ 2025-03-08 17:02 Michał Górny
  0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2025-03-08 17:02 UTC (permalink / raw
  To: gentoo-commits

commit:     1db6910292a49071c3f86f0801a7078543874910
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Mar  8 17:00:54 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Mar  8 17:00:54 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1db69102

dev-python/cheetah3: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/cheetah3/Manifest                       |  1 -
 dev-python/cheetah3/cheetah3-3.3.3.ebuild          | 49 -----------------
 .../cheetah3/files/cheetah3-3.3.3-py313.patch      | 63 ----------------------
 3 files changed, 113 deletions(-)

diff --git a/dev-python/cheetah3/Manifest b/dev-python/cheetah3/Manifest
index 633ade12e434..82b5851c6325 100644
--- a/dev-python/cheetah3/Manifest
+++ b/dev-python/cheetah3/Manifest
@@ -1,2 +1 @@
-DIST cheetah3-3.3.3.gh.tar.gz 315249 BLAKE2B f5dc748c49adbddffb0339069f800583739bffce8085c3abb80080d14d051a334e6b7d1b8ced218218334cae6cc000877570f3ab7c1ef0d760de36bf956f9c2e SHA512 638ee6ca0d37b86cfa93f8fc0da4c259da639c3b107c8810201e4bed30ca4674b5e546abc1d8f716d1bba7d1c72d51f559894a90580fa02f1409f7a73a246001
 DIST cheetah3-3.4.0.gh.tar.gz 318357 BLAKE2B 5bb67484c4907f0a831eaa79d755ba252abc3ed70a14a7f87620cc8748f7226cc112b66cc1ce19759d5aa6653e8ce2ad0acd4604a0ca2a92c249e095ae6522ba SHA512 1984165dc001c5982f39bdee9ef1364ebb794a028bfebcbead6af9834abe6506f253b0bc18919c9b95b55130dd71232fac3830aed8c19219852a56f007ad45e7

diff --git a/dev-python/cheetah3/cheetah3-3.3.3.ebuild b/dev-python/cheetah3/cheetah3-3.3.3.ebuild
deleted file mode 100644
index 204d8de6418b..000000000000
--- a/dev-python/cheetah3/cheetah3-3.3.3.ebuild
+++ /dev/null
@@ -1,49 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..13} )
-
-inherit distutils-r1
-
-MY_P=${P/_p/.post}
-DESCRIPTION="Python-powered template engine and code generator"
-HOMEPAGE="
-	https://cheetahtemplate.org/
-	https://github.com/CheetahTemplate3/Cheetah3/
-	https://pypi.org/project/Cheetah3/
-"
-SRC_URI="
-	https://github.com/CheetahTemplate3/Cheetah3/archive/${PV/_p/.post}.tar.gz
-		-> ${MY_P}.gh.tar.gz
-"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="amd64 arm arm64 ~loong ~ppc64 ~riscv x86"
-
-RDEPEND="
-	dev-python/markdown[${PYTHON_USEDEP}]
-"
-BDEPEND="
-	${RDEPEND}
-"
-
-DOCS=( ANNOUNCE.rst README.rst TODO )
-
-PATCHES=(
-	# https://github.com/CheetahTemplate3/cheetah3/commit/ee2739b73bafbcb9a8cc5511d5e03e6b0d9bced1
-	"${FILESDIR}/${P}-py313.patch"
-)
-
-python_test() {
-	# the package can't handle TMPDIR with hyphens
-	# https://github.com/CheetahTemplate3/cheetah3/issues/53
-	local -x TMPDIR=/tmp
-
-	"${EPYTHON}" Cheetah/Tests/Test.py || die "Tests fail with ${EPYTHON}"
-}

diff --git a/dev-python/cheetah3/files/cheetah3-3.3.3-py313.patch b/dev-python/cheetah3/files/cheetah3-3.3.3-py313.patch
deleted file mode 100644
index 591cab07286a..000000000000
--- a/dev-python/cheetah3/files/cheetah3-3.3.3-py313.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-From ee2739b73bafbcb9a8cc5511d5e03e6b0d9bced1 Mon Sep 17 00:00:00 2001
-From: Oleg Broytman <phd@phdru.name>
-Date: Sat, 22 Jun 2024 05:47:51 +0300
-Subject: [PATCH] Fix(NameMapper): Fix mapping test
-
-Python 3.13 brought a new mapping type `FrameLocalsProxy`.
-
-Fixes: #60.
-
-[skip ci]
----
- Cheetah/NameMapper.py | 8 +++++++-
- docs/news.rst         | 3 +++
- 2 files changed, 10 insertions(+), 1 deletion(-)
-
-diff --git a/Cheetah/NameMapper.py b/Cheetah/NameMapper.py
-index 7c09e37d..32c1f366 100755
---- a/Cheetah/NameMapper.py
-+++ b/Cheetah/NameMapper.py
-@@ -140,8 +140,8 @@
- been compiled or falls back to the Python version if not.
- """
- 
--import inspect
- from pprint import pformat
-+import inspect
- import sys
- 
- from .compat import PY2
-@@ -149,6 +149,8 @@
-     from collections import Mapping
- else:
-     from collections.abc import Mapping
-+    if sys.version_info[:2] >= (3, 13):
-+        from collections.abc import MutableMapping
- 
- _INCLUDE_NAMESPACE_REPR_IN_NOTFOUND_EXCEPTIONS = False
- _ALLOW_WRAPPING_OF_NOTFOUND_EXCEPTIONS = True
-@@ -319,6 +321,10 @@ def __valueForName():
-         try:
-             if not frame:
-                 frame = inspect.stack()[1][0]
-+            if sys.version_info[:2] >= (3, 13):
-+                FrameLocalsProxy = frame.f_locals
-+                if not isinstance(FrameLocalsProxy, Mapping):
-+                    MutableMapping.register(type(FrameLocalsProxy))
-             key = name.split('.')[0]
-             for namespace in _namespaces(frame, searchList):
-                 if hasKey(namespace, key):
-diff --git a/docs/news.rst b/docs/news.rst
-index 8adf5806..78f6e5ff 100644
---- a/docs/news.rst
-+++ b/docs/news.rst
-@@ -15,6 +15,9 @@ Bug fixes:
-   - Fixed ``_namemapper.c``: Silent an error
-     from ``PyMapping_HasKeyString`` under Python 3.13+.
- 
-+  - Fixed mapping test in ``NameMapper.py``:
-+    Python 3.13 brough a new mapping type ``FrameLocalsProxy``.
-+
- Tests:
- 
-   - tox: Run tests under Python 3.13.


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-03-08 17:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-08 17:02 [gentoo-commits] repo/gentoo:master commit in: dev-python/cheetah3/files/, dev-python/cheetah3/ Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox