setup.py
This file
Path
setup.py
110 lines · 2.7 KiB · Python
Last changed by
Remove python 2.6 and 3.3 everywhere. (#2583)Hsiaoming Yangbefore adoption60eecb5
History of this fileTake it
1"""2Flask3-----45Flask is a microframework for Python based on Werkzeug, Jinja 2 and good6intentions. And before you ask: It's BSD licensed!78Flask is Fun9````````````1011Save in a hello.py:1213.. code:: python1415 from flask import Flask16 app = Flask(__name__)1718 @app.route("/")19 def hello():20 return "Hello World!"2122 if __name__ == "__main__":23 app.run()2425And Easy to Setup26`````````````````2728And run it:2930.. code:: bash3132 $ pip install Flask33 $ python hello.py34 * Running on http://localhost:5000/3536Ready for production? `Read this first <http://flask.pocoo.org/docs/deploying/>`.3738Links39`````4041* `website <http://flask.pocoo.org/>`_42* `documentation <http://flask.pocoo.org/docs/>`_43* `development version44 <https://github.com/pallets/flask/zipball/master#egg=Flask-dev>`_4546"""47import re48import ast49from setuptools import setup5051_version_re = re.compile(r'__version__\s+=\s+(.*)')5253with open('flask/__init__.py', 'rb') as f:54 version = str(ast.literal_eval(_version_re.search(55 f.read().decode('utf-8')).group(1)))5657setup(58 name='Flask',59 version=version,60 url='https://github.com/pallets/flask/',61 license='BSD',62 author='Armin Ronacher',63 author_email='armin.ronacher@active-4.com',64 description='A microframework based on Werkzeug, Jinja2 '65 'and good intentions',66 long_description=__doc__,67 packages=['flask', 'flask.json'],68 include_package_data=True,69 zip_safe=False,70 platforms='any',71 install_requires=[72 'Werkzeug>=0.9',73 'Jinja2>=2.4',74 'itsdangerous>=0.21',75 'click>=4.0',76 ],77 extras_require={78 'dotenv': ['python-dotenv'],79 'dev': [80 'blinker',81 'python-dotenv',82 'greenlet',83 'pytest>=3',84 'coverage',85 'tox',86 'sphinx',87 'sphinxcontrib-log-cabinet'88 ],89 },90 classifiers=[91 'Development Status :: 4 - Beta',92 'Environment :: Web Environment',93 'Intended Audience :: Developers',94 'License :: OSI Approved :: BSD License',95 'Operating System :: OS Independent',96 'Programming Language :: Python',97 'Programming Language :: Python :: 2',98 'Programming Language :: Python :: 2.7',99 'Programming Language :: Python :: 3',100 'Programming Language :: Python :: 3.4',101 'Programming Language :: Python :: 3.5',102 'Programming Language :: Python :: 3.6',103 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',104 'Topic :: Software Development :: Libraries :: Python Modules'105 ],106 entry_points='''107 [console_scripts]108 flask=flask.cli:main109 '''110)