flask/setup.py

112 lines
2.8 KiB
Python
Raw Normal View History

2010-04-16 14:24:12 +02:00
"""
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
2010-04-16 14:24:12 +02:00
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
2010-04-16 14:24:12 +02:00
2012-02-06 20:19:32 -05:00
$ pip install Flask
2010-04-16 14:24:12 +02:00
$ python hello.py
* Running on http://localhost:5000/
2010-04-16 14:24:12 +02:00
Ready for production? `Read this first <http://flask.pocoo.org/docs/deploying/>`.
2016-06-02 12:47:36 -07:00
2010-04-16 14:24:12 +02:00
Links
`````
* `website <http://flask.pocoo.org/>`_
* `documentation <http://flask.pocoo.org/docs/>`_
2010-04-20 18:40:58 +02:00
* `development version
<https://github.com/pallets/flask/zipball/master#egg=Flask-dev>`_
2010-04-16 14:24:12 +02:00
"""
2015-02-06 18:06:16 +01:00
import re
import ast
from setuptools import setup
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('flask/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
2010-04-06 13:23:18 +02:00
setup(
name='Flask',
2015-02-06 18:06:16 +01:00
version=version,
url='https://github.com/pallets/flask/',
2010-04-06 13:23:18 +02:00
license='BSD',
author='Armin Ronacher',
author_email='armin.ronacher@active-4.com',
2010-04-20 18:40:58 +02:00
description='A microframework based on Werkzeug, Jinja2 '
'and good intentions',
2010-04-16 14:24:12 +02:00
long_description=__doc__,
2017-06-26 08:47:28 -07:00
packages=['flask', 'flask.json'],
2011-09-22 14:08:03 +02:00
include_package_data=True,
2010-04-06 13:23:18 +02:00
zip_safe=False,
platforms='any',
2018-02-06 08:03:09 -08:00
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
install_requires=[
2018-02-06 08:03:09 -08:00
'Werkzeug>=0.14',
'Jinja2>=2.10',
'itsdangerous>=0.24',
'click>=5.1',
2010-04-16 14:24:12 +02:00
],
extras_require={
2017-07-14 22:37:53 -07:00
'dotenv': ['python-dotenv'],
'dev': [
'pytest>=3',
'coverage',
'tox',
'sphinx',
],
},
2010-04-16 14:24:12 +02:00
classifiers=[
2018-02-06 08:03:09 -08:00
'Development Status :: 5 - Production/Stable',
2010-04-16 14:24:12 +02:00
'Environment :: Web Environment',
2018-02-06 08:03:09 -08:00
'Framework :: Flask',
2010-04-16 14:24:12 +02:00
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
2017-05-28 11:52:01 -07:00
'Programming Language :: Python :: 3.6',
2010-04-16 14:24:12 +02:00
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
2018-02-06 08:03:09 -08:00
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Topic :: Software Development :: Libraries :: Python Modules',
2010-05-31 17:53:10 +02:00
],
2018-02-06 08:03:09 -08:00
entry_points={
'console_scripts': [
'flask = flask.cli:main',
],
},
2010-04-06 13:23:18 +02:00
)