mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-27 20:56:55 +00:00
Jinja2: switch to new build system
This commit is contained in:
parent
d4fa7dfc36
commit
561d66c159
@ -9,9 +9,4 @@ 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_DEPENDS_HOST="Python3:host setuptools:host MarkupSafe:host"
|
||||||
PKG_LONGDESC="Jinja is a fast, expressive, extensible templating engine."
|
PKG_LONGDESC="Jinja is a fast, expressive, extensible templating engine."
|
||||||
PKG_TOOLCHAIN="manual"
|
PKG_TOOLCHAIN="python"
|
||||||
|
|
||||||
makeinstall_host() {
|
|
||||||
export DONT_BUILD_LEGACY_PYC=1
|
|
||||||
exec_thread_safe python3 setup.py install --prefix=${TOOLCHAIN}
|
|
||||||
}
|
|
||||||
|
@ -1,116 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user