-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
meta.yaml
256 lines (237 loc) · 7.14 KB
/
meta.yaml
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
{% set min_python = "python >=3.8" %}
{% set version = "7.16.4" %}
{% set min_python = "python >=3.8" %}
{% set min_pandoc = "2.9.2" %}
{% set max_pandoc = "4.0.0" %}
{% set build = 1 %}
{% set pytest_args = "-k \"not (convert_full_qualified_name or post_processor)\"" %}
{% set cov_fail_under = "71" %}
# handle undefined PYTHON in `noarch: generic` outputs
{% if PYTHON is not defined %}{% set PYTHON = "$PYTHON" %}{% endif %}
package:
name: nbconvert-meta
version: {{ version }}
source:
url: https://pypi.io/packages/source/n/nbconvert/nbconvert-{{ version }}.tar.gz
sha256: 86ca91ba266b0a448dc96fa6c5b9d98affabde2867b363258703536807f9f7f4
build:
number: {{ build }}
noarch: python
requirements:
host:
- {{ min_python }}
- pip
run:
- {{ min_python }}
test:
commands:
- echo "tests in outputs"
outputs:
- name: nbconvert
build:
noarch: generic
requirements:
run:
- {{ pin_subpackage("nbconvert-core", exact=True) }}
- {{ pin_subpackage("nbconvert-pandoc", exact=True) }}
test:
requires:
- pip
commands:
- pip check
- jupyter nbconvert --version
- jupyter dejavu --version
- jupyter nbconvert --help
- jupyter dejavu --help
- name: nbconvert-core
build:
noarch: python
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
entry_points:
- jupyter-dejavu = nbconvert.nbconvertapp:dejavu_main
- jupyter-nbconvert = nbconvert.nbconvertapp:main
requirements:
host:
- {{ min_python }}
- hatchling >=1.5
- pip
run:
- {{ min_python }}
- beautifulsoup4
- bleach
- defusedxml
- entrypoints >=0.2.2
- jinja2 >=3.0
- jupyter_core >=4.7
- jupyterlab_pygments
- markupsafe >=2.0
- mistune >=2.0.3,<4
- nbclient >=0.5.0
- nbformat >=5.1
- packaging
- pandocfilters >=1.4.1
- pygments >=2.4.1
- tinycss2
- traitlets >=5.0
run_constrained:
# other packages carry the full `run` dependency
- pandoc >={{ min_pandoc }},<{{ max_pandoc }}
# avoid mixing nbconvert-core and pre-split nbconvert
# can't mix noarch:generic and noarch:python with exact=True
- nbconvert ={{ version }}=*_{{ build }}
test:
imports:
- nbconvert
- nbconvert.exporters
- nbconvert.filters
- nbconvert.postprocessors
- nbconvert.preprocessors
- nbconvert.resources
- nbconvert.utils
- nbconvert.writers
commands:
- jupyter nbconvert --version
- jupyter dejavu --version
- jupyter nbconvert --help
- jupyter dejavu --help
- name: nbconvert-qtpdf
build:
noarch: generic
requirements:
run:
- {{ pin_subpackage("nbconvert-core", exact=True) }}
- pyqtwebengine >=5.5
test:
source_files:
- tests/files/notebook1.ipynb
requires:
- pip
script_env:
- DISPLAY=localhost:1.0 # [linux]
commands:
- pip check
- jupyter nbconvert --version
- jupyter dejavu --version
- jupyter nbconvert --help
- jupyter dejavu --help
- jupyter nbconvert tests/files/notebook1.ipynb --to qtpdf # [not linux]
- xvfb-run -a jupyter nbconvert tests/files/notebook1.ipynb --to qtpdf # [linux]
about:
home: https://jupyter.org
license: BSD-3-Clause
license_file: LICENSE
description: nbconvert with extra packages for browser-based PDF generation
doc_url: https://nbconvert.readthedocs.org/
dev_url: https://github.com/jupyter/nbconvert
- name: nbconvert-pandoc
build:
noarch: generic
requirements:
run:
- {{ pin_subpackage("nbconvert-core", exact=True) }}
# the pin is handled by the `run_constrained` in nbconvert-core
- pandoc
test:
files:
- check_pandoc.py
requires:
- pip
commands:
- pip check
- jupyter nbconvert --version
- jupyter dejavu --version
- jupyter nbconvert --help
- jupyter dejavu --help
- python check_pandoc.py ">={{ min_pandoc }}" "<{{ max_pandoc }}"
about:
home: https://jupyter.org
license: BSD-3-Clause
license_file: LICENSE
description: nbconvert with extra packages for pandoc-based outputs
doc_url: https://nbconvert.readthedocs.org/
dev_url: https://github.com/jupyter/nbconvert
- name: nbconvert-webpdf
build:
noarch: generic
requirements:
run:
- {{ pin_subpackage("nbconvert-core", exact=True) }}
- playwright-python
test:
source_files:
- tests/files/notebook1.ipynb
requires:
- pip
script_env:
- DISPLAY=localhost:1.0 # [linux]
commands:
- pip check
- jupyter nbconvert --version
- jupyter dejavu --version
- jupyter nbconvert --help
- jupyter dejavu --help
- playwright install chromium
- jupyter nbconvert tests/files/notebook1.ipynb --to webpdf
about:
description: nbconvert with extra packages for browser-based PDF generation
- name: nbconvert-all
build:
noarch: generic
requirements:
run:
- {{ pin_subpackage("nbconvert-core", exact=True) }}
- {{ pin_subpackage("nbconvert-qtpdf", exact=True) }}
- {{ pin_subpackage("nbconvert-webpdf", exact=True) }}
- {{ pin_subpackage("nbconvert", exact=True) }}
test:
source_files:
- tests
- pyproject.toml
requires:
- coverage
- flaky
- ipykernel
- ipywidgets >=7.9.0
- pip
- pytest-dependency
commands:
- pip check
- jupyter nbconvert --version
- jupyter dejavu --version
- jupyter nbconvert --help
- jupyter dejavu --help
- pytest -vv {{ pytest_args }} # [not linux]
- xvfb-run -a coverage run --branch --source=nbconvert -m pytest -vv {{ pytest_args }} # [linux]
- coverage report --show-missing --skip-covered --fail-under={{ cov_fail_under }} # [linux]
about:
home: https://jupyter.org
license: BSD-3-Clause
license_file: LICENSE
description: nbconvert with all optional packages
doc_url: https://nbconvert.readthedocs.org/
dev_url: https://github.com/jupyter/nbconvert
about:
home: https://jupyter.org
license: BSD-3-Clause
license_file: LICENSE
summary: Converting Jupyter Notebooks
description: |
The nbconvert tool, jupyter nbconvert, converts notebooks to various other
formats via Jinja templates. The nbconvert tool allows you to convert an
.ipynb notebook file into various static formats.
doc_url: https://nbconvert.readthedocs.org/
dev_url: https://github.com/jupyter/nbconvert
extra:
feedstock-name: nbconvert
recipe-maintainers:
- jakirkham
- mpacer
- minrk
- pelson
- takluyver
- mseal
- blink1073
- ocefpaf
- jasongrout
- bollwyvl
- martinRenou