blob: aedd60ddf3e02636cab3c7cc203b7a5d2b8bd7e9 [file] [log] [blame]
David Lord65da4412019-10-04 11:17:12 -07001import io
2import re
Armin Ronacher58293062008-02-11 15:36:22 +01003
David Lord65da4412019-10-04 11:17:12 -07004from setuptools import find_packages
Cory Benfield447d3d22013-05-18 10:35:04 +01005from setuptools import setup
Armin Ronacher10c34da2010-08-17 12:10:27 +02006
David Lord65da4412019-10-04 11:17:12 -07007with io.open("README.rst", "rt", encoding="utf8") as f:
8 readme = f.read()
9
10with io.open("jinja2/__init__.py", "rt", encoding="utf8") as f:
11 version = re.search(r'__version__ = "(.*?)"', f.read(), re.M).group(1)
Armin Ronacherde478f62007-02-28 22:35:04 +010012
Armin Ronacherde478f62007-02-28 22:35:04 +010013setup(
David Lord65da4412019-10-04 11:17:12 -070014 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="[email protected]",
25 maintainer="Pallets",
26 maintainer_email="[email protected]",
27 description="A very fast and expressive template engine.",
28 long_description=readme,
Armin Ronacher015b0c92007-11-11 00:10:17 +010029 classifiers=[
David Lord65da4412019-10-04 11:17:12 -070030 "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",
Armin Ronacher8ebf1f92007-03-03 11:22:18 +010047 ],
David Lord65da4412019-10-04 11:17:12 -070048 packages=find_packages(),
Armin Ronacher790b8a82010-02-10 00:05:46 +010049 include_package_data=True,
David Lord65da4412019-10-04 11:17:12 -070050 install_requires=["MarkupSafe>=0.23"],
51 extras_require={"i18n": ["Babel>=0.8"]},
52 entry_points={"babel.extractors": ["jinja2 = jinja2.ext:bable_extract[i18n]"]},
Armin Ronacherde478f62007-02-28 22:35:04 +010053)