forked from readthedocs/sphinx-autoapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
51 lines (50 loc) · 1.3 KB
/
setup.py
File metadata and controls
51 lines (50 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import codecs
try:
from setuptools import setup, find_packages
extra_setup = dict(
install_requires=[
'PyYAML',
'pydocstyle',
'wheel==0.24.0',
'sphinx',
'sphinxcontrib-golangdomain',
'sphinxcontrib-dotnetdomain',
'unidecode',
],
test_suite='nose.collector',
tests_require=['nose', 'mock'],
)
except ImportError:
from distutils.core import setup
extra_setup = dict(
requires=[
'PyYAML',
'pydocstyle',
'wheel==0.24.0',
'sphinx'
'sphinxcontrib-golangdomain',
'sphinxcontrib-dotnetdomain',
'unidecode',
],
)
setup(
name='sphinx-autoapi',
version='0.5.0',
author='Eric Holscher',
author_email='eric@ericholscher.com',
url='http://github.com/rtfd/sphinx-autoapi',
license='BSD',
description='Sphinx auto API documentation generator',
package_dir={'': '.'},
packages=find_packages('.'),
long_description=codecs.open("README.rst", "r", "utf-8").read(),
# trying to add files...
include_package_data=True,
package_data={
'autoapi': [
'templates/*.rst',
'templates/*/*.rst',
],
},
**extra_setup
)