Jinja2: update to 3.1.4

the filename has been changed to lowercase in the 3.1.4 download

revert drop of setuptools:
- 20477c6357
This commit is contained in:
Rudi Heitbaum 2024-05-09 04:55:43 +00:00
parent 3a378c5024
commit 2382062064
2 changed files with 119 additions and 3 deletions

View File

@ -2,11 +2,11 @@
# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="Jinja2"
PKG_VERSION="3.1.3"
PKG_SHA256="ac8bd6544d4bb2c9792bf3a159e80bba8fda7f07e81bc3aed565432d5925ba90"
PKG_VERSION="3.1.4"
PKG_SHA256="4a3aee7acbbe7303aede8e9648d13b8bf88a429282aa6122a993f0ac800cb369"
PKG_LICENSE="BSD"
PKG_SITE="https://pypi.org/project/Jinja2/"
PKG_URL="https://files.pythonhosted.org/packages/source/${PKG_NAME:0:1}/${PKG_NAME}/${PKG_NAME}-${PKG_VERSION}.tar.gz"
PKG_URL="https://files.pythonhosted.org/packages/source/${PKG_NAME:0:1}/${PKG_NAME}/${PKG_NAME,,}-${PKG_VERSION}.tar.gz"
PKG_DEPENDS_HOST="Python3:host setuptools:host MarkupSafe:host"
PKG_LONGDESC="Jinja is a fast, expressive, extensible templating engine."
PKG_TOOLCHAIN="manual"

View File

@ -0,0 +1,116 @@
From 24f91e001d3b7b7037b2fb572a633f3a7fa7ca1c Mon Sep 17 00:00:00 2001
From: Rudi Heitbaum <rudi@heitbaum.com>
Date: Wed, 17 Jul 2024 11:19:20 +0000
Subject: [PATCH] revert setuptools removal
---
setup.cfg | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
setup.py | 8 ++++++
2 files changed, 89 insertions(+)
create mode 100644 setup.cfg
create mode 100644 setup.py
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..b4531db
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,81 @@
+[metadata]
+name = Jinja2
+version = attr: jinja2.__version__
+url = https://palletsprojects.com/p/jinja/
+project_urls =
+ Donate = https://palletsprojects.com/donate
+ Documentation = https://jinja.palletsprojects.com/
+ Changes = https://jinja.palletsprojects.com/changes/
+ Source Code = https://github.com/pallets/jinja/
+ Issue Tracker = https://github.com/pallets/jinja/issues/
+ Chat = https://discord.gg/pallets
+license = BSD-3-Clause
+license_files = LICENSE.rst
+maintainer = Pallets
+maintainer_email = contact@palletsprojects.com
+description = A very fast and expressive template engine.
+long_description = file: README.rst
+long_description_content_type = text/x-rst
+classifiers =
+ Development Status :: 5 - Production/Stable
+ Environment :: Web Environment
+ Intended Audience :: Developers
+ License :: OSI Approved :: BSD License
+ Operating System :: OS Independent
+ Programming Language :: Python
+ Topic :: Internet :: WWW/HTTP :: Dynamic Content
+ Topic :: Text Processing :: Markup :: HTML
+
+[options]
+packages = find:
+package_dir = = src
+include_package_data = True
+python_requires = >= 3.7
+# Dependencies are in setup.py for GitHub's dependency graph.
+
+[options.packages.find]
+where = src
+
+[options.entry_points]
+babel.extractors =
+ jinja2 = jinja2.ext:babel_extract[i18n]
+
+[tool:pytest]
+testpaths = tests
+filterwarnings =
+ error
+
+[coverage:run]
+branch = True
+source =
+ jinja2
+ tests
+
+[coverage:paths]
+source =
+ src
+ */site-packages
+
+[mypy]
+files = src/jinja2
+python_version = 3.7
+show_error_codes = True
+disallow_subclassing_any = True
+disallow_untyped_calls = True
+disallow_untyped_defs = True
+disallow_incomplete_defs = True
+no_implicit_optional = True
+local_partial_types = True
+no_implicit_reexport = True
+strict_equality = True
+warn_redundant_casts = True
+warn_unused_configs = True
+warn_unused_ignores = True
+warn_return_any = True
+warn_unreachable = True
+
+[mypy-jinja2.defaults]
+no_implicit_reexport = False
+
+[mypy-markupsafe]
+no_implicit_reexport = False
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..79d0708
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,8 @@
+from setuptools import setup
+
+# Metadata goes in setup.cfg. These are here for GitHub's dependency graph.
+setup(
+ name="Jinja2",
+ install_requires=["MarkupSafe>=2.0"],
+ extras_require={"i18n": ["Babel>=2.7"]},
+)
--
2.43.0