setup.py
This file
Path
setup.py
100 lines · 2.4 KiB · Python
Last changed by
resolve merge conflictsKenneth Reitzbefore adoption31174fe
History of this fileTake it
The walk stopped after 200 commits: lines older than e9d1fc4 point at it.
Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4
lines 1–10why, one step back1"""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````````````10Updated setup.py a bit. This fixes #1018Armin Ronacherbefore adoption2639a23
lines 11–12why, one step back11Save in a hello.py:12Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4
lines 13–26why, one step back13.. 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`````````````````Updated setup.py a bit. This fixes #1018Armin Ronacherbefore adoption2639a23
lines 27–28why, one step back2728And run it:Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4
lines 29–35why, one step back2930.. code:: bash3132 $ pip install Flask33 $ python hello.py34 * Running on http://localhost:5000/35resolve merge conflictsKenneth Reitzbefore adoption31174fe
lines 36–37why, one step back36 Ready for production? `Read this first <http://flask.pocoo.org/docs/deploying/>`.37Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4
lines 38–43why, one step back38Links39`````4041* `website <http://flask.pocoo.org/>`_42* `documentation <http://flask.pocoo.org/docs/>`_43* `development versionresolve merge conflictsKenneth Reitzbefore adoption31174fe
line 44why, one step back44 <https://github.com/pallets/flask/zipball/master#egg=Flask-dev>`_Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4
lines 45–46why, one step back4546"""Avoid duplication of version infoMarkus Unterwaditzerbefore adoption85b20f8
lines 47–49why, one step back47import re48import ast49from setuptools import setupUpdated docs for click supportArmin Ronacherbefore adoptione9d1fc4
lines 50–51why, one step back5051Avoid duplication of version infoMarkus Unterwaditzerbefore adoption85b20f8
lines 52–58why, one step back52_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)))5758Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4
lines 59–60why, one step back59setup(60 name='Flask',Avoid duplication of version infoMarkus Unterwaditzerbefore adoption85b20f8
line 61why, one step back61 version=version,resolve merge conflictsKenneth Reitzbefore adoption31174fe
line 62why, one step back62 url='https://github.com/pallets/flask/',Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4
lines 63–68why, one step back63 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__,Merge pull request #1165 from untitaker/new_testsuiteMarkus Unterwaditzerbefore adoptionbb94a61
line 69why, one step back69 packages=['flask', 'flask.ext'],Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4
lines 70–73why, one step back70 include_package_data=True,71 zip_safe=False,72 platforms='any',73 install_requires=[resolve merge conflictsKenneth Reitzbefore adoption31174fe
line 74why, one step back74 'Werkzeug>=0.9',Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4
lines 75–76why, one step back75 'Jinja2>=2.4',76 'itsdangerous>=0.21',resolve merge conflictsKenneth Reitzbefore adoption31174fe
line 77why, one step back77 'click>=4.0',Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4
lines 78–85why, one step back78 ],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',resolve merge conflictsKenneth Reitzbefore adoption31174fe
lines 86–88why, one step back86 'Programming Language :: Python :: 2',87 'Programming Language :: Python :: 2.6',88 'Programming Language :: Python :: 2.7',Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4
line 89why, one step back89 'Programming Language :: Python :: 3',resolve merge conflictsKenneth Reitzbefore adoption31174fe
lines 90–92why, one step back90 'Programming Language :: Python :: 3.3',91 'Programming Language :: Python :: 3.4',92 'Programming Language :: Python :: 3.5',Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4
lines 93–98why, one step back93 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',94 'Topic :: Software Development :: Libraries :: Python Modules'95 ],96 entry_points='''97 [console_scripts]98 flask=flask.cli:mainMerge pull request #1165 from untitaker/new_testsuiteMarkus Unterwaditzerbefore adoptionbb94a61
line 99why, one step back99 '''Updated docs for click supportArmin Ronacherbefore adoptione9d1fc4
line 100why, one step back100)