-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
71 lines (61 loc) · 2.04 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
import os
from setuptools import setup
from pt_lightning_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="pt_lightning_sphinx_theme",
version=__version__,
author="Shift Lab",
author_email="info@shiftlabny.com",
url="https://github.com/PyTorchKorea/lightning_sphinx_theme",
docs_url="https://github.com/PyTorchKorea/lightning_sphinx_theme",
description="PyTorch Lightning Sphinx Theme",
py_modules=["pt_lightning_sphinx_theme"],
packages=["pt_lightning_sphinx_theme", "pt_lightning_sphinx_theme.extensions"],
include_package_data=True,
zip_safe=False,
package_data={
"pt_lightning_sphinx_theme": [
"theme.conf",
"*.html",
"theme_variables.jinja",
*package_files("pt_lightning_sphinx_theme/static"),
]
},
entry_points={
"sphinx.html_themes": [
"pt_lightning_sphinx_theme = pt_lightning_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"],
)