]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
extract jinja2-compat to separate repo
authorDavid Lord <davidism@gmail.com>
Sat, 11 Jan 2020 00:54:34 +0000 (16:54 -0800)
committerDavid Lord <davidism@gmail.com>
Sat, 11 Jan 2020 00:54:34 +0000 (16:54 -0800)
32 files changed:
jinja2-compat/LICENSE.rst [deleted file]
jinja2-compat/MANIFEST.in [deleted file]
jinja2-compat/README.rst [deleted file]
jinja2-compat/setup.cfg [deleted file]
jinja2-compat/setup.py [deleted file]
jinja2-compat/src/jinja2/__init__.py [deleted file]
jinja2-compat/src/jinja2/_compat.py [deleted file]
jinja2-compat/src/jinja2/_identifier.py [deleted file]
jinja2-compat/src/jinja2/asyncfilters.py [deleted file]
jinja2-compat/src/jinja2/asyncsupport.py [deleted file]
jinja2-compat/src/jinja2/bccache.py [deleted file]
jinja2-compat/src/jinja2/compiler.py [deleted file]
jinja2-compat/src/jinja2/constants.py [deleted file]
jinja2-compat/src/jinja2/debug.py [deleted file]
jinja2-compat/src/jinja2/defaults.py [deleted file]
jinja2-compat/src/jinja2/environment.py [deleted file]
jinja2-compat/src/jinja2/exceptions.py [deleted file]
jinja2-compat/src/jinja2/ext.py [deleted file]
jinja2-compat/src/jinja2/filters.py [deleted file]
jinja2-compat/src/jinja2/idtracking.py [deleted file]
jinja2-compat/src/jinja2/lexer.py [deleted file]
jinja2-compat/src/jinja2/loaders.py [deleted file]
jinja2-compat/src/jinja2/meta.py [deleted file]
jinja2-compat/src/jinja2/nativetypes.py [deleted file]
jinja2-compat/src/jinja2/nodes.py [deleted file]
jinja2-compat/src/jinja2/optimizer.py [deleted file]
jinja2-compat/src/jinja2/parser.py [deleted file]
jinja2-compat/src/jinja2/runtime.py [deleted file]
jinja2-compat/src/jinja2/sandbox.py [deleted file]
jinja2-compat/src/jinja2/tests.py [deleted file]
jinja2-compat/src/jinja2/utils.py [deleted file]
jinja2-compat/src/jinja2/visitor.py [deleted file]

