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
Provenance
- Commit
cd41cac- Tree
7938361- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
e8d032b
2 files changed+41 added−30 removed
modified:setup.cfg+40 added-3 removed
1 [metadata]2-license_file = LICENSE.rst3-long_description = file:README.rst2+name = Jinja23+# Version needs regex in setup.py.4+url = https://palletsprojects.com/p/jinja5+project_urls =6+ Documentation = https://jinja.palletsprojects.com/7+ Code = https://github.com/pallets/jinja8+ Issue tracker = https://github.com/pallets/jinja/issues9+license = BSD-3-Clause10+license_files = LICENSE.rst11+author = Armin Ronacher12+author_email = armin.ronacher@active-4.com13+maintainer = Pallets14+maintainer_email = contact@palletsprojects.com15+description = A very fast and expressive template engine.16+long_description = file: README.rst17 long_description_content_type = text/x-rst18+classifiers =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 :: HTML27 28+[options]29+packages = find:30+package_dir = = src31+include_package_data = true32+python_requires = >= 3.633+# Dependencies are in setup.py for GitHub's dependency graph.34+35+[options.packages.find]36+where = src37+38+[options.entry_points]39+babel.extractors =40+ jinja2 = jinja2.ext:babel_extract[i18n]41+42 [tool:pytest]43 testpaths = tests44 filterwarnings =45 error14 unmodified lines60 # E = pycodestyle errors61 # F = flake8 pyflakes62 # W = pycodestyle warnings63 # B9 = bugbear opinions64+# ISC = implicit-str-concat28-select = B, E, F, W, B965+select = B, E, F, W, B9, ISC66 ignore =67 # slice notation whitespace, invalid68 E20369 # line length, handled by bugbear B95010 unmodified linesmodified:setup.py+1 added-27 removed
1 import re2 3-from setuptools import find_packages3 from setuptools import setup4 5 with open("src/jinja2/__init__.py", "rt", encoding="utf8") as f:6 version = re.search(r'__version__ = "(.*?)"', f.read(), re.M).group(1)7 8+# Metadata goes in setup.cfg. These are here for GitHub's dependency graph.9 setup(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 )