Skip to content
Myr

setup.py

This file

Path

setup.py

111 lines · 3.0 KiB · Python

Last changed by

Master is 0.11-devArmin Ronacherbefore adoption977e766

History of this file

Take it

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

Merge pull request #536 from lvh/patch-1Armin Ronacherbefore adoptione32de73

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

Merge branch 'master' of github.com:mitsuhiko/flaskArmin Ronacherbefore adoption30d9efb

line 11why, one step back
11.. code:: python

Merge pull request #536 from lvh/patch-1Armin Ronacherbefore adoptione32de73

lines 12–25why, one step back
12
13 from flask import Flask14 app = Flask(__name__)1516 @app.route("/")17 def hello():18 return "Hello World!"1920 if __name__ == "__main__":21 app.run()2223And Easy to Setup24`````````````````25

Merge branch 'master' of github.com:mitsuhiko/flaskArmin Ronacherbefore adoption30d9efb

line 26why, one step back
26.. code:: bash

Merge pull request #536 from lvh/patch-1Armin Ronacherbefore adoptione32de73

lines 27–40why, one step back
27
28 $ pip install Flask29 $ python hello.py30 * Running on http://localhost:5000/3132Links33`````3435* `website <http://flask.pocoo.org/>`_36* `documentation <http://flask.pocoo.org/docs/>`_37* `development version38 <http://github.com/mitsuhiko/flask/zipball/master#egg=Flask-dev>`_3940"""

Merge branch 'sprint-branch'Armin Ronacherbefore adoption29e63e0

line 41why, one step back
41from __future__ import print_function

Merge pull request #536 from lvh/patch-1Armin Ronacherbefore adoptione32de73

lines 42–62why, one step back
42from setuptools import Command, setup
4344class run_audit(Command):45 """Audits source code using PyFlakes for following issues:46 - Names which are used but not defined or used before they are defined.47 - Names which are redefined without having been used.48 """49 description = "Audit source code with PyFlakes"50 user_options = []5152 def initialize_options(self):53 pass5455 def finalize_options(self):56 pass5758 def run(self):59 import os, sys60 try:61 import pyflakes.scripts.pyflakes as flakes62 except ImportError:

Merge branch 'sprint-branch'Armin Ronacherbefore adoption29e63e0

line 63why, one step back
63 print("Audit requires PyFlakes installed in your system.")

Merge pull request #536 from lvh/patch-1Armin Ronacherbefore adoptione32de73

lines 64–74why, one step back
64 sys.exit(-1)
6566 warns = 067 # Define top-level directories68 dirs = ('flask', 'examples', 'scripts')69 for dir in dirs:70 for root, _, files in os.walk(dir):71 for file in files:72 if file != '__init__.py' and file.endswith('.py') :73 warns += flakes.checkPath(os.path.join(root, file))74 if warns > 0:

Merge branch 'sprint-branch'Armin Ronacherbefore adoption29e63e0

line 75why, one step back
75 print("Audit finished with total %d warnings." % warns)

Merge pull request #536 from lvh/patch-1Armin Ronacherbefore adoptione32de73

line 76why, one step back
76 else:

Merge branch 'sprint-branch'Armin Ronacherbefore adoption29e63e0

line 77why, one step back
77 print("No problems found in sourcecode.")

Merge pull request #536 from lvh/patch-1Armin Ronacherbefore adoptione32de73

lines 78–80why, one step back
78
79setup(80 name='Flask',

Master is 0.11-devArmin Ronacherbefore adoption977e766

line 81why, one step back
81 version='0.11-dev',

Merge pull request #536 from lvh/patch-1Armin Ronacherbefore adoptione32de73

lines 82–94why, one step back
82 url='http://github.com/mitsuhiko/flask/',
83 license='BSD',84 author='Armin Ronacher',85 author_email='armin.ronacher@active-4.com',86 description='A microframework based on Werkzeug, Jinja2 '87 'and good intentions',88 long_description=__doc__,89 packages=['flask', 'flask.ext', 'flask.testsuite'],90 include_package_data=True,91 zip_safe=False,92 platforms='any',93 install_requires=[94 'Werkzeug>=0.7',

Merge branch 'json-sessions'Armin Ronacherbefore adoptione1a5761

line 95why, one step back
95 'Jinja2>=2.4',

Merge branch 'sprint-branch'Armin Ronacherbefore adoption29e63e0

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

Merge pull request #536 from lvh/patch-1Armin Ronacherbefore adoptione32de73

lines 97–104why, one step back
97 ],
98 classifiers=[99 'Development Status :: 4 - Beta',100 'Environment :: Web Environment',101 'Intended Audience :: Developers',102 'License :: OSI Approved :: BSD License',103 'Operating System :: OS Independent',104 'Programming Language :: Python',

Merge branch '0.10-maintenance'Armin Ronacherbefore adoption89731d8

line 105why, one step back
105 'Programming Language :: Python :: 3',

Merge pull request #536 from lvh/patch-1Armin Ronacherbefore adoptione32de73

lines 106–111why, one step back
106 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
107 'Topic :: Software Development :: Libraries :: Python Modules'108 ],109 cmdclass={'audit': run_audit},110 test_suite='flask.testsuite.suite'111)