forked from executablebooks/sphinx-thebe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
41 lines (37 loc) · 1.23 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
import os
from pathlib import Path
from setuptools import setup, find_packages
with open("./README.md", "r") as ff:
readme_text = ff.read()
# Parse version
init = Path(__file__).parent.joinpath("sphinx_thebe", "__init__.py")
for line in init.read_text().split("\n"):
if line.startswith("__version__ ="):
break
version = line.split(" = ")[-1].strip('"')
setup(
name="sphinx-thebe",
version=version,
description="Integrate interactive code blocks into your documentation with Thebe and Binder.",
long_description=readme_text,
long_description_content_type="text/markdown",
author="Executable Book Project",
url="https://github.com/executablebooks/sphinx-thebe",
license="MIT License",
packages=find_packages(),
include_package_data=True,
package_data={
"sphinx_thebe": ["_static/sphinx-thebe.css", "_static/sphinx-thebe.js",]
},
classifiers=["License :: OSI Approved :: MIT License"],
install_requires=["sphinx>=3.5,<5"],
extras_require={
"sphinx": [
"myst-parser[sphinx]",
"sphinx-book-theme",
"jupyter-sphinx",
"sphinx-panels",
],
"testing": ["pytest", "pytest-regressions", "beautifulsoup4"],
},
)