2015-03-27 19:50:56 +00:00
|
|
|
import codecs
|
|
|
|
try:
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
extra_setup = dict(
|
2015-04-09 00:14:06 +00:00
|
|
|
install_requires=[
|
|
|
|
'PyYAML',
|
2016-10-25 23:28:12 +00:00
|
|
|
'pydocstyle',
|
|
|
|
'wheel==0.24.0',
|
2015-05-29 20:30:05 +00:00
|
|
|
'sphinx',
|
2016-10-25 23:28:12 +00:00
|
|
|
'sphinxcontrib-golangdomain',
|
2015-06-23 21:03:40 +00:00
|
|
|
'sphinxcontrib-dotnetdomain',
|
2015-08-19 01:10:25 +00:00
|
|
|
'unidecode',
|
2015-04-09 00:14:06 +00:00
|
|
|
],
|
2015-04-14 22:59:09 +00:00
|
|
|
test_suite='nose.collector',
|
|
|
|
tests_require=['nose', 'mock'],
|
2015-03-27 19:50:56 +00:00
|
|
|
)
|
|
|
|
except ImportError:
|
|
|
|
from distutils.core import setup
|
2015-04-09 00:14:06 +00:00
|
|
|
extra_setup = dict(
|
|
|
|
requires=[
|
|
|
|
'PyYAML',
|
2016-10-25 23:28:12 +00:00
|
|
|
'pydocstyle',
|
|
|
|
'wheel==0.24.0',
|
2015-05-29 20:30:05 +00:00
|
|
|
'sphinx'
|
2015-06-23 21:03:40 +00:00
|
|
|
'sphinxcontrib-golangdomain',
|
|
|
|
'sphinxcontrib-dotnetdomain',
|
2015-08-19 01:10:25 +00:00
|
|
|
'unidecode',
|
2015-04-09 00:14:06 +00:00
|
|
|
],
|
|
|
|
)
|
2015-03-27 19:50:56 +00:00
|
|
|
|
|
|
|
setup(
|
|
|
|
name='sphinx-autoapi',
|
2016-10-25 23:30:59 +00:00
|
|
|
version='0.4.0',
|
2015-03-27 19:50:56 +00:00
|
|
|
author='Eric Holscher',
|
|
|
|
author_email='eric@ericholscher.com',
|
2016-10-25 23:28:12 +00:00
|
|
|
url='http://github.com/rtfd/sphinx-autoapi',
|
2015-03-27 19:50:56 +00:00
|
|
|
license='BSD',
|
2016-10-25 23:28:12 +00:00
|
|
|
description='Sphinx auto API documentation generator',
|
2015-04-22 23:37:04 +00:00
|
|
|
package_dir={'': '.'},
|
|
|
|
packages=find_packages('.'),
|
2015-03-27 19:50:56 +00:00
|
|
|
long_description=codecs.open("README.rst", "r", "utf-8").read(),
|
|
|
|
# trying to add files...
|
|
|
|
include_package_data=True,
|
|
|
|
package_data={
|
2015-04-22 23:32:47 +00:00
|
|
|
'autoapi': [
|
|
|
|
'templates/*.rst',
|
|
|
|
'templates/*/*.rst',
|
|
|
|
],
|
2015-03-27 19:50:56 +00:00
|
|
|
},
|
|
|
|
**extra_setup
|
|
|
|
)
|