|
|
|
"""
|
|
|
|
Flask
|
|
|
|
-----
|
|
|
|
|
|
|
|
Flask is a microframework for Python based on Werkzeug, Jinja 2 and good
|
|
|
|
intentions. And before you ask: It's BSD licensed!
|
|
|
|
|
|
|
|
Flask is Fun
|
|
|
|
````````````
|
|
|
|
|
|
|
|
Save in a hello.py:
|
|
|
|
|
|
|
|
.. code:: python
|
|
|
|
|
|
|
|
from flask import Flask
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
|
|
@app.route("/")
|
|
|
|
def hello():
|
|
|
|
return "Hello World!"
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
app.run()
|
|
|
|
|
|
|
|
And Easy to Setup
|
|
|
|
`````````````````
|
|
|
|
|
|
|
|
And run it:
|
|
|
|
|
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
$ pip install Flask
|
|
|
|
$ python hello.py
|
|
|
|
* Running on http://localhost:5000/
|
|
|
|
|
|
|
|
Links
|
|
|
|
`````
|
|
|
|
|
|
|
|
* `website <http://flask.pocoo.org/>`_
|
|
|
|
* `documentation <http://flask.pocoo.org/docs/>`_
|
|
|
|
* `development version
|
|
|
|
<http://github.com/mitsuhiko/flask/zipball/master#egg=Flask-dev>`_
|
|
|
|
|
|
|
|
"""
|
|
|
|
from __future__ import print_function
|
|
|
|
from setuptools import Command, setup
|
|
|
|
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name='Flask',
|
|
|
|
version='0.11-dev',
|
|
|
|
url='http://github.com/mitsuhiko/flask/',
|
|
|
|
license='BSD',
|
|
|
|
author='Armin Ronacher',
|
|
|
|
author_email='armin.ronacher@active-4.com',
|
|
|
|
description='A microframework based on Werkzeug, Jinja2 '
|
|
|
|
'and good intentions',
|
|
|
|
long_description=__doc__,
|
|
|
|
packages=['flask', 'flask.ext'],
|
|
|
|
include_package_data=True,
|
|
|
|
zip_safe=False,
|
|
|
|
platforms='any',
|
|
|
|
install_requires=[
|
|
|
|
'Werkzeug>=0.7',
|
|
|
|
'Jinja2>=2.4',
|
|
|
|
'itsdangerous>=0.21',
|
|
|
|
'click>=2.0',
|
|
|
|
],
|
|
|
|
classifiers=[
|
|
|
|
'Development Status :: 4 - Beta',
|
|
|
|
'Environment :: Web Environment',
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'License :: OSI Approved :: BSD License',
|
|
|
|
'Operating System :: OS Independent',
|
|
|
|
'Programming Language :: Python',
|
|
|
|
'Programming Language :: Python :: 3',
|
|
|
|
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
|
|
|
|
'Topic :: Software Development :: Libraries :: Python Modules'
|
|
|
|
],
|
|
|
|
entry_points='''
|
|
|
|
[console_scripts]
|
|
|
|
flask=flask.cli:main
|
|
|
|
'''
|
|
|
|
)
|