diff --git a/jinja2-compat/LICENSE.rst b/jinja2-compat/LICENSE.rst
deleted file mode 100644 (file)
index c37cae4..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-Copyright 2007 Pallets
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
-1.  Redistributions of source code must retain the above copyright
-    notice, this list of conditions and the following disclaimer.
-
-2.  Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the
-    documentation and/or other materials provided with the distribution.
-
-3.  Neither the name of the copyright holder nor the names of its
-    contributors may be used to endorse or promote products derived from
-    this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
-TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/jinja2-compat/MANIFEST.in b/jinja2-compat/MANIFEST.in
deleted file mode 100644 (file)
index 40c6ac8..0000000
+++ /dev/null
@@ -1 +0,0 @@
-global-exclude *.pyc
diff --git a/jinja2-compat/README.rst b/jinja2-compat/README.rst
deleted file mode 100644 (file)
index b240416..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-The Jinja2 package has been renamed to `Jinja`_. This package provides
-compatibility while projects transition to the new name. Imports from
-``jinja2`` will be redirected to ``jinja`` and a deprecation warning
-will be emitted.
-
-Projects are advised to require 'Jinja' instead of 'Jinja2' and replace
-all imports of ``jinja2`` with ``jinja`` to continue receiving updates.
-
-.. _Jinja: https://pypi.org/project/Jinja/
diff --git a/jinja2-compat/setup.cfg b/jinja2-compat/setup.cfg
deleted file mode 100644 (file)
index cf42c63..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-[metadata]
-license_file = LICENSE.rst
-
-[bdist_wheel]
-universal = true
diff --git a/jinja2-compat/setup.py b/jinja2-compat/setup.py
deleted file mode 100644 (file)
index 9edc0d9..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-import io
-
-from setuptools import find_packages
-from setuptools import setup
-
-with io.open("README.rst", "rt", encoding="utf8") as f:
-    readme = f.read()
-
-setup(
-    name="Jinja2",
-    version="2.11.0rc1",
-    url="https://palletsprojects.com/p/jinja/",
-    project_urls={
-        "Documentation": "https://jinja.palletsprojects.com/",
-        "Code": "https://github.com/pallets/jinja",
-        "Issue tracker": "https://github.com/pallets/jinja/issues",
-    },
-    license="BSD-3-Clause",
-    maintainer="Pallets",
-    maintainer_email="contact@palletsprojects.com",
-    description=(
-        "A very fast and expressive template engine. Compatibility"
-        " package for Jinja2 to Jinja rename."
-    ),
-    long_description=readme,
-    classifiers=[
-        "Development Status :: 5 - Production/Stable",
-        "Environment :: Web Environment",
-        "Intended Audience :: Developers",
-        "License :: OSI Approved :: BSD License",
-        "Operating System :: OS Independent",
-        "Programming Language :: Python",
-        "Programming Language :: Python :: 2",
-        "Programming Language :: Python :: 2.7",
-        "Programming Language :: Python :: 3",
-        "Programming Language :: Python :: 3.5",
-        "Programming Language :: Python :: 3.6",
-        "Programming Language :: Python :: 3.7",
-        "Programming Language :: Python :: 3.8",
-        "Programming Language :: Python :: Implementation :: CPython",
-        "Programming Language :: Python :: Implementation :: PyPy",
-        "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
-        "Topic :: Software Development :: Libraries :: Python Modules",
-        "Topic :: Text Processing :: Markup :: HTML",
-    ],
-    packages=find_packages("src"),
-    package_dir={"": "src"},
-    include_package_data=True,
-    python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
-    install_requires=["Jinja<4.0"],
-    extras_require={"i18n": ["Babel>=0.8"]},
-    entry_points={"babel.extractors": ["jinja2 = jinja2.ext:babel_extract[i18n]"]},
-)
diff --git a/jinja2-compat/src/jinja2/__init__.py b/jinja2-compat/src/jinja2/__init__.py
deleted file mode 100644 (file)
index 526ee78..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-def _export_jinja(name, ns):
-    import warnings
-    from importlib import import_module
-
-    mod_name = "jinja" if not name else ("jinja." + name)
-    warnings.warn(
-        "'jinja2' has been renamed to 'jinja'. Import from %r instead." % mod_name,
-        DeprecationWarning,
-        stacklevel=3,
-    )
-    mod = import_module(mod_name)
-
-    for key, value in vars(mod).items():
-        if not key.startswith("__") or key == "__version__":
-            ns[key] = value
-
-    if name:
-        ns.pop("_export_jinja")
-
-
-_export_jinja(None, globals())
diff --git a/jinja2-compat/src/jinja2/_compat.py b/jinja2-compat/src/jinja2/_compat.py
deleted file mode 100644 (file)
index d0b2d95..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("_compat", globals())
diff --git a/jinja2-compat/src/jinja2/_identifier.py b/jinja2-compat/src/jinja2/_identifier.py
deleted file mode 100644 (file)
index 64dc1dd..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("_identifier", globals())
diff --git a/jinja2-compat/src/jinja2/asyncfilters.py b/jinja2-compat/src/jinja2/asyncfilters.py
deleted file mode 100644 (file)
index e85c81b..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("asyncfilters", globals())
diff --git a/jinja2-compat/src/jinja2/asyncsupport.py b/jinja2-compat/src/jinja2/asyncsupport.py
deleted file mode 100644 (file)
index bbc91ac..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("asyncsupport", globals())
diff --git a/jinja2-compat/src/jinja2/bccache.py b/jinja2-compat/src/jinja2/bccache.py
deleted file mode 100644 (file)
index 15164f1..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("bccache", globals())
diff --git a/jinja2-compat/src/jinja2/compiler.py b/jinja2-compat/src/jinja2/compiler.py
deleted file mode 100644 (file)
index d198e0b..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("compiler", globals())
diff --git a/jinja2-compat/src/jinja2/constants.py b/jinja2-compat/src/jinja2/constants.py
deleted file mode 100644 (file)
index 0026675..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("constants", globals())
diff --git a/jinja2-compat/src/jinja2/debug.py b/jinja2-compat/src/jinja2/debug.py
deleted file mode 100644 (file)
index 6fa47bc..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("debug", globals())
diff --git a/jinja2-compat/src/jinja2/defaults.py b/jinja2-compat/src/jinja2/defaults.py
deleted file mode 100644 (file)
index e3bece6..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("defaults", globals())
diff --git a/jinja2-compat/src/jinja2/environment.py b/jinja2-compat/src/jinja2/environment.py
deleted file mode 100644 (file)
index 5062aba..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("environment", globals())
diff --git a/jinja2-compat/src/jinja2/exceptions.py b/jinja2-compat/src/jinja2/exceptions.py
deleted file mode 100644 (file)
index 3ad241e..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("exceptions", globals())
diff --git a/jinja2-compat/src/jinja2/ext.py b/jinja2-compat/src/jinja2/ext.py
deleted file mode 100644 (file)
index 923754e..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("ext", globals())
diff --git a/jinja2-compat/src/jinja2/filters.py b/jinja2-compat/src/jinja2/filters.py
deleted file mode 100644 (file)
index 9517e64..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("filters", globals())
diff --git a/jinja2-compat/src/jinja2/idtracking.py b/jinja2-compat/src/jinja2/idtracking.py
deleted file mode 100644 (file)
index 755ef1b..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("idtracking", globals())
diff --git a/jinja2-compat/src/jinja2/lexer.py b/jinja2-compat/src/jinja2/lexer.py
deleted file mode 100644 (file)
index e69c99c..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("lexer", globals())
diff --git a/jinja2-compat/src/jinja2/loaders.py b/jinja2-compat/src/jinja2/loaders.py
deleted file mode 100644 (file)
index 3616eee..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("loaders", globals())
diff --git a/jinja2-compat/src/jinja2/meta.py b/jinja2-compat/src/jinja2/meta.py
deleted file mode 100644 (file)
index 406d047..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("meta", globals())
diff --git a/jinja2-compat/src/jinja2/nativetypes.py b/jinja2-compat/src/jinja2/nativetypes.py
deleted file mode 100644 (file)
index 60e5705..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("nativetypes", globals())
diff --git a/jinja2-compat/src/jinja2/nodes.py b/jinja2-compat/src/jinja2/nodes.py
deleted file mode 100644 (file)
index 6bfe778..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("nodes", globals())
diff --git a/jinja2-compat/src/jinja2/optimizer.py b/jinja2-compat/src/jinja2/optimizer.py
deleted file mode 100644 (file)
index 7ca0929..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("optimizer", globals())
diff --git a/jinja2-compat/src/jinja2/parser.py b/jinja2-compat/src/jinja2/parser.py
deleted file mode 100644 (file)
index 8b4cdfe..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("parser", globals())
diff --git a/jinja2-compat/src/jinja2/runtime.py b/jinja2-compat/src/jinja2/runtime.py
deleted file mode 100644 (file)
index d218cc7..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("runtime", globals())
diff --git a/jinja2-compat/src/jinja2/sandbox.py b/jinja2-compat/src/jinja2/sandbox.py
deleted file mode 100644 (file)
index 64d6dd9..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("sandbox", globals())
diff --git a/jinja2-compat/src/jinja2/tests.py b/jinja2-compat/src/jinja2/tests.py
deleted file mode 100644 (file)
index 2892b2b..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("tests", globals())
diff --git a/jinja2-compat/src/jinja2/utils.py b/jinja2-compat/src/jinja2/utils.py
deleted file mode 100644 (file)
index b870766..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("utils", globals())
diff --git a/jinja2-compat/src/jinja2/visitor.py b/jinja2-compat/src/jinja2/visitor.py
deleted file mode 100644 (file)
index c236087..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from . import _export_jinja
-
-_export_jinja("visitor", globals())