2012-05-15 17:21:49 -04:00
|
|
|
import datetime
|
|
|
|
from setuptools import setup
|
|
|
|
|
2012-06-15 23:25:59 -07:00
|
|
|
ci_cmdclass = {}
|
2012-05-15 17:21:49 -04:00
|
|
|
|
2012-06-11 11:07:14 +01:00
|
|
|
try:
|
|
|
|
from sphinx.setup_command import BuildDoc
|
|
|
|
|
|
|
|
class local_BuildDoc(BuildDoc):
|
|
|
|
def run(self):
|
|
|
|
for builder in ['html', 'man']:
|
|
|
|
self.builder = builder
|
|
|
|
self.finalize_options()
|
|
|
|
BuildDoc.run(self)
|
|
|
|
ci_cmdclass['build_sphinx'] = local_BuildDoc
|
|
|
|
except Exception:
|
|
|
|
pass
|
2012-05-15 17:21:49 -04:00
|
|
|
|
2012-09-26 13:39:31 -07:00
|
|
|
setup(name='openstack-ci-puppet',
|
2012-06-15 23:25:59 -07:00
|
|
|
version="%d.%02d" % (datetime.datetime.now().year,
|
|
|
|
datetime.datetime.now().month),
|
2012-05-15 17:21:49 -04:00
|
|
|
description="OpenStack Continuous Integration Scripts",
|
|
|
|
author="OpenStack CI Team",
|
|
|
|
author_email="openstack-ci@lists.launchpad.net",
|
|
|
|
url="http://launchpad.net/openstack-ci",
|
|
|
|
cmdclass=ci_cmdclass)
|