aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rwxr-xr-xsetup.py6
2 files changed, 6 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index ce6c37d..7208896 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
/build
/dist
/doc/*.html
+/doc/html/
diff --git a/setup.py b/setup.py
index e961633..3cea20c 100755
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@
from distutils.core import setup, Command, Distribution
-import os.path, sys
+import os.path, subprocess, sys
sys.path.insert(0, os.path.dirname(__file__))
try:
@@ -80,6 +80,10 @@ class DocCommand(Command):
m.convertFile(f, d)
self.outfiles.append(d)
+ print('Creating API docs')
+ subprocess.check_call(['epydoc', '--verbose', '--html',
+ '--output', os.path.join('doc', 'html'), 'pmstestsuite'])
+
def get_inputs(self):
return self.docs or []