summaryrefslogtreecommitdiffstats
path: root/pavement.py
diff options
context:
space:
mode:
Diffstat (limited to 'pavement.py')
-rw-r--r--pavement.py31
1 files changed, 25 insertions, 6 deletions
diff --git a/pavement.py b/pavement.py
index ac9a6fa1a..4b5ccb883 100644
--- a/pavement.py
+++ b/pavement.py
@@ -3,7 +3,25 @@
from paver.easy import *
from paver.setuputils import setup
-from paver.doctools import cog
+try:
+ from paver.doctools import cog
+except:
+ cog = None
+
+import fnmatch
+
+# patch to let it support list of patterns
+def new_fnmatch(self, pattern):
+ if type(pattern) == list:
+ for p in pattern:
+ if fnmatch.fnmatch(self.name, p):
+ return True
+ return False
+ else:
+ return fnmatch.fnmatch(self.name, pattern)
+
+path.fnmatch = new_fnmatch
+
import sys
import re
@@ -23,7 +41,7 @@ if sys.version_info <= (2, 5):
setup(
name="pyload",
- version="0.4.9",
+ version="0.5.0",
description='Fast, lightweight and full featured download manager.',
long_description=open(PROJECT_DIR / "README").read(),
keywords = ('pyload', 'download-manager', 'one-click-hoster', 'download'),
@@ -86,7 +104,7 @@ options(
virtual="virtualenv2",
),
cog=Bunch(
- pattern="*.py",
+ pattern=["*.py", "*.rst"],
)
)
@@ -147,7 +165,7 @@ def get_source(options):
@task
-@needs('clean', 'generate_setup', 'minilib', 'get_source', 'setuptools.command.sdist')
+@needs('clean', 'generate_setup', 'get_source', 'setuptools.command.sdist')
def sdist():
""" Build source code package with distutils """
@@ -242,7 +260,8 @@ def generate_locale():
@task
def tests():
- call(["nosetests2"])
+ """ Run nosetests """
+ call(["tests/nosetests.sh"])
@task
def virtualenv(options):
@@ -263,7 +282,7 @@ def clean_env():
@task
-@needs('generate_setup', 'minilib', 'get_source', 'virtualenv')
+@needs('generate_setup', 'get_source', 'virtualenv')
def env_install():
"""Install pyLoad into the virtualenv"""
venv = options.virtualenv