Commits

Travis Shirk committed ae58695

pep8

Comments (0)

Files changed (1)

 PROJECT = u"eyeD3"
 VERSION = "0.7.2"
 
-LICENSE     = open("COPYING", "r").read().strip('\n')
+LICENSE = open("COPYING", "r").read().strip('\n')
 DESCRIPTION = "Python audio data toolkit (ID3 and MP3)"
 LONG_DESCRIPTION = """
 eyeD3 is a Python module and command line program for processing ID3 tags.
 play time, etc.) is also provided. The formats supported are ID3
 v1.0/v1.1 and v2.3/v2.4.
 """
-URL          = "http://eyeD3.nicfit.net"
-AUTHOR       = "Travis Shirk"
+URL = "http://eyeD3.nicfit.net"
+AUTHOR = "Travis Shirk"
 AUTHOR_EMAIL = "travis@pobox.com"
 SRC_DIST_TGZ = "%s-%s.tgz" % (PROJECT, VERSION)
 SRC_DIST_ZIP = "%s.zip" % os.path.splitext(SRC_DIST_TGZ)[0]
-DOC_DIST     = "%s_docs-%s.tgz" % (PROJECT, VERSION)
-MD5_DIST     = "%s.md5" % os.path.splitext(SRC_DIST_TGZ)[0]
-DOC_BUILD_D  = "docs/_build"
+DOC_DIST = "%s_docs-%s.tgz" % (PROJECT, VERSION)
+MD5_DIST = "%s.md5" % os.path.splitext(SRC_DIST_TGZ)[0]
+DOC_BUILD_D = "docs/_build"
 
 PACKAGE_DATA = paver.setuputils.find_package_data("src/eyed3",
                                                   package="eyed3",
         url=URL,
         download_url="%s/releases/%s" % (URL, SRC_DIST_TGZ),
         license="GPL",
-        package_dir={"": "src" },
+        package_dir={"": "src"},
         packages=setuptools.find_packages("src",
                                           exclude=["test", "test.*"]),
         zip_safe=False,
     ),
 
     cog=Bunch(
-       beginspec='{{{cog',
-       endspec='}}}',
-       endoutput='{{{end}}}',
-       includedir=path(__file__).abspath().dirname(),
+        beginspec='{{{cog',
+        endspec='}}}',
+        endoutput='{{{end}}}',
+        includedir=path(__file__).abspath().dirname(),
     ),
 
     test=Bunch(
-       pdb=False,
-       coverage=False,
+        pdb=False,
+        coverage=False,
     ),
 
     release=Bunch(
     ),
 )
 
+
 @task
 @no_help
 def eyed3_info():
         target_file.write(src_data)
         target_file.close()
 
+
 @task
 @needs("eyed3_info",
        "setuptools.command.build")
     '''Build the code'''
     pass
 
+
 @task
 @needs("test_clean")
 def clean():
     except ImportError:
         pass
 
+
 @task
 def docs_clean(options):
     '''Clean docs'''
     except ImportError:
         pass
 
+
 @task
 @needs("distclean", "docs_clean")
 def maintainer_clean():
     path("paver-minilib.zip").remove()
     path("setup.py").remove()
 
+
 @task
 @needs("clean")
 def distclean():
         f.remove()
     path("src/eyed3/info.py").remove()
 
+
 @task
 @needs("cog")
 def docs(options):
     print("Docs: file://%s/%s/%s/html/index.html" %
           (os.getcwd(), options.docroot, options.builddir))
 
+
 @task
 @needs("distclean",
        "eyed3_info",
 
     pass
 
+
 @task
 def checklist():
     '''Show release procedure'''
 - ebuild
 """ % globals())
 
+
 @task
 @cmdopts([("test", "",
            u"Run in a mode where commits, pushes, etc. are performed"),
     resp = raw_input()
     return True if resp in ["y", "yes"] else False
 
+
 def cog_pluginHelp(name):
     from string import Template
     import argparse
     return template.substitute(substs)
 __builtins__["cog_pluginHelp"] = cog_pluginHelp
 
+
 # XXX: modified from paver.doctools._runcog to add includers
 def _runcog(options, uncog=False):
     """Common function for the cog and runcog tasks."""
         dry("cog %s" % f, c.processOneFile, f)
 
 from paver.doctools import Includer, _cogsh
+
+
 class CliExample(Includer):
     def __call__(self, fn, section=None, lang="bash"):
         # Resetting self.cog to get a string back from Includer.__call__
         raw = Includer.__call__(self, fn, section=section)
         self.cog = cog
 
-        commands = []
-
         self.cog.gen.out(u"\n.. code-block:: %s\n\n" % lang)
         for line in raw.splitlines(True):
             if line.strip() == "":
                 if output:
                     self.cog.gen.out("\n")
 
+
 @task
 def cog(options):
     '''Run cog on all docs'''