Commits

Travis Shirk committed f11d826

examples and rsts included in sdist. fixes issue #8

Comments (0)

Files changed (2)

 include ChangeLog
 include COPYING
 include AUTHORS
-graft src/eyed3
 include bin/eyeD3
-include etc/eyeD3rc
+recursive-include src/eyed3 *.py
+recursive-include examples *
+recursive-include docs *
+recursive-exclude docs/_build *
     paverutils = None
 
 PROJECT = u"eyeD3"
-VERSION = "0.7.1"
+VERSION = "0.7.2"
 
 LICENSE     = open("COPYING", "r").read().strip('\n')
 DESCRIPTION = "Python audio data toolkit (ID3 and MP3)"
         author_email=AUTHOR_EMAIL, maintainer_email=AUTHOR_EMAIL,
         url=URL,
         download_url="%s/releases/%s" % (URL, SRC_DIST_TGZ),
-        license=license,
+        license="GPL",
         package_dir={"": "src" },
         packages=setuptools.find_packages("src",
                                           exclude=["test", "test.*"]),
         return
     elif not src.exists():
         raise Exception("Missing src/eyed3/info.py.in")
-    elif not target.exists() or src.mtime > target.mtime:
+    elif not target.exists() or src.ctime > target.ctime:
         src_file = src.open("r")
         target_file = target.open("w")
 
     pass
 
 @task
-@needs("test_clean", "uncog")
+@needs("test_clean")
 def clean():
     '''Cleans mostly everything'''
     path("build").rmtree()
     for d in [path(".")]:
         for f in d.walk(pattern="*.pyc"):
             f.remove()
+    try:
+        from paver.doctools import uncog
+        uncog()
+    except ImportError:
+        pass
 
 @task
-@needs("uncog")
 def docs_clean(options):
     '''Clean docs'''
     for d in ["html", "doctrees"]:
         path("%s/%s" % (DOC_BUILD_D, d)).rmtree()
 
+    try:
+        from paver.doctools import uncog
+        uncog()
+    except ImportError:
+        pass
+
 @task
 @needs("distclean", "docs_clean")
 def maintainer_clean():
-    path("src/eyed3/info.py").remove()
     path("paver-minilib.zip").remove()
     path("setup.py").remove()
 
     path("src/eyeD3.egg-info").rmtree()
     for f in path(".").walk(pattern="*.orig"):
         f.remove()
+    path("src/eyed3/info.py").remove()
 
 @task
 @needs("cog")
           (os.getcwd(), options.docroot, options.builddir))
 
 @task
-@needs("eyed3_info",
+@needs("distclean",
+       "eyed3_info",
        "generate_setup",
        "minilib",
-       "distclean", # get rid of .pyc and docs (i.e. cog) made
        "setuptools.command.sdist",
        )
 def sdist(options):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.