Skip to content
Myr

setup.py

This file

Path

setup.py

111 lines · 3.0 KiB · Python

Last changed by

Require Werkzeug>=0.7, #449.Ron DuPlainbefore adoptionb31f2d9

History of this file

Take it

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

Ensure that nobody can nest test client invocationsArmin Ronacherbefore adoption311ac0f

lines 1–27why, 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````````````1011::1213 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`````````````````2526::27

pip > easy_installKenneth Reitzbefore adoption3de8de1

line 28why, one step back
28 $ pip install Flask

Ensure that nobody can nest test client invocationsArmin Ronacherbefore adoption311ac0f

lines 29–51why, one step back
29 $ python hello.py
30 * 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"""41from setuptools import Command, setup4243class run_audit(Command):44 """Audits source code using PyFlakes for following issues:45 - Names which are used but not defined or used before they are defined.46 - Names which are redefined without having been used.47 """48 description = "Audit source code with PyFlakes"49 user_options = []5051 def initialize_options(self):

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

line 52why, one step back
52 pass

Ensure that nobody can nest test client invocationsArmin Ronacherbefore adoption311ac0f

lines 53–61why, one step back
53
54 def finalize_options(self):55 pass5657 def run(self):58 import os, sys59 try:60 import pyflakes.scripts.pyflakes as flakes61 except ImportError:

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

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

Ensure that nobody can nest test client invocationsArmin Ronacherbefore adoption311ac0f

lines 63–65why, one step back
63 sys.exit(-1)
6465 warns = 0

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

lines 66–67why, one step back
66 # Define top-level directories
67 dirs = ('flask', 'examples', 'scripts')

Ensure that nobody can nest test client invocationsArmin Ronacherbefore adoption311ac0f

line 68why, one step back
68 for dir in dirs:

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

lines 69–72why, one step back
69 for root, _, files in os.walk(dir):
70 for file in files:71 if file != '__init__.py' and file.endswith('.py') :72 warns += flakes.checkPath(os.path.join(root, file))

Ensure that nobody can nest test client invocationsArmin Ronacherbefore adoption311ac0f

line 73why, one step back
73 if warns > 0:

Parentheses are for Python3Armin Ronacherbefore adoption04b90f5

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

Ensure that nobody can nest test client invocationsArmin Ronacherbefore adoption311ac0f

line 75why, one step back
75 else:

Parentheses are for Python3Armin Ronacherbefore adoption04b90f5

line 76why, one step back
76 print "No problems found in sourcecode."

Ensure that nobody can nest test client invocationsArmin Ronacherbefore adoption311ac0f

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

This is 0.9-devArmin Ronacherbefore adoption3765cc2

line 80why, one step back
80 version='0.9-dev',

Ensure that nobody can nest test client invocationsArmin Ronacherbefore adoption311ac0f

lines 81–87why, one step back
81 url='http://github.com/mitsuhiko/flask/',
82 license='BSD',83 author='Armin Ronacher',84 author_email='armin.ronacher@active-4.com',85 description='A microframework based on Werkzeug, Jinja2 '86 'and good intentions',87 long_description=__doc__,

Added ext to the packagesArmin Ronacherbefore adoptiond4d7570

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

Whitespace normalizeArmin Ronacherbefore adoption0c75be1

line 89why, one step back
89 include_package_data=True,

Ensure that nobody can nest test client invocationsArmin Ronacherbefore adoption311ac0f

lines 90–92why, one step back
90 zip_safe=False,
91 platforms='any',92 install_requires=[

Require Werkzeug>=0.7, #449.Ron DuPlainbefore adoptionb31f2d9

line 93why, one step back
93 'Werkzeug>=0.7',

Ensure that nobody can nest test client invocationsArmin Ronacherbefore adoption311ac0f

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

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

lines 103–105why, one step back
103 'Programming Language :: Python :: 2.5',
104 'Programming Language :: Python :: 2.6',105 'Programming Language :: Python :: 2.7',

Ensure that nobody can nest test client invocationsArmin Ronacherbefore adoption311ac0f

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

Split up testsuite and moved it to flask.testsuite. This fixes #246Armin Ronacherbefore adoption4cb6eea

line 110why, one step back
110 test_suite='flask.testsuite.suite'

Ensure that nobody can nest test client invocationsArmin Ronacherbefore adoption311ac0f

line 111why, one step back
111)