-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
73 lines (63 loc) · 1.94 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
__version__ = "0.0.3"
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 = 'asteroid_sphinx_theme',
version =__version__,
author = 'Asteroid',
author_email= '[email protected]',
url="https://github.com/pytorch/lightning_sphinx_theme",
docs_url="https://github.com/pytorch/lightning_sphinx_theme",
description='Asteroid: Sphinx Theme',
py_modules = ['asteroid_sphinx_theme'],
packages = ['asteroid_sphinx_theme'],
include_package_data=True,
zip_safe=False,
package_data={'asteroid_sphinx_theme': [
'theme.conf',
'*.html',
'theme_variables.jinja',
*package_files('asteroid_sphinx_theme/static')
]},
entry_points = {
'sphinx.html_themes': [
'asteroid_sphinx_theme = asteroid_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'
]
)