From 81e79a87c41498cfbbbef2299339fc967a3fba1f Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Wed, 14 Jul 2010 09:46:14 -0500 Subject: [PATCH] Added support for building docs from setup.py. --- setup.cfg | 4 ++++ setup.py | 12 ++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 setup.cfg diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000000..8394725445 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,4 @@ +[build_sphinx] +source-dir = doc/source +build-dir = doc/build +all_files = 1 diff --git a/setup.py b/setup.py index 7adfdda31f..7a402653ca 100644 --- a/setup.py +++ b/setup.py @@ -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',