-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
36 lines (32 loc) · 1.03 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
#!/usr/bin/env python
import setuptools
def get_version(filename):
with open(filename) as in_fh:
for line in in_fh:
if line.startswith('__version__'):
return line.split('=')[1].strip()[1:-1]
raise ValueError("Cannot extract version from %s" % filename)
setuptools.setup(
name="better-apidoc",
version=get_version("better_apidoc.py"),
url="https://github.com/goerz/better-apidoc",
author="Michael Goerz",
author_email="mail@michaelgoerz.net",
description="A version of sphinx-apidoc with support for templating",
install_requires=[
'sphinx', 'jinja2'
],
extras_require={'dev': ['pytest', ]},
py_modules=['better_apidoc'],
entry_points='''
[console_scripts]
better-apidoc=better_apidoc:main
''',
classifiers=[
'Environment :: Console',
'Natural Language :: English',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
],
)