forked from orbit-oss/flask
move version to setup.cfg
This commit is contained in:
parent
9e7d3a6b69
commit
0c7cbe2d11
2 changed files with 1 additions and 7 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
[metadata]
|
[metadata]
|
||||||
name = Flask
|
name = Flask
|
||||||
# Version needs regex in setup.py.
|
version = attr: flask.__version__
|
||||||
url = https://palletsprojects.com/p/flask
|
url = https://palletsprojects.com/p/flask
|
||||||
project_urls =
|
project_urls =
|
||||||
Donate = https://palletsprojects.com/donate
|
Donate = https://palletsprojects.com/donate
|
||||||
|
|
|
||||||
6
setup.py
6
setup.py
|
|
@ -1,14 +1,8 @@
|
||||||
import re
|
|
||||||
|
|
||||||
from setuptools import setup
|
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.
|
# Metadata goes in setup.cfg. These are here for GitHub's dependency graph.
|
||||||
setup(
|
setup(
|
||||||
name="Flask",
|
name="Flask",
|
||||||
version=version,
|
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"Werkzeug>=0.15",
|
"Werkzeug>=0.15",
|
||||||
"Jinja2>=2.10.1",
|
"Jinja2>=2.10.1",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue