forked from mitmproxy/pdoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
56 lines (53 loc) · 1.9 KB
/
setup.py
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
52
53
54
55
56
import codecs
from distutils.core import setup
import os.path as path
install_requires = ['mako', 'markdown < 2.5']
try: # Is this really the right way? Couldn't find anything better...
import argparse
except ImportError:
install_requires.append('argparse')
cwd = path.dirname(__file__)
longdesc = codecs.open(path.join(cwd, 'longdesc.rst'), 'r', 'utf-8').read()
version = '0.0.0'
with codecs.open(path.join(cwd, 'pdoc', '__init__.py'), 'r', 'utf-8') as f:
for line in f:
if line.startswith('__version__'):
exec(line.strip())
version = __version__
break
setup(
name='pdoc',
author='Andrew Gallant',
author_email='pdoc@burntsushi.net',
version=version,
license='UNLICENSE',
description='A simple program and library to auto generate API '
'documentation for Python modules.',
long_description=longdesc,
url='https://github.com/BurntSushi/pdoc',
classifiers=[
'Topic :: Documentation',
'Topic :: Software Development :: Documentation',
'Topic :: Utilities',
'License :: Public Domain',
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
],
platforms='ANY',
packages=['pdoc'],
package_data={'pdoc': ['templates/*']},
data_files=[('share/pdoc', ['README.md', 'longdesc.rst',
'UNLICENSE', 'INSTALL', 'CHANGELOG']),
('share/doc/pdoc', ['doc/pdoc/index.html']),
],
scripts=['scripts/pdoc'],
provides=['pdoc'],
requires=['argparse', 'mako', 'markdown'],
install_requires=install_requires,
extras_require={'syntax_highlighting': ['pygments']},
)