Skip to content
Myr

Depend on click now

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 1b06c8a · Browse files · 1 file+7 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−4 removed

  • other:+7 added−4 removed

1 file+7 added−4 removed

modified:setup.py+7 added-4 removed
39 unmodified lines
40"""41from __future__ import print_function42from setuptools import Command, setup434445class run_audit(Command):46 """Audits source code using PyFlakes for following issues:47 - Names which are used but not defined or used before they are defined.48 - Names which are redefined without having been used.
7 unmodified lines
56 def finalize_options(self):57 pass5859 def run(self):59 import os, sys60 import os61 import sys62 try:63 import pyflakes.scripts.pyflakes as flakes64 except ImportError:65 print("Audit requires PyFlakes installed in your system.")
4 unmodified lines
70 dirs = ('flask', 'examples', 'scripts')71 for dir in dirs:72 for root, _, files in os.walk(dir):73 for file in files:72 if file != '__init__.py' and file.endswith('.py') :74 if file != '__init__.py' and file.endswith('.py'):75 warns += flakes.checkPath(os.path.join(root, file))76 if warns > 0:77 print("Audit finished with total %d warnings." % warns)78 else:
15 unmodified lines
94 platforms='any',95 install_requires=[96 'Werkzeug>=0.7',97 'Jinja2>=2.4',96 'itsdangerous>=0.21'98 'itsdangerous>=0.21',99 'click',100 ],101 classifiers=[102 'Development Status :: 4 - Beta',103 'Environment :: Web Environment',
6 unmodified lines
110 'Topic :: Software Development :: Libraries :: Python Modules'111 ],112 entry_points='''113 [console_scripts]111 flask-run=flask.run:main114 flask=flask.cli:main115 ''',116 cmdclass={'audit': run_audit},117 test_suite='flask.testsuite.suite'118)