forked from jucacrispim/sphinx_pdj_theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
68 lines (55 loc) · 1.87 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
57
58
59
60
61
62
63
64
65
66
67
68
# -*- coding: utf-8 -*-
from setuptools import setup
def get_version_from_file():
# get version number from __init__ file
# before module is installed
fname = 'sphinx_x7_theme/__init__.py'
with open(fname) as f:
fcontent = f.readlines()
version_line = [l for l in fcontent if 'VERSION' in l][0]
return version_line.split('=')[1].strip().strip("'").strip('"')
def get_long_description_from_file():
# content of README will be the long description
fname = 'README.rst'
with open(fname) as f:
fcontent = f.read()
return fcontent
VERSION = get_version_from_file()
DESCRIPTION = """
Dark sphinx theme based on the RTD theme.
""".strip()
LONG_DESCRIPTION = get_long_description_from_file()
setup(
name='sphinx_x7_theme',
version=VERSION,
url='https://github.com/keesj-exset/sphinx_x7_theme',
license='MIT',
author='Kees Jongenburger',
author_email='kees.jongenburger@exsetlabs.com',
description='X7 for Sphinx',
long_description=LONG_DESCRIPTION,
packages=['sphinx_x7_theme'],
include_package_data=True,
entry_points={
'sphinx.html_themes': [
'sphinx_x7_theme = sphinx_x7_theme',
]
},
classifiers=[
'Framework :: Sphinx',
'Framework :: Sphinx :: Theme',
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Operating System :: OS Independent',
'Topic :: Documentation',
'Topic :: Software Development :: Documentation',
],
)