forked from executablebooks/MyST-NB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
151 lines (136 loc) · 3.97 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
148
149
150
151
[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 = "[email protected]"}]
maintainers = [{name = "Angus Hollands", email = "[email protected]"}]
readme = "README.md"
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Sphinx :: Extension",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"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.9"
dependencies = [
"importlib_metadata",
"ipython",
"jupyter-cache>=0.5",
"nbclient",
"myst-parser>=1.0.0",
"nbformat>=5.0",
"pyyaml",
"sphinx>=5",
"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",
"sphinx-copybutton",
"sphinx-design",
"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
"ipython!=8.1.0",
"ipywidgets>=8",
"jupytext>=1.11.2",
# Matplotlib outputs are sensitive to the matplotlib version
"matplotlib==3.7.*",
"nbdime",
"numpy",
"pandas",
"pyarrow",
"pytest",
"pytest-cov>=3",
"pytest-regressions",
"pytest-param-files",
"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.ruff.lint]
ignore = [
"E203", # Whitespace before punctuation
]
[tool.ruff.lint.isort]
force-sort-within-sections = true