Added support for building docs from setup.py.

This commit is contained in:
Monty Taylor 2010-07-14 09:46:14 -05:00
parent d91a16b7cf
commit 81e79a87c4
2 changed files with 14 additions and 2 deletions

4
setup.cfg Normal file
View File

@ -0,0 +1,4 @@
[build_sphinx]
source-dir = doc/source
build-dir = doc/build
all_files = 1

View File

@ -16,15 +16,23 @@
from setuptools import setup, find_packages from setuptools import setup, find_packages
name='swift'
version='1.0.0'
setup( setup(
name='swift', name=name,
version='1.0.0-1', version=version,
description='Swift', description='Swift',
license='Apache License (2.0)', license='Apache License (2.0)',
author='OpenStack, LLC.', author='OpenStack, LLC.',
url='https://launchpad.net/swift', url='https://launchpad.net/swift',
packages=find_packages(exclude=['tests','bin']), packages=find_packages(exclude=['tests','bin']),
test_suite = 'nose.collector', test_suite = 'nose.collector',
command_options = {
'build_sphinx': {
'version': ('setup.py', version),
}
},
classifiers=[ classifiers=[
'Development Status :: 4 - Beta', 'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License', 'License :: OSI Approved :: Apache Software License',