-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
53 lines (46 loc) · 1.26 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
import os
import os.path as osp
import re
from typing import List, Optional
from setuptools import find_packages, setup
__version__ = '0.1.1'
def package_files(
root: str,
whitelist: Optional[List[str]] = None,
) -> List[str]:
pattern = f'.({"|".join(whitelist or [])})$'
paths: List[str] = []
for path, _, names in os.walk(root):
for name in names:
if whitelist is not None and not re.search(pattern, name):
continue
paths.append(osp.join('..', path, name))
return paths
setup(
name='pyg_sphinx_theme',
version=__version__,
author='PyG Team',
author_email='[email protected]',
url='https://github.com/pyg-team/pyg_sphinx_theme',
install_requires=[
'sphinx==5.1.1',
'sphinx_rtd_theme>=1.0',
'sphinx-copybutton',
'sphinx-autodoc-typehints==1.19.2',
'nbsphinx',
],
package_data={
'pyg_sphinx_theme': [
'theme.conf',
*package_files('pyg_sphinx_theme/static',
['css', 'js', 'png', 'svg']),
]
},
entry_points={
'sphinx.html_themes': [
'pyg_sphinx_theme = pyg_sphinx_theme',
]
},
packages=find_packages(),
include_package_data=True,
)