Skip to content
Myr

setup.py

This file

Path

setup.py

92 lines · 2.0 KiB · Python

Last changed by

Avoid duplication of version infoMarkus Unterwaditzerbefore adoption85b20f8

History of this file

Take it

The walk stopped after 200 commits: lines older than 6075797 point at it.

Added changelog entryArmin Ronacherbefore adoption6075797

lines 1–10why, one step back
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````````````10

Updated setup.py a bit. This fixes #1018Armin Ronacherbefore adoption2639a23

lines 11–12why, one step back
11Save in a hello.py:
12

Added changelog entryArmin Ronacherbefore adoption6075797

lines 13–26why, one step back
13.. code:: python
1415 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 back
27
28And run it:

Added changelog entryArmin Ronacherbefore adoption6075797

lines 29–44why, one step back
29
30.. code:: bash3132 $ pip install Flask33 $ python hello.py34 * Running on http://localhost:5000/3536Links37`````3839* `website <http://flask.pocoo.org/>`_40* `documentation <http://flask.pocoo.org/docs/>`_41* `development version42 <http://github.com/mitsuhiko/flask/zipball/master#egg=Flask-dev>`_4344"""

Avoid duplication of version infoMarkus Unterwaditzerbefore adoption85b20f8

lines 45–47why, one step back
45import re
46import ast47from setuptools import setup

Added changelog entryArmin Ronacherbefore adoption6075797

line 48why, one step back
48

Depend on click nowArmin Ronacherbefore adoption0ac492a

line 49why, one step back
49

Avoid duplication of version infoMarkus Unterwaditzerbefore adoption85b20f8

lines 50–56why, one step back
50_version_re = re.compile(r'__version__\s+=\s+(.*)')
5152with open('flask/__init__.py', 'rb') as f:53 version = str(ast.literal_eval(_version_re.search(54 f.read().decode('utf-8')).group(1)))5556

Added changelog entryArmin Ronacherbefore adoption6075797

lines 57–58why, one step back
57setup(
58 name='Flask',

Avoid duplication of version infoMarkus Unterwaditzerbefore adoption85b20f8

line 59why, one step back
59 version=version,

Added changelog entryArmin Ronacherbefore adoption6075797

lines 60–66why, one step back
60 url='http://github.com/mitsuhiko/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__,

Merge pull request #1165 from untitaker/new_testsuiteMarkus Unterwaditzerbefore adoptionbb94a61

line 67why, one step back
67 packages=['flask', 'flask.ext'],

Added changelog entryArmin Ronacherbefore adoption6075797

lines 68–73why, one step back
68 include_package_data=True,
69 zip_safe=False,70 platforms='any',71 install_requires=[72 'Werkzeug>=0.7',73 'Jinja2>=2.4',

Depend on click nowArmin Ronacherbefore adoption0ac492a

line 74why, one step back
74 'itsdangerous>=0.21',

Switch to newer click (2.0)Armin Ronacherbefore adoptionf6d25bb

line 75why, one step back
75 'click>=2.0',

Added changelog entryArmin Ronacherbefore adoption6075797

lines 76–87why, one step back
76 ],
77 classifiers=[78 'Development Status :: 4 - Beta',79 'Environment :: Web Environment',80 'Intended Audience :: Developers',81 'License :: OSI Approved :: BSD License',82 'Operating System :: OS Independent',83 'Programming Language :: Python',84 'Programming Language :: Python :: 3',85 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',86 'Topic :: Software Development :: Libraries :: Python Modules'87 ],

Added the new flask run module to start the server.Armin Ronacherbefore adoption7503bde

lines 88–89why, one step back
88 entry_points='''
89 [console_scripts]

Depend on click nowArmin Ronacherbefore adoption0ac492a

line 90why, one step back
90 flask=flask.cli:main

Merge pull request #1165 from untitaker/new_testsuiteMarkus Unterwaditzerbefore adoptionbb94a61

line 91why, one step back
91 '''

Added changelog entryArmin Ronacherbefore adoption6075797

line 92why, one step back
92)