Skip to content
Myr

setup.py

This file

Path

setup.py

121 lines · 3.1 KiB · Python

Last changed by

Remove testsuite package from setup.pyMarkus Unterwaditzerbefore adoptionb93ab41

History of this file

Take it

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

Set release date for 0.10.1Armin Ronacherbefore adoptione562acf

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

Set release date for 0.10.1Armin Ronacherbefore adoptione562acf

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:

Set release date for 0.10.1Armin Ronacherbefore adoptione562acf

lines 29–47why, 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"""45from __future__ import print_function46from setuptools import Command, setup47

Depend on click nowArmin Ronacherbefore adoption0ac492a

line 48why, one step back
48

Set release date for 0.10.1Armin Ronacherbefore adoptione562acf

lines 49–63why, one step back
49class run_audit(Command):
50 """Audits source code using PyFlakes for following issues:51 - Names which are used but not defined or used before they are defined.52 - Names which are redefined without having been used.53 """54 description = "Audit source code with PyFlakes"55 user_options = []5657 def initialize_options(self):58 pass5960 def finalize_options(self):61 pass6263 def run(self):

Depend on click nowArmin Ronacherbefore adoption0ac492a

lines 64–65why, one step back
64 import os
65 import sys

Set release date for 0.10.1Armin Ronacherbefore adoptione562acf

lines 66–77why, one step back
66 try:
67 import pyflakes.scripts.pyflakes as flakes68 except ImportError:69 print("Audit requires PyFlakes installed in your system.")70 sys.exit(-1)7172 warns = 073 # Define top-level directories74 dirs = ('flask', 'examples', 'scripts')75 for dir in dirs:76 for root, _, files in os.walk(dir):77 for file in files:

Depend on click nowArmin Ronacherbefore adoption0ac492a

line 78why, one step back
78 if file != '__init__.py' and file.endswith('.py'):

Set release date for 0.10.1Armin Ronacherbefore adoptione562acf

lines 79–86why, one step back
79 warns += flakes.checkPath(os.path.join(root, file))
80 if warns > 0:81 print("Audit finished with total %d warnings." % warns)82 else:83 print("No problems found in sourcecode.")8485setup(86 name='Flask',

Master is 0.11-devArmin Ronacherbefore adoption977e766

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

Set release date for 0.10.1Armin Ronacherbefore adoptione562acf

lines 88–94why, one step back
88 url='http://github.com/mitsuhiko/flask/',
89 license='BSD',90 author='Armin Ronacher',91 author_email='armin.ronacher@active-4.com',92 description='A microframework based on Werkzeug, Jinja2 '93 'and good intentions',94 long_description=__doc__,

Remove testsuite package from setup.pyMarkus Unterwaditzerbefore adoptionb93ab41

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

Set release date for 0.10.1Armin Ronacherbefore adoptione562acf

lines 96–101why, one step back
96 include_package_data=True,
97 zip_safe=False,98 platforms='any',99 install_requires=[100 'Werkzeug>=0.7',101 'Jinja2>=2.4',

Depend on click nowArmin Ronacherbefore adoption0ac492a

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

Switch to newer click (2.0)Armin Ronacherbefore adoptionf6d25bb

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

Set release date for 0.10.1Armin Ronacherbefore adoptione562acf

lines 104–115why, one step back
104 ],
105 classifiers=[106 'Development Status :: 4 - Beta',107 'Environment :: Web Environment',108 'Intended Audience :: Developers',109 'License :: OSI Approved :: BSD License',110 'Operating System :: OS Independent',111 'Programming Language :: Python',112 'Programming Language :: Python :: 3',113 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',114 'Topic :: Software Development :: Libraries :: Python Modules'115 ],

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

lines 116–117why, one step back
116 entry_points='''
117 [console_scripts]

Depend on click nowArmin Ronacherbefore adoption0ac492a

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

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

line 119why, one step back
119 ''',

Move testsMarkus Unterwaditzerbefore adoption3550b26

line 120why, one step back
120 cmdclass={'audit': run_audit}

Set release date for 0.10.1Armin Ronacherbefore adoptione562acf

line 121why, one step back
121)