setup.py
This file
Path
setup.py
100 lines · 2.4 KiB · Python
Last changed by
Merge pull request #1858 from etothemanders/masterMarkus Unterwaditzerbefore adoption4102be4
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/3536 Ready 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 <http://github.com/pallets/flask/zipball/master#egg=Flask-dev>`_4546"""47import re48import ast49from setuptools import setup505152_version_re = re.compile(r'__version__\s+=\s+(.*)')5354with open('flask/__init__.py', 'rb') as f:55 version = str(ast.literal_eval(_version_re.search(56 f.read().decode('utf-8')).group(1)))575859setup(60 name='Flask',61 version=version,62 url='http://github.com/pallets/flask/',63 license='BSD',64 author='Armin Ronacher',65 author_email='armin.ronacher@active-4.com',66 description='A microframework based on Werkzeug, Jinja2 '67 'and good intentions',68 long_description=__doc__,69 packages=['flask', 'flask.ext'],70 include_package_data=True,71 zip_safe=False,72 platforms='any',73 install_requires=[74 'Werkzeug>=0.7',75 'Jinja2>=2.4',76 'itsdangerous>=0.21',77 'click>=2.0',78 ],79 classifiers=[80 'Development Status :: 4 - Beta',81 'Environment :: Web Environment',82 'Intended Audience :: Developers',83 'License :: OSI Approved :: BSD License',84 'Operating System :: OS Independent',85 'Programming Language :: Python',86 'Programming Language :: Python :: 2',87 'Programming Language :: Python :: 2.6',88 'Programming Language :: Python :: 2.7',89 'Programming Language :: Python :: 3',90 'Programming Language :: Python :: 3.3',91 'Programming Language :: Python :: 3.4',92 'Programming Language :: Python :: 3.5',93 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',94 'Topic :: Software Development :: Libraries :: Python Modules'95 ],96 entry_points='''97 [console_scripts]98 flask=flask.cli:main99 '''100)