From e70e4e1bbe1d9671374fe6f4de4093b9149426ab Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sun, 10 Jul 2011 11:01:03 +0200 Subject: Support generating docs using epydoc. --- .gitignore | 1 + setup.py | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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 [] -- cgit v1.2.3-65-gdbad