1. Travis Shirk
  2. eyeD3

Commits

Travis Shirk  committed 9baad4a

moar

  • Participants
  • Parent commits 2b26ebf
  • Branches default

Comments (0)

Files changed (2)

File pavement.py

View file
 AUTHOR = "Travis Shirk"
 AUTHOR_EMAIL = "travis@pobox.com"
 
+PACKAGE_DATA = paver.setuputils.find_package_data("src/eyed3",
+                                                  package="eyed3",
+                                                  only_in_packages=True,
+                                                  )
+
 options(
     setup=Bunch(
         name=PROJECT, version=VERSION,
         platforms=("Any",),
         keywords=("id3", "mp3", "python"),
         scripts=["bin/eyeD3"],
+        package_data=PACKAGE_DATA,
    ),
 
    sphinx=Bunch(
        endspec='}}}',
        endoutput='{{{end}}}',
        includedir=path(__file__).abspath().dirname(),
-       #include_markers={"sh", "#"},
    ),
 )
 
         target_file.close()
 
 @task
-@needs("eyed3_info", "setuptools.command.build_py")
+@needs("eyed3_info",
+       "setuptools.command.build_py")
 def all():
     '''Build the code'''
     pass
 
-## Clean targets ##
 
 @task
-@needs("test_clean", "docs_clean")
+@needs("test_clean")
 def clean():
     '''Cleans mostly everything'''
     path("build").rmtree()
 
-    for d in [path("src"), path("bin")]:
+    for d in [path(".")]:
         for f in d.walk(pattern="*.pyc"):
             f.remove()
 
         path("docs/.build/%s" % d).rmtree()
 
 @task
+@needs("distclean")
+def maintainer_clean():
+    path("src/eyed3/info.py").remove()
+    path("paver-minilib.zip").remove()
+    path("setup.py").remove()
+
+@task
 @needs("clean")
 def distclean():
     '''Like 'clean' but also everything else'''
-    path("src/eyed3/info.py").remove()
     path("tags").remove()
     path("dist").rmtree()
     path("src/eyeD3.egg-info").rmtree()
-    path("paver-minilib.zip").remove()
     for f in path(".").walk(pattern="*.orig"):
         f.remove()
 
           (os.getcwd(), options.docroot, options.builddir))
 
 @task
-@needs("generate_setup",
+@needs("eyed3_info",
+       "generate_setup",
        "minilib",
-       "docs",
-       "eyed3_info",
+       "distclean", # get rid of .pyc that docs (i.e. cog) made
        "setuptools.command.sdist",
        )
 def sdist(options):
 
 @task
 def cog(options):
+    '''Run cog on all docs'''
     _runcog(options)

File setup.py

-try:
-    import paver.tasks
-except ImportError:
-    from os.path import exists
-    if exists("paver-minilib.zip"):
-        import sys
-        sys.path.insert(0, "paver-minilib.zip")
-    import paver.tasks
-
-paver.tasks.main()