forked from executablebooks/MyST-NB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
147 lines (133 loc) · 4.08 KB
/
pyproject.toml
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
[build-system]
requires = ["flit_core >=3.4,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "myst-nb"
dynamic = ["version"]
description = "A Jupyter Notebook Sphinx reader built on top of the MyST markdown parser."
authors = [{name = "ExecutableBookProject", email = "chrisj_sewell@hotmail.com"}]
readme = "README.md"
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Sphinx :: Extension",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Markup",
]
keywords = [
"markdown",
"lexer",
"parser",
"jupyter",
"docutils",
"sphinx",
]
requires-python = ">=3.7"
dependencies = [
"importlib_metadata",
"ipython",
"jupyter-cache~=0.5.0",
"nbclient", # nbclient version pinned by jupyter-client
"myst-parser~=0.18.0",
"nbformat~=5.0",
"pyyaml",
"sphinx>=4,<6",
"typing-extensions",
# ipykernel is not a requirement of the library,
# but is a common requirement for users (registers the python3 kernel)
"ipykernel",
]
[project.urls]
Homepage = "https://github.com/executablebooks/myst-nb"
Documentation = "https://myst-nb.readthedocs.io"
[project.entry-points."myst_nb.renderers"]
default = "myst_nb.core.render:NbElementRenderer"
[project.entry-points."myst_nb.mime_renderers"]
example = "myst_nb.core.render:ExampleMimeRenderPlugin"
[project.entry-points."pygments.lexers"]
myst-ansi = "myst_nb.core.lexers:AnsiColorLexer"
ipythontb = "myst_nb.core.lexers:IPythonTracebackLexer"
[project.entry-points."jcache.readers"]
myst_nb_md = "myst_nb.core.read:myst_nb_reader_plugin"
[project.optional-dependencies]
code_style = ["pre-commit"]
rtd = [
"alabaster",
"altair",
"bokeh",
"coconut~=1.4.3",
"ipykernel~=5.5",
"ipywidgets",
"jupytext~=1.11.2",
"matplotlib",
"numpy",
"pandas",
"plotly",
"sphinx-book-theme~=0.3.0",
"sphinx-copybutton",
"sphinx-design~=0.1.0",
"sphinxcontrib-bibtex",
"sympy",
]
testing = [
"coverage~=6.4",
"beautifulsoup4",
"ipykernel~=5.5",
# for issue with 8.1.0 see https://github.com/ipython/ipython/issues/13554
# TODO ipython 8.5 subtly changes output of test regressions
# see https://ipython.readthedocs.io/en/stable/whatsnew/version8.html#restore-line-numbers-for-input
"ipython!=8.1.0,<8.5",
"ipywidgets>=8",
"jupytext~=1.11.2",
"matplotlib>=3.5.3,<3.6", # TODO mpl 3.6 subtly changes output of test regressions
"nbdime",
"numpy",
"pandas",
"pytest~=7.1",
"pytest-cov~=3.0",
"pytest-regressions",
"pytest-param-files~=0.3.3",
"sympy>=1.10.1",
]
[project.scripts]
mystnb-quickstart = "myst_nb.cli:quickstart"
mystnb-to-jupyter = "myst_nb.cli:md_to_nb"
mystnb-docutils-html = "myst_nb.docutils_:cli_html"
mystnb-docutils-html5 = "myst_nb.docutils_:cli_html5"
mystnb-docutils-latex = "myst_nb.docutils_:cli_latex"
mystnb-docutils-xml = "myst_nb.docutils_:cli_xml"
mystnb-docutils-pseudoxml = "myst_nb.docutils_:cli_pseudoxml"
[tool.flit.module]
name = "myst_nb"
[tool.flit.sdist]
exclude = [
"docs/",
"tests/",
]
[tool.mypy]
show_error_codes = true
check_untyped_defs = true
strict_equality = true
no_implicit_optional = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = ["myst_nb.*"]
# can only follow these imports when more of the code is typed
follow_imports = "skip"
[[tool.mypy.overrides]]
module = ["docutils.*", "nbformat.*", "jupyter_cache.*", "IPython.*", "pygments.*"]
ignore_missing_imports = true
[tool.isort]
profile = "black"
src_paths = ["myst_nb", "tests"]
force_sort_within_sections = true