2013-11-03 11:26:36 +08:00
|
|
|
# -*- coding: utf-8 -*-
|
2013-11-04 08:32:45 +08:00
|
|
|
"""`sphinx_rtd_theme` lives on `Github`_.
|
2013-11-03 11:26:36 +08:00
|
|
|
|
|
|
|
.. _github: https://www.github.com/snide/sphinx_rtd_theme
|
|
|
|
|
|
|
|
"""
|
|
|
|
from setuptools import setup, find_packages
|
2013-11-04 08:32:45 +08:00
|
|
|
|
|
|
|
version = {}
|
2013-11-04 08:45:35 +08:00
|
|
|
with open("sphinx_rtd_theme/__init__.py") as fp:
|
2013-11-04 08:32:45 +08:00
|
|
|
exec(fp.read(), version)
|
2013-11-03 11:26:36 +08:00
|
|
|
|
|
|
|
try:
|
|
|
|
from pip.req import parse_requirements
|
|
|
|
except ImportError:
|
|
|
|
def requirements(f):
|
|
|
|
reqs = open(f, 'r').read().splitlines()
|
|
|
|
reqs = [r for r in reqs if not r.strip().startswith('#')]
|
|
|
|
return reqs
|
|
|
|
else:
|
|
|
|
def requirements(f):
|
|
|
|
install_reqs = parse_requirements(f)
|
|
|
|
reqs = [str(r.req) for r in install_reqs]
|
|
|
|
return reqs
|
|
|
|
|
|
|
|
|
|
|
|
setup(
|
2013-11-04 08:32:45 +08:00
|
|
|
name='sphinx_rtd_theme',
|
|
|
|
version=version['__version__'],
|
2013-11-03 11:26:36 +08:00
|
|
|
url='https://github.com/snide/sphinx_rtd_theme/',
|
|
|
|
license='MIT',
|
|
|
|
author='Dave Snider',
|
|
|
|
author_email='dave.snider@gmail.com',
|
|
|
|
description='ReadTheDocs.org theme for Sphinx, 2013 version.',
|
|
|
|
long_description=open('README.rst').read(),
|
|
|
|
zip_safe=False,
|
|
|
|
packages=find_packages(),
|
2013-11-04 08:45:35 +08:00
|
|
|
package_data = { "sphinx_rtd_theme": ['*.*', 'static/*.*', 'static/*/*.*'] },
|
2013-11-03 11:26:36 +08:00
|
|
|
install_requires=['sphinx>=1.1'],
|
|
|
|
classifiers=[
|
|
|
|
'Development Status :: 3 - Alpha',
|
|
|
|
'License :: OSI Approved :: BSD License',
|
|
|
|
'Environment :: Console',
|
|
|
|
'Environment :: Web Environment',
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'Programming Language :: Python :: 2.7',
|
|
|
|
'Programming Language :: Python :: 3',
|
|
|
|
'Operating System :: OS Independent',
|
|
|
|
'Topic :: Documentation',
|
|
|
|
'Topic :: Software Development :: Documentation',
|
|
|
|
],
|
|
|
|
)
|