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
name='swift'
version='1.0.0'
setup(
name='swift',
version='1.0.0-1',
name=name,
version=version,
description='Swift',
license='Apache License (2.0)',
author='OpenStack, LLC.',
url='https://launchpad.net/swift',
packages=find_packages(exclude=['tests','bin']),
test_suite = 'nose.collector',
command_options = {
'build_sphinx': {
'version': ('setup.py', version),
}
},
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',