Skip to content
Myr

move version 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 6f182be · Browse files · 2 files+2 added−8 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+2 added−8 removed

  • other:+2 added−8 removed

2 files+2 added−8 removed

modified:setup.cfg+2 added-2 removed
1[metadata]2name = Jinja23# Version needs regex in setup.py.4url = https://palletsprojects.com/p/jinja3version = attr: jinja2.__version__4url = https://palletsprojects.com/p/jinja/5project_urls =6 Donate = https://palletsprojects.com/donate7 Documentation = https://jinja.palletsprojects.com/8 Changes = https://jinja.palletsprojects.com/changes/
92 unmodified lines
modified:setup.py-6 removed
1import re21from setuptools import setup25with open("src/jinja2/__init__.py", encoding="utf8") as f:6 version = re.search(r'__version__ = "(.*?)"', f.read(), re.M).group(1)73# Metadata goes in setup.cfg. These are here for GitHub's dependency graph.4setup(5 name="Jinja2",11 version=version,6 install_requires=["MarkupSafe>=1.1"],7 extras_require={"i18n": ["Babel>=2.1"]},8)