forked from executablebooks/sphinx-togglebutton
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
49 lines (45 loc) · 1.41 KB
/
setup.py
File metadata and controls
49 lines (45 loc) · 1.41 KB
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
from pathlib import Path
from setuptools import find_packages, setup
version = [
line
for line in Path("sphinx_togglebutton/__init__.py").read_text().split("\n")
if "__version__" in line
]
version = version[0].split(" = ")[-1].strip('"')
with open("./README.md", "r") as ff:
readme_text = ff.read()
setup(
name="sphinx-togglebutton",
version=version,
description="Toggle page content and collapse admonitions in Sphinx.",
long_description=readme_text,
long_description_content_type="text/markdown",
author="Chris Holdgraf",
author_email="choldgraf@berkeley.edu",
url="https://github.com/executablebooks/sphinx-togglebutton",
license="MIT License",
packages=find_packages(),
package_data={
"sphinx_togglebutton": [
"_static/togglebutton.css",
"_static/togglebutton.js",
"_static/togglebutton-chevron.svg",
"translations/README.md",
"translations/_convert.py",
"translations/jsons/*.json",
"translations/locales/**/*",
]
},
install_requires=["setuptools", "wheel", "sphinx", "docutils"],
extras_require={
"sphinx": [
"matplotlib",
"numpy",
"myst_nb",
"sphinx_book_theme",
"sphinx_design",
"sphinx_examples",
]
},
classifiers=["License :: OSI Approved :: MIT License"],
)