update project metadata
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Lord · committed by David Lord · parent 72fffe4 · Browse files · 8 files·+123 added−184 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
8 files+123 added−184 removed
- other:+123 added−184 removed
Provenance
- Commit
65da441- Tree
2271437- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
72fffe4
8 files changed+123 added−184 removed
modified:jinja2/__init__.py+1 added-1 removed
25 unmodified lines26 :copyright: (c) 2017 by the Jinja Team.27 :license: BSD, see LICENSE for more details.28 """29 __docformat__ = 'restructuredtext en'30-__version__ = '2.10.1'30+__version__ = "2.10.2.dev0"31 32 # high level interface33 from jinja2.environment import Environment, Template34 49 unmodified linesdeleted:AUTHORS-34 removed
1-Jinja is written and maintained by the Jinja Team and various2-contributors:3-4-Lead Developer:5-6-- Armin Ronacher <armin.ronacher@active-4.com>7-8-Developers:9-10-- Christoph Hack11-- Georg Brandl12-13-Contributors:14-15-- Bryan McLemore16-- Mickaël Guérin <kael@crocobox.org>17-- Cameron Knight18-- Lawrence Journal-World.19-- David Cramer20-- Adrian Mönnich (ThiefMaster)21-22-Patches and suggestions:23-24-- Ronny Pfannschmidt25-- Axel Böhm26-- Alexey Melchakov27-- Bryan McLemore28-- Clovis Fabricio (nosklo)29-- Cameron Knight30-- Peter van Dijk (Habbie)31-- Stefan Ebner32-- Rene Leonhardt33-- Thomas Waldmann34-- Cory Benfield (Lukasa)deleted:LICENSE-31 removed
1-Copyright (c) 2009 by the Jinja Team, see AUTHORS for more details.2-3-Some rights reserved.4-5-Redistribution and use in source and binary forms, with or without6-modification, are permitted provided that the following conditions are7-met:8-9- * Redistributions of source code must retain the above copyright10- notice, this list of conditions and the following disclaimer.11-12- * Redistributions in binary form must reproduce the above13- copyright notice, this list of conditions and the following14- disclaimer in the documentation and/or other materials provided15- with the distribution.16-17- * The names of the contributors may not be used to endorse or18- promote products derived from this software without specific19- prior written permission.20-21-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS22-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT23-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR24-A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT25-OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,26-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT27-LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,28-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY29-THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT30-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE31-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.added:LICENSE.rst+28 added
1+Copyright 2007 Pallets2+3+Redistribution and use in source and binary forms, with or without4+modification, are permitted provided that the following conditions are5+met:6+7+1. Redistributions of source code must retain the above copyright8+ notice, this list of conditions and the following disclaimer.9+10+2. Redistributions in binary form must reproduce the above copyright11+ notice, this list of conditions and the following disclaimer in the12+ documentation and/or other materials provided with the distribution.13+14+3. Neither the name of the copyright holder nor the names of its15+ contributors may be used to endorse or promote products derived from16+ this software without specific prior written permission.17+18+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS19+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT20+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A21+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT22+HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,23+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED24+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR25+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF26+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING27+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS28+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.modified:MANIFEST.in+1 added-2 removed
1-include AUTHORS CHANGES.rst LICENSE2-global-exclude *.py[co]1+include CHANGES.rst tox.ini2 graft artwork3 graft docs4 prune docs/_build5 graft examples2 unmodified linesmodified:README.rst+48 added-44 removed
1-Jinja22-~~~~~~1+Jinja2+=====3 4-Jinja2 is a template engine written in pure Python. It provides a5-`Django`_ inspired non-XML syntax but supports inline expressions and6-an optional `sandboxed`_ environment.4+Jinja is a fast, expressive, extensible templating engine. Special5+placeholders in the template allow writing code similar to Python6+syntax. Then the template is passed data to render the final document.7 8-Nutshell9---------8+It includes:9 11-Here a small example of a Jinja template:10+- Template inheritance and inclusion.11+- Define and import macros within templates.12+- HTML templates can use autoescaping to prevent XSS from untrusted13+ user input.14+- A sandboxed environment can safely render untrusted templates.15+- AsyncIO support for generating templates and calling async16+ functions.17+- I18N support with Babel.18+- Templates are compiled to optimized Python code just-in-time and19+ cached, or can be compiled ahead-of-time.20+- Exceptions point to the correct line in templates to make debugging21+ easier.22+- Extensible filters, tests, functions, and even syntax.23 24+Jinja's philosophy is that while application logic belongs in Python if25+possible, it shouldn't make the template designer's job difficult by26+restricting functionality too much.27+28+29+Installing30+----------31+32+Install and update using `pip`_:33+34+.. code-block:: text35+36+ $ pip install -U Jinja237+38+.. _pip: https://pip.pypa.io/en/stable/quickstart/39+40+41+In A Nutshell42+-------------43+44 .. code-block:: jinja45 15- {% extends 'base.html' %}16- {% block title %}Memberlist{% endblock %}46+ {% extends "base.html" %}47+ {% block title %}Members{% endblock %}48 {% block content %}49 <ul>50 {% for user in users %}51 <li><a href="{{ user.url }}">{{ user.username }}</a></li>52 {% endfor %}53 </ul>54 {% endblock %}55 25-Philosophy26-----------56 28-Application logic is for the controller, but don't make the template designer's29-life difficult by restricting functionality too much.30-31-For more information visit the new `Jinja2 webpage`_ and `documentation`_.32-33-The `Jinja2 tip`_ is installable via ``pip`` with ``pip install34-https://github.com/pallets/jinja/zipball/master``.35-36-.. _sandboxed: https://en.wikipedia.org/wiki/Sandbox_(computer_security)37-.. _Django: https://www.djangoproject.com/38-.. _Jinja2 webpage: http://jinja.pocoo.org/39-.. _documentation: http://jinja.pocoo.org/docs/40-.. _Jinja2 tip: http://jinja.pocoo.org/docs/intro/#as-a-python-egg-via-easy-install41-42-Builds43-------44-45-+---------------------+------------------------------------------------------------------------------+46-| ``master`` | .. image:: https://travis-ci.org/pallets/jinja.svg?branch=master |47-| | :target: https://travis-ci.org/pallets/jinja |48-+---------------------+------------------------------------------------------------------------------+49-| ``2.9-maintenance`` | .. image:: https://travis-ci.org/pallets/jinja.svg?branch=2.9-maintenance |50-| | :target: https://travis-ci.org/pallets/jinja |51-+---------------------+------------------------------------------------------------------------------+52-57 Links58 -----59 56-* Website: http://jinja.pocoo.org/57-* Documentation: http://jinja.pocoo.org/docs/58-* License: `BSD <https://raw.githubusercontent.com/pallets/jinja/master/LICENSE>`_59-* Releases: https://pypi.org/project/Jinja/60-* Code: https://github.com/pallets/jinja61-* Issue tracker: https://github.com/pallets/jinja/issues62-* Official chat: https://discord.gg/t6rrQZH60+- Website: https://palletsprojects.com/p/jinja/61+- Documentation: https://jinja.palletsprojects.com/62+- Releases: https://pypi.org/project/Jinja2/63+- Code: https://github.com/pallets/jinja64+- Issue tracker: https://github.com/pallets/jinja/issues65+- Test status: https://dev.azure.com/pallets/jinja/_build66+- Official chat: https://discord.gg/t6rrQZHmodified:setup.cfg+1 added-1 removed
1 [metadata]2-license_file = LICENSE2+license_file = LICENSE.rst3 4 [bdist_wheel]5 universal = true6 14 unmodified linesmodified:setup.py+44 added-71 removed
1-# -*- coding: utf-8 -*-2-"""3-Jinja24-~~~~~~1+import io2+import re3 6-Jinja2 is a template engine written in pure Python. It provides a7-`Django`_ inspired non-XML syntax but supports inline expressions and8-an optional `sandboxed`_ environment.9-10-Nutshell11---------12-13-Here a small example of a Jinja template::14-15- {% extends 'base.html' %}16- {% block title %}Memberlist{% endblock %}17- {% block content %}18- <ul>19- {% for user in users %}20- <li><a href="{{ user.url }}">{{ user.username }}</a></li>21- {% endfor %}22- </ul>23- {% endblock %}24-25-Philosophy26-----------27-28-Application logic is for the controller but don't try to make the life29-for the template designer too hard by giving him too few functionality.30-31-For more informations visit the new `Jinja2 webpage`_ and `documentation`_.32-33-.. _sandboxed: https://en.wikipedia.org/wiki/Sandbox_(computer_security)34-.. _Django: https://www.djangoproject.com/35-.. _Jinja2 webpage: http://jinja.pocoo.org/36-.. _documentation: http://jinja.pocoo.org/2/documentation/37-"""4+from setuptools import find_packages5 from setuptools import setup6 7+with io.open("README.rst", "rt", encoding="utf8") as f:8+ readme = f.read()9 10+with io.open("jinja2/__init__.py", "rt", encoding="utf8") as f:11+ version = re.search(r'__version__ = "(.*?)"', f.read(), re.M).group(1)12+13 setup(42- name='Jinja2',43- version='2.10.1',44- url='http://jinja.pocoo.org/',45- license='BSD',46- author='Armin Ronacher',47- author_email='armin.ronacher@active-4.com',48- description='A small but fast and easy to use stand-alone template '49- 'engine written in pure python.',50- long_description=__doc__,51- # jinja is egg safe. But we hate eggs52- zip_safe=False,14+ name="Jinja2",15+ version=version,16+ url="https://palletsprojects.com/p/jinja/",17+ project_urls={18+ "Documentation": "https://jinja.palletsprojects.com/",19+ "Code": "https://github.com/pallets/jinja",20+ "Issue tracker": "https://github.com/pallets/jinja/issues",21+ },22+ license="BSD-3-Clause",23+ author="Armin Ronacher",24+ author_email="armin.ronacher@active-4.com",25+ maintainer="Pallets",26+ maintainer_email="contact@palletsprojects.com",27+ description="A very fast and expressive template engine.",28+ long_description=readme,29 classifiers=[54- 'Development Status :: 5 - Production/Stable',55- 'Environment :: Web Environment',56- 'Intended Audience :: Developers',57- 'License :: OSI Approved :: BSD License',58- 'Operating System :: OS Independent',59- 'Programming Language :: Python',60- 'Programming Language :: Python :: 2',61- 'Programming Language :: Python :: 2.6',62- 'Programming Language :: Python :: 2.7',63- 'Programming Language :: Python :: 3',64- 'Programming Language :: Python :: 3.3',65- 'Programming Language :: Python :: 3.4',66- 'Programming Language :: Python :: 3.5',67- 'Programming Language :: Python :: 3.6',68- 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',69- 'Topic :: Software Development :: Libraries :: Python Modules',70- 'Topic :: Text Processing :: Markup :: HTML'30+ "Development Status :: 5 - Production/Stable",31+ "Environment :: Web Environment",32+ "Intended Audience :: Developers",33+ "License :: OSI Approved :: BSD License",34+ "Operating System :: OS Independent",35+ "Programming Language :: Python",36+ "Programming Language :: Python :: 2",37+ "Programming Language :: Python :: 2.7",38+ "Programming Language :: Python :: 3",39+ "Programming Language :: Python :: 3.5",40+ "Programming Language :: Python :: 3.6",41+ "Programming Language :: Python :: 3.7",42+ "Programming Language :: Python :: Implementation :: CPython",43+ "Programming Language :: Python :: Implementation :: PyPy",44+ "Topic :: Internet :: WWW/HTTP :: Dynamic Content",45+ "Topic :: Software Development :: Libraries :: Python Modules",46+ "Topic :: Text Processing :: Markup :: HTML",47 ],72- packages=['jinja2'],73- install_requires=['MarkupSafe>=0.23'],74- extras_require={'i18n': ['Babel>=0.8']},48+ packages=find_packages(),49 include_package_data=True,76- entry_points="""77- [babel.extractors]78- jinja2 = jinja2.ext:babel_extract[i18n]79- """50+ install_requires=["MarkupSafe>=0.23"],51+ extras_require={"i18n": ["Babel>=0.8"]},52+ entry_points={"babel.extractors": ["jinja2 = jinja2.ext:bable_extract[i18n]"]},53 )