dev-python/jinja2: add 3.1.4 from main repo archive
Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
parent
e38ed82719
commit
fbb5a1bca0
@ -606,14 +606,14 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
|
||||
|
||||
## Licenses
|
||||
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
|
||||
There are 2353 Ebuilds in total, 2339 of them have in total 2379 (43 different) licenses assigned.
|
||||
There are 2354 Ebuilds in total, 2340 of them have in total 2380 (43 different) licenses assigned.
|
||||
|
||||
|License| Ebuilds using it|
|
||||
|-------|-----|
|
||||
|MIT|1336|
|
||||
|Apache-2.0|556|
|
||||
|GPL-3|145|
|
||||
|BSD|124|
|
||||
|BSD|125|
|
||||
|GPL-2|27|
|
||||
|LGPL-3|23|
|
||||
|BSD-2|19|
|
||||
|
@ -1,3 +1,6 @@
|
||||
AUX jinja2-3.1.4-py313.patch 2365 BLAKE2B 554b37e4f874060a6c2758426a08cad61b752913535f607d065e7a648fa5db272abd85615ba7734df3b2775320318da58040db08aa56c195d4b11e8e242adaec SHA512 3470db6a936c4a921ee3d5a8f7443f0dac9e2416be0332cb80c0c5cd6e1a80186a372a9f7034f5609202b93186c7c3e0e2bcddef209187043b2ebd4d9c796fe3
|
||||
DIST jinja2-3.1.2.gh.tar.gz 272546 BLAKE2B dc4bc81900c07e7816ff63259073409650f1f679e00d76b9574aaba301b36a7037aaf77a87cc1c160ea2aa2272ceb67e2fd20fbd74bb9850880fb909babded8e SHA512 50feebc7eed4c8b5bb0c2951784c1c115e3ee1c0e0c91bbf1884551b1312ef8fce24804a2ca1dfd8c543406529afe4817567c39e7cfd15028b54049853623144
|
||||
EBUILD jinja2-3.1.2.ebuild 1211 BLAKE2B 6bab5b5b5a97bd5815f1c875cc506fe60615ef08712fc4ede18e9a823842287919f91db186241e002ddd4fbdfbea45342b1f37dbe667b2971018ac7845a9ccb3 SHA512 42409384a68e927efa5cea5807213980e94c4c38cbf8ee854c361488b6fe14dafea29a2eb791c150210523b77c45f8e138344f0384b75150be5fe30913153a24
|
||||
DIST jinja2-3.1.4.tar.gz 240245 BLAKE2B cb70699cea93ddf53b7c8876b9006cc70599d49f8c64ab615759a53db6829cab7b55ac673777bc4c8dc5dfc68efada29d37f47fe7cf449044721f659fe6a654d SHA512 d07d68a2687af68c705d3b7f5a2c67aca7b9d125316b15085888b9d0d6e769981af76f6f524728b89b5501bd671d518fcb2638f9ae112e57ca2bf2a53482cd89
|
||||
EBUILD jinja2-3.1.2.ebuild 1211 BLAKE2B 568d45df6cb9bdfe63a9fc33d94a9ace59e8af4bfdc8713e71ec92e21d1804065ec3af1ebd913be5b48e255d685e24c9c30ef273d4d39c7d9f1db3df8533230b SHA512 acd3e7f3c361e6b4836a580bd7dfde5acd429019f91c8df27d113e387c985aff7b11a59c81b2f889529db585fa9f334f6a23dffcd695e7a4f0669a05c586324f
|
||||
EBUILD jinja2-3.1.4.ebuild 1077 BLAKE2B 9310bb900e35b7ed490ccdd458415163340acfce45e4d37a64abc479d0feda81bbd45f39c07ff7eda8152d34a005a4f606dcc2fad73afc162c0b3ecb44b374a7 SHA512 b653151683d22fe4dbfa859cc097283472382b822f3a7b0823de8f9d19983f2438e001dca6ba9287b24a723638f6bea5d208a6229d0a519602db7862d9c89006
|
||||
MISC metadata.xml 514 BLAKE2B b883d3ef9fd9c685e3b3c892e62d65259662b112935969abc3eee9b05c6ce0289c1d4dedaf27761d291bd3ec68512fd78794456174f6bbf87dba79f1c2102f4f SHA512 b4f10a3fe83eb4cdef72a625b307c0e48fb9ada2948537269231e1e50a1e37ad4d4055369e77205da5afd3a5643b0b6ad9f4d3a0999be68994841a9eae821fed
|
||||
|
67
dev-python/jinja2/files/jinja2-3.1.4-py313.patch
Normal file
67
dev-python/jinja2/files/jinja2-3.1.4-py313.patch
Normal file
@ -0,0 +1,67 @@
|
||||
From 679af7f816ced8941ed5cf9b151a0cac543d0336 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Grainger <tagrain@gmail.com>
|
||||
Date: Mon, 13 May 2024 18:02:35 +0100
|
||||
Subject: [PATCH] fix test_package_zip_list on 3.13
|
||||
|
||||
---
|
||||
src/jinja2/loaders.py | 32 ++++++++++++++++++++++++++------
|
||||
tests/test_loader.py | 2 +-
|
||||
2 files changed, 27 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/src/jinja2/loaders.py b/src/jinja2/loaders.py
|
||||
index 9eaf647ba..8c2c86cd0 100644
|
||||
--- a/src/jinja2/loaders.py
|
||||
+++ b/src/jinja2/loaders.py
|
||||
@@ -238,6 +238,30 @@ def list_templates(self) -> t.List[str]:
|
||||
return sorted(found)
|
||||
|
||||
|
||||
+if sys.version_info >= (3, 13):
|
||||
+
|
||||
+ def _get_zipimporter_files(z: t.Any) -> t.Dict[str, object]:
|
||||
+ try:
|
||||
+ get_files = z._get_files
|
||||
+ except AttributeError as e:
|
||||
+ raise TypeError(
|
||||
+ "This zip import does not have the required"
|
||||
+ " metadata to list templates."
|
||||
+ ) from e
|
||||
+ return get_files()
|
||||
+else:
|
||||
+
|
||||
+ def _get_zipimporter_files(z: t.Any) -> t.Dict[str, object]:
|
||||
+ try:
|
||||
+ files = z._files
|
||||
+ except AttributeError as e:
|
||||
+ raise TypeError(
|
||||
+ "This zip import does not have the required"
|
||||
+ " metadata to list templates."
|
||||
+ ) from e
|
||||
+ return files # type: ignore[no-any-return]
|
||||
+
|
||||
+
|
||||
class PackageLoader(BaseLoader):
|
||||
"""Load templates from a directory in a Python package.
|
||||
|
||||
@@ -382,11 +406,7 @@ def list_templates(self) -> t.List[str]:
|
||||
for name in filenames
|
||||
)
|
||||
else:
|
||||
- if not hasattr(self._loader, "_files"):
|
||||
- raise TypeError(
|
||||
- "This zip import does not have the required"
|
||||
- " metadata to list templates."
|
||||
- )
|
||||
+ files = _get_zipimporter_files(self._loader)
|
||||
|
||||
# Package is a zip file.
|
||||
prefix = (
|
||||
@@ -395,7 +415,7 @@ def list_templates(self) -> t.List[str]:
|
||||
)
|
||||
offset = len(prefix)
|
||||
|
||||
- for name in self._loader._files.keys():
|
||||
+ for name in files:
|
||||
# Find names under the templates directory that aren't directories.
|
||||
if name.startswith(prefix) and name[-1] != os.path.sep:
|
||||
results.append(name[offset:].replace(os.path.sep, "/"))
|
@ -5,7 +5,7 @@ EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYPI_PN=jinja2
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
51
dev-python/jinja2/jinja2-3.1.4.ebuild
Normal file
51
dev-python/jinja2/jinja2-3.1.4.ebuild
Normal file
@ -0,0 +1,51 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=flit
|
||||
PYPI_PN=jinja2
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="A full-featured template engine for Python"
|
||||
HOMEPAGE="
|
||||
https://palletsprojects.com/p/jinja/
|
||||
https://github.com/pallets/jinja/
|
||||
https://pypi.org/project/Jinja2/
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/markupsafe-2.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_sphinx docs \
|
||||
dev-python/sphinx-issues \
|
||||
dev-python/pallets-sphinx-themes
|
||||
distutils_enable_tests pytest
|
||||
|
||||
# XXX: handle Babel better?
|
||||
|
||||
src_prepare() {
|
||||
local PATCHES=(
|
||||
# https://github.com/pallets/jinja/pull/1979
|
||||
"${FILESDIR}/${P}-py313.patch"
|
||||
)
|
||||
|
||||
# avoid unnecessary dep on extra sphinxcontrib modules
|
||||
sed -i '/sphinxcontrib.log_cabinet/ d' docs/conf.py || die
|
||||
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! has_version dev-python/babel; then
|
||||
elog "For i18n support, please emerge dev-python/babel."
|
||||
fi
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user