forked from executablebooks/sphinx-book-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
71 lines (69 loc) · 2.33 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
from setuptools import setup, find_packages
from pathlib import Path
lines = Path("sphinx_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="sphinx-book-theme",
version=version,
python_requires=">=3.6",
author="Project Jupyter Contributors",
author_email="jupyter@googlegroups.com",
url="https://jupyterbook.org/",
project_urls={
"Documentation": "https://jupyterbook.org",
"Funding": "https://jupyter.org/about",
"Source": "https://github.com/jupyter/jupyter-book/",
"Tracker": "https://github.com/jupyter/jupyter-book/issues",
},
# this should be a whitespace separated string of keywords, not a list
keywords="reproducible science environments scholarship notebook",
description="Jupyter Book: Create an online book with Jupyter Notebooks",
long_description=Path("./README.md").read_text(),
long_description_content_type="text/markdown",
license="BSD",
packages=find_packages(),
install_requires=[
"beautifulsoup4>=4.6.1,<5",
"click~=7.1",
"docutils>=0.15,<0.17",
'importlib-resources>=3.0,<3.5; python_version < "3.7"',
"pydata-sphinx-theme~=0.6.0",
"pyyaml",
"sphinx>=3,<5",
],
extras_require={
"code_style": ["pre-commit~=2.7.0"],
"sphinx": [
"ablog~=0.10.13",
"ipywidgets",
"folium",
"numpy",
"matplotlib",
"myst-nb~=0.13",
"nbclient",
"pandas",
"plotly",
"sphinx~=4.0", # Force Sphinx to be the latest version
"sphinx-design",
"sphinx-copybutton",
"sphinx-togglebutton>=0.2.1",
"sphinx-thebe",
"sphinxcontrib-bibtex~=2.2",
"sphinxext-opengraph",
],
"testing": [
"coverage",
"myst_nb~=0.13",
"pytest~=6.0.1",
"pytest-cov",
"pytest-regressions~=2.0.1",
"sphinx_thebe",
],
"live-dev": ["sphinx-autobuild", "web-compile~=0.2.1"],
},
entry_points={"sphinx.html_themes": ["sphinx_book_theme = sphinx_book_theme"]},
include_package_data=True,
)