• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import re
2
3from setuptools import find_packages
4from setuptools import setup
5
6with open("src/jinja2/__init__.py", "rt", encoding="utf8") as f:
7    version = re.search(r'__version__ = "(.*?)"', f.read(), re.M).group(1)
8
9setup(
10    name="Jinja2",
11    version=version,
12    url="https://palletsprojects.com/p/jinja/",
13    project_urls={
14        "Documentation": "https://jinja.palletsprojects.com/",
15        "Code": "https://github.com/pallets/jinja",
16        "Issue tracker": "https://github.com/pallets/jinja/issues",
17    },
18    license="BSD-3-Clause",
19    maintainer="Pallets",
20    maintainer_email="contact@palletsprojects.com",
21    description="A very fast and expressive template engine.",
22    classifiers=[
23        "Development Status :: 5 - Production/Stable",
24        "Environment :: Web Environment",
25        "Intended Audience :: Developers",
26        "License :: OSI Approved :: BSD License",
27        "Operating System :: OS Independent",
28        "Programming Language :: Python",
29        "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
30        "Topic :: Software Development :: Libraries :: Python Modules",
31        "Topic :: Text Processing :: Markup :: HTML",
32    ],
33    packages=find_packages("src"),
34    package_dir={"": "src"},
35    include_package_data=True,
36    python_requires=">=3.6",
37    install_requires=["MarkupSafe>=1.1"],
38    extras_require={"i18n": ["Babel>=2.1"]},
39    entry_points={"babel.extractors": ["jinja2 = jinja2.ext:babel_extract[i18n]"]},
40)
41