move version to setup.cfg

This commit is contained in:
David Lord 2021-02-24 10:09:50 -08:00
parent 9e7d3a6b69
commit 0c7cbe2d11
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
2 changed files with 1 additions and 7 deletions

View file

@ -1,6 +1,6 @@
[metadata]
name = Flask
# Version needs regex in setup.py.
version = attr: flask.__version__
url = https://palletsprojects.com/p/flask
project_urls =
Donate = https://palletsprojects.com/donate

View file

@ -1,14 +1,8 @@
import re
from setuptools import setup
with open("src/flask/__init__.py", encoding="utf8") as f:
version = re.search(r'__version__ = "(.*?)"', f.read()).group(1)
# Metadata goes in setup.cfg. These are here for GitHub's dependency graph.
setup(
name="Flask",
version=version,
install_requires=[
"Werkzeug>=0.15",
"Jinja2>=2.10.1",