Commits

Tarek Ziadé committed 02ef11f

display all versions in --version - fixes #7

Comments (0)

Files changed (4)

flake8/__init__.py

 #
+
+__version__ = '1.1'
+
 for space.
 
 """
+from flake8 import __version__ as flake8_version
+from pyflakes import __version__ as pep8_version
 
 __version__ = '0.6.1'
 
     Process options passed either via arglist or via command line args.
     """
     global options, args
-    parser = OptionParser(version=__version__,
+    version = '%s (pyflakes: %s, pep8: %s)' % (flake8_version, pep8_version,
+            __version__)
+    parser = OptionParser(version=version,
                           usage="%prog [options] input ...")
     parser.add_option('--max-complexity', default=-1, action='store',
                       type='int', help="McCabe complexity treshold")

flake8/pyflakes.py

 from flake8 import messages
 from flake8.util import skip_warning
 
+__version__ = '0.5.0'
+
 # utility function to iterate over an AST node's children, adapted
 # from Python 2.6's standard ast module
 try:
 except ImportError:
     from distutils.core import setup
 
+from flake8 import __version__
+
 README = open('README').read()
 
 setup(
     name="flake8",
     license="MIT",
-    version="1.1",
+    version=__version__,
     description="code checking using pep8 and pyflakes",
     author="Tarek Ziade",
     author_email="tarek@ziade.org",