forked from QuantEcon/quantecon-book-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
78 lines (76 loc) · 2.2 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
74
75
76
77
78
from setuptools import setup, find_packages
from pathlib import Path
lines = Path("quantumghent_book_theme").joinpath("__init__.py")
for line in lines.read_text().split("\n"):
if line.startswith("__version__ ="):
version = line.split(" = ")[-1].strip('"')
break
setup(
name="quantumghent-book-theme",
version=version,
python_requires=">=3.6",
author="QuantumGhent",
author_email="[email protected]",
# this should be a whitespace separated string of keywords, not a list
keywords="reproducible science environments scholarship notebook",
description="Theme for quantumghent lectures",
long_description=Path("./README.md").read_text(),
long_description_content_type="text/markdown",
license="BSD",
packages=find_packages(),
install_requires=[
"pyyaml",
"sphinx>=4,<7",
"docutils",
"click",
"setuptools",
"libsass~=0.20.1",
"sphinx_book_theme~=1.0.0",
"beautifulsoup4",
"web-compile",
],
extras_require={
"code_style": ["flake8<3.8.0,>=3.7.0", "black", "pre-commit"],
"sphinx": [
"folium",
"numpy",
"matplotlib",
"ipywidgets",
"pandas",
"nbclient",
"myst-nb~=0.17.1",
"sphinx-togglebutton>=0.2.1",
"sphinx-copybutton",
"plotly",
"sphinxcontrib-bibtex>=2.2.0,<=2.5.0",
],
"testing": [
"myst_nb~=0.17.1",
"coverage",
"pytest~=7.1",
"pytest-cov",
"beautifulsoup4",
"sphinx_thebe",
"pytest-regressions~=2.0.1",
"sphinx_copybutton",
"sphinx_togglebutton",
],
},
entry_points={
"sphinx.html_themes": ["quantumghent_book_theme = quantumghent_book_theme"]
},
package_data={
"quantumghent_book_theme": [
"theme.conf",
# Templates
"*.html",
"topbar/*.html",
# Stylesheets
"scss/*",
# Other static files
"static/*",
"static/images/*",
]
},
include_package_data=True,
)