Package python3-module-nbconvert: Specfile
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 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 | %define _unpackaged_files_terminate_build 1 %define oname nbconvert %def_without doc %ifarch %ix86 x86_64 aarch64 %def_with check %else %def_without check %endif Name: python3-module-%oname Version: 7.16.4 Release: alt1 Summary: Converting Jupyter Notebooks License: BSD-3-Clause Group: Development/Python3 Url: https://pypi.python.org/pypi/nbconvert VCS: https://github.com/jupyter/nbconvert.git BuildArch: noarch Source: %name-%version.tar Source1: classic-5.4.0-style.css Source2: lab-3.1.11-index.css Source3: lab-3.1.11-theme-light.css Source4: lab-3.1.11-theme-dark.css BuildRequires(pre): rpm-build-intro BuildRequires(pre): rpm-build-python3 BuildRequires: python3-module-hatchling %if_with doc BuildRequires(pre): rpm-macros-sphinx3 BuildRequires: python3-module-html5lib python3(pandocfilters) BuildRequires: python3(sphinx_rtd_theme) python3(nbsphinx) python3(pandocfilters) BuildRequires: texlive texlive-dist BuildRequires: python3-module-sphinx-devel BuildRequires: python3-module-sphinx-sphinx-build-symlink %endif %if_with check BuildRequires: python3-module-PyQt5 BuildRequires: python3-module-pytest-qt BuildRequires: /usr/bin/xvfb-run BuildRequires: python3-module-PyQtWebEngine BuildRequires: /usr/bin/xelatex BuildRequires: /usr/bin/inkscape BuildRequires: python3(pandocfilters) BuildRequires: python3(defusedxml) BuildRequires: python3(jupyterlab_pygments) BuildRequires: python3(nest_asyncio) BuildRequires: python3-module-ipykernel BuildRequires: python3-module-ipywidgets BuildRequires: python3-module-flaky BuildRequires: python3-module-traitlets-tests %endif %py3_provides %oname # from pyproject.toml %py3_use beautifulsoup4 %py3_use mistune >= 2.0.3 %py3_use mistune < 4 %py3_use jinja2 >= 3.0 %py3_use Pygments >= 2.4.1 %py3_use jupyterlab_pygments %py3_use traitlets >= 5.1 %py3_use jupyter_core >= 4.7 %py3_use nbformat >= 5.7 %py3_use bleach %py3_use pandocfilters >= 1.4.1 %py3_use defusedxml %py3_use nbclient >= 0.5.0 %py3_use tinycss2 %description Jupyter nbconvert converts notebooks to various other formats via Jinja templates. %package pickles Summary: Pickles for %oname Group: Development/Python3 %description pickles Jupyter nbconvert converts notebooks to various other formats via Jinja templates. This package contains pickles for %oname. %package docs Summary: Documentation for %oname Group: Development/Documentation BuildArch: noarch %description docs Jupyter nbconvert converts notebooks to various other formats via Jinja templates. This package contains documentation for %oname. %prep %setup mkdir -p share/templates/classic/static/ mkdir -p share/templates/lab/static/ cp %SOURCE1 share/templates/classic/static/style.css cp %SOURCE2 share/templates/lab/static/index.css cp %SOURCE3 share/templates/lab/static/theme-light.css cp %SOURCE4 share/templates/lab/static/theme-dark.css %if_with doc echo "nbsphinx_allow_errors = True" >> docs/source/conf.py %prepare_sphinx3 docs ln -s ../objects.inv docs/source/ %endif %build %pyproject_build %install %pyproject_install %if_with doc export PYTHONPATH=$PWD export PATH=$PATH:%buildroot%_bindir %make -C docs pickle %make -C docs html cp -fR docs/build/pickle %buildroot%python3_sitelibdir/%oname/ %endif %check export JUPYTER_PATH=%buildroot%_datadir/jupyter # some tests need pandoc, version must be at least 2.14.2 but less then 4.0.0 %pyproject_run -- xvfb-run pytest -v -m 'not network' --color=no \ --deselect=tests/exporters/test_qtpdf.py::TestQtPDFExporter::test_export \ --deselect=tests/exporters/test_qtpng.py::TestQtPNGExporter::test_export \ --deselect=tests/test_nbconvertapp.py::TestNbConvertApp::test_convert_full_qualified_name \ --deselect=tests/test_nbconvertapp.py::TestNbConvertApp::test_post_processor %files %doc *.md %_bindir/* %_datadir/jupyter %python3_sitelibdir/%oname %python3_sitelibdir/%oname-*.dist-info %if_with doc %exclude %python3_sitelibdir/%oname/pickle %endif %if_with doc %files pickles %python3_sitelibdir/%oname/pickle %files docs %doc docs/build/html/* %endif %changelog * Tue Apr 30 2024 Anton Vyatkin <toni@altlinux.org> 7.16.4-alt1 - New version 7.16.4. * Fri Mar 22 2024 Anton Vyatkin <toni@altlinux.org> 7.16.3-alt1 - New version 7.16.3. * Tue Mar 05 2024 Anton Vyatkin <toni@altlinux.org> 7.16.2-alt1 - New version 7.16.2. * Tue Feb 20 2024 Anton Vyatkin <toni@altlinux.org> 7.16.1-alt1 - New version 7.16.1. * Thu Feb 08 2024 Anton Vyatkin <toni@altlinux.org> 7.16.0-alt1 - New version 7.16.0. * Tue Feb 06 2024 Anton Vyatkin <toni@altlinux.org> 7.15.0-alt1 - New version 7.15.0. * Fri Jan 19 2024 Anton Vyatkin <toni@altlinux.org> 7.14.2-alt1 - New version 7.14.2. * Tue Jan 02 2024 Anton Vyatkin <toni@altlinux.org> 7.14.0-alt1 - New version 7.14.0. * Fri Dec 22 2023 Anton Vyatkin <toni@altlinux.org> 7.13.1-alt1 - New version 7.13.1. * Tue Dec 19 2023 Anton Vyatkin <toni@altlinux.org> 7.13.0-alt1 - New version 7.13.0. * Wed Dec 06 2023 Anton Vyatkin <toni@altlinux.org> 7.12.0-alt1 - New version 7.12.0. * Tue Nov 07 2023 Anton Vyatkin <toni@altlinux.org> 7.11.0-alt1 - New version 7.11.0. * Tue Oct 31 2023 Anton Vyatkin <toni@altlinux.org> 7.10.0-alt1 - New version 7.10.0. * Thu Oct 05 2023 Anton Vyatkin <toni@altlinux.org> 7.9.2-alt1 - New version 7.9.2. * Wed Oct 04 2023 Anton Vyatkin <toni@altlinux.org> 7.9.0-alt1 - New version 7.9.0. * Wed Aug 30 2023 Anton Vyatkin <toni@altlinux.org> 7.8.0-alt1 - New version 7.8.0. * Thu Aug 17 2023 Anton Vyatkin <toni@altlinux.org> 7.7.4-alt1 - New version 7.7.4. * Wed Jul 26 2023 Anton Vyatkin <toni@altlinux.org> 7.7.3-alt1 - New version 7.7.3. * Thu Jul 20 2023 Anton Vyatkin <toni@altlinux.org> 7.7.2-alt1 - New version 7.7.2 (Closes: #44215). * Tue Jul 18 2023 Anton Vyatkin <toni@altlinux.org> 7.7.1-alt1 - New version 7.7.1. * Wed Jun 28 2023 Anton Vyatkin <toni@altlinux.org> 7.6.0-alt1 - New version 7.6.0. * Sat Feb 04 2023 Anton Farygin <rider@altlinux.ru> 7.2.9-alt1 - 7.2.6 -> 7.2.9 * Mon Dec 19 2022 Anton Farygin <rider@altlinux.ru> 7.2.6-alt1 - 6.1.0 -> 7.2.6 - enabled tests * Mon Aug 09 2021 Aleksei Nikiforov <darktemplar@altlinux.org> 6.1.0-alt1 - Updated to upstream version 6.1.0. * Thu Jun 24 2021 Sergey Bolshakov <sbolshakov@altlinux.ru> 6.0.2-alt4 - drop excessive python3-module-jinja2-tests BR * Thu Jun 17 2021 Aleksei Nikiforov <darktemplar@altlinux.org> 6.0.2-alt3 - Updated build dependencies. * Wed Oct 21 2020 Vitaly Lipatov <lav@altlinux.ru> 6.0.2-alt2 - improve requires * Mon Sep 14 2020 Aleksei Nikiforov <darktemplar@altlinux.org> 6.0.2-alt1 - Updated to upstream version 6.0.2. - Disabled build for python-2. * Sun May 05 2019 Michael Shigorin <mike@altlinux.org> 5.3.1-alt5 - fixed doc knob (renamed from docs for consistency) - minor spec cleanup * Fri May 11 2018 Andrey Bychkov <mrdrew@altlinux.org> 5.3.1-alt4 - rebuild with all requires * Fri May 11 2018 Andrey Bychkov <mrdrew@altlinux.org> 5.3.1-alt3 - off build requires for nmu * Tue Mar 13 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 5.3.1-alt2 - Updated build dependencies. * Thu Nov 09 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 5.3.1-alt1 - Updated to upstream version 5.3.1. - Disabled building docs. * Wed Aug 02 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 4.0.0-alt3 - Fixed build. * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 4.0.0-alt2.1.1 - (NMU) rebuild with rpm-build-python3-0.1.9 (for common python3/site-packages/ and auto python3.3-ABI dep when needed) * Thu Jan 28 2016 Mikhail Efremov <sem@altlinux.org> 4.0.0-alt2.1 - NMU: Use buildreq for BR. * Sun Aug 23 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.0.0-alt2 - Enabled check * Sat Aug 22 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.0.0-alt1 - Initial build for Sisyphus |