Skip to content
Myr

move metadata to setup.cfg

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 e8d032b · Browse files · 2 files+41 added−30 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+41 added−30 removed

  • other:+41 added−30 removed

2 files+41 added−30 removed

modified:setup.cfg+40 added-3 removed
1[metadata]2license_file = LICENSE.rst3long_description = file:README.rst2name = Jinja23# Version needs regex in setup.py.4url = https://palletsprojects.com/p/jinja5project_urls =6 Documentation = https://jinja.palletsprojects.com/7 Code = https://github.com/pallets/jinja8 Issue tracker = https://github.com/pallets/jinja/issues9license = BSD-3-Clause10license_files = LICENSE.rst11author = Armin Ronacher12author_email = armin.ronacher@active-4.com13maintainer = Pallets14maintainer_email = contact@palletsprojects.com15description = A very fast and expressive template engine.16long_description = file: README.rst17long_description_content_type = text/x-rst18classifiers =19 Development Status :: 5 - Production/Stable20 Environment :: Web Environment21 Intended Audience :: Developers22 License :: OSI Approved :: BSD License23 Operating System :: OS Independent24 Programming Language :: Python25 Topic :: Internet :: WWW/HTTP :: Dynamic Content26 Topic :: Text Processing :: Markup :: HTML2728[options]29packages = find:30package_dir = = src31include_package_data = true32python_requires = >= 3.633# Dependencies are in setup.py for GitHub's dependency graph.3435[options.packages.find]36where = src3738[options.entry_points]39babel.extractors =40 jinja2 = jinja2.ext:babel_extract[i18n]4142[tool:pytest]43testpaths = tests44filterwarnings =45 error
14 unmodified lines
60# E = pycodestyle errors61# F = flake8 pyflakes62# W = pycodestyle warnings63# B9 = bugbear opinions64# ISC = implicit-str-concat28select = B, E, F, W, B965select = B, E, F, W, B9, ISC66ignore =67 # slice notation whitespace, invalid68 E20369 # line length, handled by bugbear B950
10 unmodified lines
modified:setup.py+1 added-27 removed
1import re23from setuptools import find_packages3from setuptools import setup45with open("src/jinja2/__init__.py", "rt", encoding="utf8") as f:6 version = re.search(r'__version__ = "(.*?)"', f.read(), re.M).group(1)78# Metadata goes in setup.cfg. These are here for GitHub's dependency graph.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",12 install_requires=["MarkupSafe>=1.1"],13 extras_require={"i18n": ["Babel>=2.1"]},39 entry_points={"babel.extractors": ["jinja2 = jinja2.ext:babel_extract[i18n]"]},14)