forked from sphinx-contrib/napoleon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
52 lines (47 loc) · 1.69 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
# -*- coding: utf-8 -*-
# Copyright 2014 Rob Ruana
# Licensed under the BSD License, see LICENSE file for details.
"""Sphinx "napoleon" extension."""
import os
import sys
from setuptools import setup, find_packages
reqs = open('requirements.txt', 'r').read().strip().splitlines()
reqs_test = open('requirements_test.txt', 'r').read().strip().splitlines()
# Package versioning solution originally found here:
# http://stackoverflow.com/q/458550
version_path = os.path.join('sphinxcontrib', 'napoleon', '_version.py')
exec(open(version_path).read())
setup(
name='sphinxcontrib-napoleon',
version=__version__,
url='https://sphinxcontrib-napoleon.readthedocs.io',
download_url='http://pypi.python.org/pypi/sphinxcontrib-napoleon',
license='BSD',
author='Rob Ruana',
author_email='[email protected]',
description=__doc__,
long_description=open('README.rst', 'r').read(),
zip_safe=False,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Documentation',
'Topic :: Utilities',
'Framework :: Sphinx',
'Framework :: Sphinx :: Extension',
],
platforms='any',
packages=find_packages(exclude=['tests*']),
include_package_data=True,
install_requires=reqs,
test_suite='nose.collector',
tests_require=reqs_test,
namespace_packages=['sphinxcontrib']
)