pkgsrc/www/py-nbconvert/Makefile

44 lines
1.8 KiB
Makefile
Raw Normal View History

py-nbconvert: updated to 5.6.0 5.6.0: Significant Changes Jupter Client Pin The jupyter_client dependency is now pinned to >5.3.1. This is done to support the Parallel NBConvert below, and future versions may require interface changes from that version. Parallel NBConvert NBConvert --execute can now be run in parallel via threads, multiprocessing, or async patterns! This means you can now parallelize nbconvert via a bash loop, or a python concurrency pattern and it should be able to execute those notebooks in parallel. Kernels have varying support for safe concurrent execution. The ipython kernel (ipykernel version 1.5.2 and higher) should be safe to run concurrently using Python 3. However, the Python 2 ipykernel does not always provide safe concurrent execution and sometimes fails with a socket bind exception. Unlike ipykernel which is maintained by the project, other community-maintained kernels may have varying support for concurrent execution, and these kernels were not tested heavily. Issues for nbconvert can be viewed here: .. note: We'll keep an eye for issues related to this new capability and try to quickly patch any discovered issues post release. The improvement required touching three projects with separate releases, so if you do find an issue try upgrading dependencies and listing your dependencies for your environment when reporting. Execute Loop Rewrite This release completely rewrote the execution loop responsible for monitoring kernel messages until cell execution is completed. This removes an error where kernel messages could be dropped if too many were posted too quickly. Furthermore, the change means that messages are not buffered. Now, messages can be logged immediately rather than waiting for the cell to terminate. Comprehensive notes New Features - Make a default global location for custom user templates - Parallel execution improvements - Added store_history option to preprocess_cell and run_cell - Simplify the function signature for preprocess() - Set flag to not always stop kernel execution on errors - setup_preprocessor passes kwargs to start_new_kernel Fixing Problems - Very fast stream outputs no longer drop some messages - LaTeX errors now properly raise exceptions - Improve template whitespacing - Fixes for character in LaTeX exports and filters - Mistune pinned in preparation for 2.0 release - Require mock only on Python 2 - Fix selection of mimetype when converting to HTML - Correct a few typos - Update export_from_notebook names - Dedenting html in ExtractOutputPreprocessor - Fix backwards incompatibility with markdown2html - Fixed html image tagging - Remove unnecessary css Testing, Docs, and Builds - Pip-install nbconvert on readthedocs.org - Fix various doc build issues - Add issue templates - Added instructions for bumping the version forward when releasing - Fix Testing on Windows - Refactored test_run_notebooks - Fixed documentation typos
2019-08-21 14:59:54 +02:00
# $NetBSD: Makefile,v 1.7 2019/08/21 12:59:54 adam Exp $
py-nbconvert: updated to 5.6.0 5.6.0: Significant Changes Jupter Client Pin The jupyter_client dependency is now pinned to >5.3.1. This is done to support the Parallel NBConvert below, and future versions may require interface changes from that version. Parallel NBConvert NBConvert --execute can now be run in parallel via threads, multiprocessing, or async patterns! This means you can now parallelize nbconvert via a bash loop, or a python concurrency pattern and it should be able to execute those notebooks in parallel. Kernels have varying support for safe concurrent execution. The ipython kernel (ipykernel version 1.5.2 and higher) should be safe to run concurrently using Python 3. However, the Python 2 ipykernel does not always provide safe concurrent execution and sometimes fails with a socket bind exception. Unlike ipykernel which is maintained by the project, other community-maintained kernels may have varying support for concurrent execution, and these kernels were not tested heavily. Issues for nbconvert can be viewed here: .. note: We'll keep an eye for issues related to this new capability and try to quickly patch any discovered issues post release. The improvement required touching three projects with separate releases, so if you do find an issue try upgrading dependencies and listing your dependencies for your environment when reporting. Execute Loop Rewrite This release completely rewrote the execution loop responsible for monitoring kernel messages until cell execution is completed. This removes an error where kernel messages could be dropped if too many were posted too quickly. Furthermore, the change means that messages are not buffered. Now, messages can be logged immediately rather than waiting for the cell to terminate. Comprehensive notes New Features - Make a default global location for custom user templates - Parallel execution improvements - Added store_history option to preprocess_cell and run_cell - Simplify the function signature for preprocess() - Set flag to not always stop kernel execution on errors - setup_preprocessor passes kwargs to start_new_kernel Fixing Problems - Very fast stream outputs no longer drop some messages - LaTeX errors now properly raise exceptions - Improve template whitespacing - Fixes for character in LaTeX exports and filters - Mistune pinned in preparation for 2.0 release - Require mock only on Python 2 - Fix selection of mimetype when converting to HTML - Correct a few typos - Update export_from_notebook names - Dedenting html in ExtractOutputPreprocessor - Fix backwards incompatibility with markdown2html - Fixed html image tagging - Remove unnecessary css Testing, Docs, and Builds - Pip-install nbconvert on readthedocs.org - Fix various doc build issues - Add issue templates - Added instructions for bumping the version forward when releasing - Fix Testing on Windows - Refactored test_run_notebooks - Fixed documentation typos
2019-08-21 14:59:54 +02:00
DISTNAME= nbconvert-5.6.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=n/nbconvert/}
MAINTAINER= pkgsrc-users@NetBSD.org
2019-07-22 10:42:49 +02:00
HOMEPAGE= https://jupyter.org/
COMMENT= Converting Jupyter Notebooks
LICENSE= modified-bsd
DEPENDS+= ${PYPKGPREFIX}-bleach-[0-9]*:../../www/py-bleach
py-nbconvert: updated to 5.4.0 5.4.0: New Features - No input flag (--no-input) - Add alias --to ipynb for notebook exporter - Add export_from_notebook - If set, use nb.metadata.authors for LaTeX author line - Populate language_info metadata when executing - Support for \mathscr - Allow the execute preprocessor to make use of an existing kernel - Refactor ExecutePreprocessor - Update widgets CDN for ipywidgets 7 w/fallback - Add support for adding custom exporters to the "Download as" menu. - Enable ANSI underline and inverse - Update notebook css to 5.4.0 - Change default for slides to direct to the reveal cdn rather than locally - Use "title" instead of "name" for metadata to match the notebook format - Img filename metadata - Added MathJax compatibility definitions - Per cell exception - Simple API for in-memory templates - Set BIBINPUTS and BSTINPUTS environment variables when making PDF - If nb.metadata.title is set, default to that for notebook Deprecations - Drop support for python 3.3 Fixing Problems - Fix api break - Don't remove empty cells by default - Handle attached images in html converter - No need to check for the channels already running - Update font-awesome version for slides - Properly treat JSON data - Skip executing empty code cells - Ppdate log.warn (deprecated) to log.warning - Cleanup notebook.tex during PDF generation - Windows unicode error fixed, nosetest added to setup.py - Better content hiding; template & testing improvements - Fix Jinja syntax in custom template example. - Fix for an issue with empty math block - Add parser for Multiline math for LaTeX blocks - Use defusedxml to parse potentially untrusted XML - Fixes for traitlets 4.1 deprecation warnings Testing, Docs, and Builds - A couple of typos - Add python_requires metadata. - Document --inplace command line flag. - Fix minor typo in usage.rst - Add note about local reveal_url_prefix - Move onlyif_cmds_exist decorator to test-specific utils - Include LICENSE file in wheels - Added Ubuntu Linux Instructions - Check for too recent of pandoc version - Removing more nose remnants via dependencies. - Remove offline statement and add some clarifications in slides docs - Linkify PR number - Added shebang for python - Upgrade mistune dependency - add feature to improve docs by having links to prs - Update notebook CSS from version 4.3.0 to 5.1.0 - Explicitly exclude or include all files in Manifest.
2018-11-29 19:26:33 +01:00
DEPENDS+= ${PYPKGPREFIX}-defusedxml-[0-9]*:../../textproc/py-defusedxml
DEPENDS+= ${PYPKGPREFIX}-entrypoints>=0.2.2:../../devel/py-entrypoints
py-nbconvert: updated to 5.6.0 5.6.0: Significant Changes Jupter Client Pin The jupyter_client dependency is now pinned to >5.3.1. This is done to support the Parallel NBConvert below, and future versions may require interface changes from that version. Parallel NBConvert NBConvert --execute can now be run in parallel via threads, multiprocessing, or async patterns! This means you can now parallelize nbconvert via a bash loop, or a python concurrency pattern and it should be able to execute those notebooks in parallel. Kernels have varying support for safe concurrent execution. The ipython kernel (ipykernel version 1.5.2 and higher) should be safe to run concurrently using Python 3. However, the Python 2 ipykernel does not always provide safe concurrent execution and sometimes fails with a socket bind exception. Unlike ipykernel which is maintained by the project, other community-maintained kernels may have varying support for concurrent execution, and these kernels were not tested heavily. Issues for nbconvert can be viewed here: .. note: We'll keep an eye for issues related to this new capability and try to quickly patch any discovered issues post release. The improvement required touching three projects with separate releases, so if you do find an issue try upgrading dependencies and listing your dependencies for your environment when reporting. Execute Loop Rewrite This release completely rewrote the execution loop responsible for monitoring kernel messages until cell execution is completed. This removes an error where kernel messages could be dropped if too many were posted too quickly. Furthermore, the change means that messages are not buffered. Now, messages can be logged immediately rather than waiting for the cell to terminate. Comprehensive notes New Features - Make a default global location for custom user templates - Parallel execution improvements - Added store_history option to preprocess_cell and run_cell - Simplify the function signature for preprocess() - Set flag to not always stop kernel execution on errors - setup_preprocessor passes kwargs to start_new_kernel Fixing Problems - Very fast stream outputs no longer drop some messages - LaTeX errors now properly raise exceptions - Improve template whitespacing - Fixes for character in LaTeX exports and filters - Mistune pinned in preparation for 2.0 release - Require mock only on Python 2 - Fix selection of mimetype when converting to HTML - Correct a few typos - Update export_from_notebook names - Dedenting html in ExtractOutputPreprocessor - Fix backwards incompatibility with markdown2html - Fixed html image tagging - Remove unnecessary css Testing, Docs, and Builds - Pip-install nbconvert on readthedocs.org - Fix various doc build issues - Add issue templates - Added instructions for bumping the version forward when releasing - Fix Testing on Windows - Refactored test_run_notebooks - Fixed documentation typos
2019-08-21 14:59:54 +02:00
DEPENDS+= ${PYPKGPREFIX}-ipykernel-[0-9]*:../../devel/py-ipykernel
DEPENDS+= ${PYPKGPREFIX}-ipywidgets>=7:../../www/py-ipywidgets
DEPENDS+= ${PYPKGPREFIX}-jinja2>=2.4:../../textproc/py-jinja2
DEPENDS+= ${PYPKGPREFIX}-jupyter_client>=5.3.1:../../devel/py-jupyter_client
DEPENDS+= ${PYPKGPREFIX}-jupyter_core-[0-9]*:../../devel/py-jupyter_core
py-nbconvert: updated to 5.6.0 5.6.0: Significant Changes Jupter Client Pin The jupyter_client dependency is now pinned to >5.3.1. This is done to support the Parallel NBConvert below, and future versions may require interface changes from that version. Parallel NBConvert NBConvert --execute can now be run in parallel via threads, multiprocessing, or async patterns! This means you can now parallelize nbconvert via a bash loop, or a python concurrency pattern and it should be able to execute those notebooks in parallel. Kernels have varying support for safe concurrent execution. The ipython kernel (ipykernel version 1.5.2 and higher) should be safe to run concurrently using Python 3. However, the Python 2 ipykernel does not always provide safe concurrent execution and sometimes fails with a socket bind exception. Unlike ipykernel which is maintained by the project, other community-maintained kernels may have varying support for concurrent execution, and these kernels were not tested heavily. Issues for nbconvert can be viewed here: .. note: We'll keep an eye for issues related to this new capability and try to quickly patch any discovered issues post release. The improvement required touching three projects with separate releases, so if you do find an issue try upgrading dependencies and listing your dependencies for your environment when reporting. Execute Loop Rewrite This release completely rewrote the execution loop responsible for monitoring kernel messages until cell execution is completed. This removes an error where kernel messages could be dropped if too many were posted too quickly. Furthermore, the change means that messages are not buffered. Now, messages can be logged immediately rather than waiting for the cell to terminate. Comprehensive notes New Features - Make a default global location for custom user templates - Parallel execution improvements - Added store_history option to preprocess_cell and run_cell - Simplify the function signature for preprocess() - Set flag to not always stop kernel execution on errors - setup_preprocessor passes kwargs to start_new_kernel Fixing Problems - Very fast stream outputs no longer drop some messages - LaTeX errors now properly raise exceptions - Improve template whitespacing - Fixes for character in LaTeX exports and filters - Mistune pinned in preparation for 2.0 release - Require mock only on Python 2 - Fix selection of mimetype when converting to HTML - Correct a few typos - Update export_from_notebook names - Dedenting html in ExtractOutputPreprocessor - Fix backwards incompatibility with markdown2html - Fixed html image tagging - Remove unnecessary css Testing, Docs, and Builds - Pip-install nbconvert on readthedocs.org - Fix various doc build issues - Add issue templates - Added instructions for bumping the version forward when releasing - Fix Testing on Windows - Refactored test_run_notebooks - Fixed documentation typos
2019-08-21 14:59:54 +02:00
DEPENDS+= ${PYPKGPREFIX}-mistune>=0.8.1:../../textproc/py-mistune
DEPENDS+= ${PYPKGPREFIX}-nbformat>=4.4:../../www/py-nbformat
DEPENDS+= ${PYPKGPREFIX}-pandocfilters>=1.4.1:../../textproc/py-pandocfilters
DEPENDS+= ${PYPKGPREFIX}-pygments-[0-9]*:../../textproc/py-pygments
DEPENDS+= ${PYPKGPREFIX}-testpath-[0-9]*:../../devel/py-testpath
DEPENDS+= ${PYPKGPREFIX}-tornado>=4.0:../../www/py-tornado
DEPENDS+= ${PYPKGPREFIX}-traitlets>=4.2:../../devel/py-traitlets
py-nbconvert: updated to 5.6.0 5.6.0: Significant Changes Jupter Client Pin The jupyter_client dependency is now pinned to >5.3.1. This is done to support the Parallel NBConvert below, and future versions may require interface changes from that version. Parallel NBConvert NBConvert --execute can now be run in parallel via threads, multiprocessing, or async patterns! This means you can now parallelize nbconvert via a bash loop, or a python concurrency pattern and it should be able to execute those notebooks in parallel. Kernels have varying support for safe concurrent execution. The ipython kernel (ipykernel version 1.5.2 and higher) should be safe to run concurrently using Python 3. However, the Python 2 ipykernel does not always provide safe concurrent execution and sometimes fails with a socket bind exception. Unlike ipykernel which is maintained by the project, other community-maintained kernels may have varying support for concurrent execution, and these kernels were not tested heavily. Issues for nbconvert can be viewed here: .. note: We'll keep an eye for issues related to this new capability and try to quickly patch any discovered issues post release. The improvement required touching three projects with separate releases, so if you do find an issue try upgrading dependencies and listing your dependencies for your environment when reporting. Execute Loop Rewrite This release completely rewrote the execution loop responsible for monitoring kernel messages until cell execution is completed. This removes an error where kernel messages could be dropped if too many were posted too quickly. Furthermore, the change means that messages are not buffered. Now, messages can be logged immediately rather than waiting for the cell to terminate. Comprehensive notes New Features - Make a default global location for custom user templates - Parallel execution improvements - Added store_history option to preprocess_cell and run_cell - Simplify the function signature for preprocess() - Set flag to not always stop kernel execution on errors - setup_preprocessor passes kwargs to start_new_kernel Fixing Problems - Very fast stream outputs no longer drop some messages - LaTeX errors now properly raise exceptions - Improve template whitespacing - Fixes for character in LaTeX exports and filters - Mistune pinned in preparation for 2.0 release - Require mock only on Python 2 - Fix selection of mimetype when converting to HTML - Correct a few typos - Update export_from_notebook names - Dedenting html in ExtractOutputPreprocessor - Fix backwards incompatibility with markdown2html - Fixed html image tagging - Remove unnecessary css Testing, Docs, and Builds - Pip-install nbconvert on readthedocs.org - Fix various doc build issues - Add issue templates - Added instructions for bumping the version forward when releasing - Fix Testing on Windows - Refactored test_run_notebooks - Fixed documentation typos
2019-08-21 14:59:54 +02:00
TEST_DEPENDS+= ${PYPKGPREFIX}-pebble-[0-9]*:../../devel/py-pebble
py-nbconvert: updated to 5.4.0 5.4.0: New Features - No input flag (--no-input) - Add alias --to ipynb for notebook exporter - Add export_from_notebook - If set, use nb.metadata.authors for LaTeX author line - Populate language_info metadata when executing - Support for \mathscr - Allow the execute preprocessor to make use of an existing kernel - Refactor ExecutePreprocessor - Update widgets CDN for ipywidgets 7 w/fallback - Add support for adding custom exporters to the "Download as" menu. - Enable ANSI underline and inverse - Update notebook css to 5.4.0 - Change default for slides to direct to the reveal cdn rather than locally - Use "title" instead of "name" for metadata to match the notebook format - Img filename metadata - Added MathJax compatibility definitions - Per cell exception - Simple API for in-memory templates - Set BIBINPUTS and BSTINPUTS environment variables when making PDF - If nb.metadata.title is set, default to that for notebook Deprecations - Drop support for python 3.3 Fixing Problems - Fix api break - Don't remove empty cells by default - Handle attached images in html converter - No need to check for the channels already running - Update font-awesome version for slides - Properly treat JSON data - Skip executing empty code cells - Ppdate log.warn (deprecated) to log.warning - Cleanup notebook.tex during PDF generation - Windows unicode error fixed, nosetest added to setup.py - Better content hiding; template & testing improvements - Fix Jinja syntax in custom template example. - Fix for an issue with empty math block - Add parser for Multiline math for LaTeX blocks - Use defusedxml to parse potentially untrusted XML - Fixes for traitlets 4.1 deprecation warnings Testing, Docs, and Builds - A couple of typos - Add python_requires metadata. - Document --inplace command line flag. - Fix minor typo in usage.rst - Add note about local reveal_url_prefix - Move onlyif_cmds_exist decorator to test-specific utils - Include LICENSE file in wheels - Added Ubuntu Linux Instructions - Check for too recent of pandoc version - Removing more nose remnants via dependencies. - Remove offline statement and add some clarifications in slides docs - Linkify PR number - Added shebang for python - Upgrade mistune dependency - add feature to improve docs by having links to prs - Update notebook CSS from version 4.3.0 to 5.1.0 - Explicitly exclude or include all files in Manifest.
2018-11-29 19:26:33 +01:00
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
TEST_DEPENDS+= ${PYPKGPREFIX}-testpath-[0-9]*:../../devel/py-testpath
USE_LANGUAGES= # none
post-install:
py-nbconvert: updated to 5.4.0 5.4.0: New Features - No input flag (--no-input) - Add alias --to ipynb for notebook exporter - Add export_from_notebook - If set, use nb.metadata.authors for LaTeX author line - Populate language_info metadata when executing - Support for \mathscr - Allow the execute preprocessor to make use of an existing kernel - Refactor ExecutePreprocessor - Update widgets CDN for ipywidgets 7 w/fallback - Add support for adding custom exporters to the "Download as" menu. - Enable ANSI underline and inverse - Update notebook css to 5.4.0 - Change default for slides to direct to the reveal cdn rather than locally - Use "title" instead of "name" for metadata to match the notebook format - Img filename metadata - Added MathJax compatibility definitions - Per cell exception - Simple API for in-memory templates - Set BIBINPUTS and BSTINPUTS environment variables when making PDF - If nb.metadata.title is set, default to that for notebook Deprecations - Drop support for python 3.3 Fixing Problems - Fix api break - Don't remove empty cells by default - Handle attached images in html converter - No need to check for the channels already running - Update font-awesome version for slides - Properly treat JSON data - Skip executing empty code cells - Ppdate log.warn (deprecated) to log.warning - Cleanup notebook.tex during PDF generation - Windows unicode error fixed, nosetest added to setup.py - Better content hiding; template & testing improvements - Fix Jinja syntax in custom template example. - Fix for an issue with empty math block - Add parser for Multiline math for LaTeX blocks - Use defusedxml to parse potentially untrusted XML - Fixes for traitlets 4.1 deprecation warnings Testing, Docs, and Builds - A couple of typos - Add python_requires metadata. - Document --inplace command line flag. - Fix minor typo in usage.rst - Add note about local reveal_url_prefix - Move onlyif_cmds_exist decorator to test-specific utils - Include LICENSE file in wheels - Added Ubuntu Linux Instructions - Check for too recent of pandoc version - Removing more nose remnants via dependencies. - Remove offline statement and add some clarifications in slides docs - Linkify PR number - Added shebang for python - Upgrade mistune dependency - add feature to improve docs by having links to prs - Update notebook CSS from version 4.3.0 to 5.1.0 - Explicitly exclude or include all files in Manifest.
2018-11-29 19:26:33 +01:00
cd ${DESTDIR}${PREFIX}/bin && \
${MV} jupyter-nbconvert jupyter-nbconvert-${PYVERSSUFFIX} || ${TRUE}
do-test:
cd ${WRKSRC} && py.test-${PYVERSSUFFIX}
.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"