forked from Lightning-Universe/lightning_sphinx_theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
73 lines (63 loc) · 2.02 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
69
70
71
72
73
import os
from setuptools import setup
from io import open
from torchdyn_sphinx_theme import __version__
def package_files(directory:str):
"""
Traverses target directory recursivery adding file paths to a list.
Original solution found at:
* https://stackoverflow.com/questions/27664504/\
how-to-add-package-data-recursively-in-python-setup-py
Parameters
----------
directory: str
Target directory to traverse.
Returns
-------
paths: list
List of file paths.
"""
paths = []
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join('..', path, filename))
return paths
setup(
name = 'torchdyn_sphinx_theme',
version =__version__,
author = 'Syntensor',
author_email= '[email protected]',
url="https://github.com/zdenek-syntensor/torchdyn_sphinx_theme",
docs_url="https://github.com/zdenek-syntensor/torchdyn_sphinx_theme",
description='Torchdyn Sphinx Theme',
py_modules = ['torchdyn_sphinx_theme'],
packages = ['torchdyn_sphinx_theme', 'torchdyn_sphinx_theme.extensions'],
include_package_data=True,
zip_safe=False,
package_data={'torchdyn_sphinx_theme': [
'theme.conf',
'*.html',
'theme_variables.jinja',
*package_files('torchdyn_sphinx_theme/static')
]},
entry_points = {
'sphinx.html_themes': [
'torchdyn_sphinx_theme = torchdyn_sphinx_theme',
]
},
license= 'MIT License',
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Internet",
"Topic :: Software Development :: Documentation"
],
install_requires=[
'sphinx'
]
)