From e7bb73767ba9b538bdab85cdb4edb2549c02427f Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 14 Mar 2012 16:05:46 -0400 Subject: [PATCH] Add automatically generated code docs. Fix bug 954734. Fix "python setup.py build_sphinx" to build the code documentation via sphinx-apidoc. Change-Id: I18eced31aab424b7c808697324cbf6cfede442a7 --- setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.py b/setup.py index 9f8d745284..4a11cf14df 100644 --- a/setup.py +++ b/setup.py @@ -17,6 +17,7 @@ from setuptools import find_packages from setuptools.command.sdist import sdist from setuptools import setup +import subprocess from keystone.openstack.common.setup import parse_requirements from keystone.openstack.common.setup import parse_dependency_links @@ -37,6 +38,8 @@ try: class local_BuildDoc(BuildDoc): def run(self): + subprocess.call('sphinx-apidoc -f -o doc/source keystone', + shell=True) for builder in ['html', 'man']: self.builder = builder self.finalize_options()