2011-11-23 14:46:32 -05:00
|
|
|
import datetime
|
|
|
|
from setuptools import setup
|
|
|
|
from sphinx.setup_command import BuildDoc
|
|
|
|
|
2012-08-30 10:23:57 +08:00
|
|
|
cmdclass = {}
|
|
|
|
|
2011-11-23 14:46:32 -05:00
|
|
|
|
|
|
|
class local_BuildDoc(BuildDoc):
|
|
|
|
def run(self):
|
|
|
|
for builder in ['html', 'man']:
|
|
|
|
self.builder = builder
|
|
|
|
self.finalize_options()
|
|
|
|
BuildDoc.run(self)
|
|
|
|
cmdclass['build_sphinx'] = local_BuildDoc
|
|
|
|
|
|
|
|
setup(name='openstack-qa',
|
2012-08-30 10:23:57 +08:00
|
|
|
version="%d.%02d" % (datetime.datetime.now().year,
|
|
|
|
datetime.datetime.now().month),
|
2011-11-23 14:46:32 -05:00
|
|
|
description="OpenStack Quality Assurance and Scripts",
|
|
|
|
author="OpenStack QA Team",
|
|
|
|
author_email="openstack-qa@lists.launchpad.net",
|
|
|
|
url="http://launchpad.net/openstack-qa",
|
|
|
|
cmdclass=cmdclass)
|