-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathsetup.py
52 lines (49 loc) · 1.7 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
from pathlib import Path
from setuptools import setup, find_packages
version = [
line
for line in Path("sphinx_panels/__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-panels",
version=version,
description="A sphinx extension for creating panels in a grid layout.",
long_description=readme_text,
long_description_content_type="text/markdown",
author="Chris Sewell",
author_email="[email protected]",
url="https://github.com/executablebooks/sphinx-panels",
project_urls={"Documentation": "https://sphinx-panels.readthedocs.io"},
license="MIT",
packages=find_packages(),
include_package_data=True,
install_requires=[
"docutils",
"sphinx>=2,<5",
'importlib-resources~=3.0.0; python_version < "3.7"',
],
extras_require={
"themes": [
# ref: https://github.com/sphinx-doc/sphinx/issues/10291
"Jinja2<3.1",
"sphinx-rtd-theme",
"pydata-sphinx-theme~=0.4.0",
"sphinx-book-theme~=0.0.36",
"myst-parser~=0.12.9",
],
"code_style": ["pre-commit~=2.7.0"],
"testing": ["pytest~=6.0.1", "pytest-regressions~=2.0.1"],
"live-dev": ["sphinx-autobuild", "web-compile~=0.2.0"],
},
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
"Framework :: Sphinx :: Extension",
],
keywords="sphinx html bootstrap grid card dropdown button badge",
)