git: a24a1d05e127 - main - devel/py-nbconvert: Update to 7.0.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 31 Aug 2022 11:47:25 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a24a1d05e127ea6a0233668bc215b91c36319003

commit a24a1d05e127ea6a0233668bc215b91c36319003
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-08-31 11:27:30 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-08-31 11:41:49 +0000

    devel/py-nbconvert: Update to 7.0.0
    
    Changes:        https://github.com/jupyter/nbconvert/releases
---
 devel/py-nbconvert/Makefile       |  18 ++++--
 devel/py-nbconvert/distinfo       |   6 +-
 devel/py-nbconvert/files/setup.py | 120 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 136 insertions(+), 8 deletions(-)

diff --git a/devel/py-nbconvert/Makefile b/devel/py-nbconvert/Makefile
index 8caecdf47a3a..a21d32bc8fa0 100644
--- a/devel/py-nbconvert/Makefile
+++ b/devel/py-nbconvert/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	nbconvert
-PORTVERSION=	6.5.0
-PORTREVISION=	1
+PORTVERSION=	7.0.0
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -14,12 +13,12 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}beautifulsoup>=0:www/py-beautifulsoup@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}bleach>=0:www/py-bleach@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}defusedxml>=0:devel/py-defusedxml@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}entrypoints>=0.2.2:devel/py-entrypoints@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}Jinja2>=3.0:devel/py-Jinja2@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}jupyter-core>=4.7:devel/py-jupyter-core@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}jupyterlab-pygments>=0:textproc/py-jupyterlab-pygments@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}lxml>=0:devel/py-lxml@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}markupsafe>=2.0:textproc/py-markupsafe@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}mistune0>=0.8.1<2:textproc/py-mistune0@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mistune>=2.0.3<3:textproc/py-mistune@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}nbclient>=0.5.0:devel/py-nbclient@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}nbformat>=5.1:devel/py-nbformat@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \
@@ -33,4 +32,13 @@ USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 31000
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=3.6:devel/py-importlib-metadata@${PY_FLAVOR}
+.endif
+
+post-patch:
+	@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
+
+.include <bsd.port.post.mk>
diff --git a/devel/py-nbconvert/distinfo b/devel/py-nbconvert/distinfo
index 3f3e3e028930..1b937bbba8a5 100644
--- a/devel/py-nbconvert/distinfo
+++ b/devel/py-nbconvert/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1650970327
-SHA256 (nbconvert-6.5.0.tar.gz) = 223e46e27abe8596b8aed54301fadbba433b7ffea8196a68fd7b1ff509eee99d
-SIZE (nbconvert-6.5.0.tar.gz) = 908377
+TIMESTAMP = 1661599617
+SHA256 (nbconvert-7.0.0.tar.gz) = fd1e361da30e30e4c5a5ae89f7cae95ca2a4d4407389672473312249a7ba0060
+SIZE (nbconvert-7.0.0.tar.gz) = 860724
diff --git a/devel/py-nbconvert/files/setup.py b/devel/py-nbconvert/files/setup.py
new file mode 100644
index 000000000000..3404fec156eb
--- /dev/null
+++ b/devel/py-nbconvert/files/setup.py
@@ -0,0 +1,120 @@
+# -*- coding: utf-8 -*-
+from setuptools import setup
+
+setup(
+    name='nbconvert',
+    version='%%PORTVERSION%%',
+    description='Converting Jupyter Notebooks',
+    long_description='# nbconvert\n\n### Jupyter Notebook Conversion\n\n[![Google Group](https://img.shields.io/badge/-Google%20Group-lightgrey.svg)](https://groups.google.com/forum/#!forum/jupyter)\n[![Build Status](https://travis-ci.org/jupyter/nbconvert.svg?branch=main)](https://travis-ci.org/jupyter/nbconvert)\n[![Documentation Status](https://readthedocs.org/projects/nbconvert/badge/?version=latest)](https://nbconvert.readthedocs.io/en/latest/?badge=latest)\n[![Documentation Status](https://readthedocs.org/projects/nbconvert/badge/?version=stable)](https://nbconvert.readthedocs.io/en/stable/?badge=stable)\n[![codecov.io](https://codecov.io/github/jupyter/nbconvert/coverage.svg?branch=main)](https://codecov.io/github/jupyter/nbconvert?branch=main)\n[![CircleCI Docs Status](https://circleci.com/gh/jupyter/nbconvert/tree/main.svg?style=svg)](https://circleci.com/gh/jupyter/nbconvert/tree/main)\n\nThe **nbconvert** tool, `jupyter nbconvert`, converts notebooks to various other\nfor
 mats via [Jinja][] templates. The nbconvert tool allows you to convert an\n`.ipynb` notebook file into various static formats including:\n\n- HTML\n- LaTeX\n- PDF\n- Reveal JS\n- Markdown (md)\n- ReStructured Text (rst)\n- executable script\n\n## Usage\n\nFrom the command line, use nbconvert to convert a Jupyter notebook (_input_) to a\na different format (_output_). The basic command structure is:\n\n    $ jupyter nbconvert --to <output format> <input notebook>\n\nwhere `<output format>` is the desired output format and `<input notebook>` is the\nfilename of the Jupyter notebook.\n\n### Example: Convert a notebook to HTML\n\nConvert Jupyter notebook file, `mynotebook.ipynb`, to HTML using:\n\n    $ jupyter nbconvert --to html mynotebook.ipynb\n\nThis command creates an HTML output file named `mynotebook.html`.\n\n## Dev Install\n\nCheck if pandoc is installed (`pandoc --version`); if needed, install:\n\n```\nsudo apt-get install pandoc\n```\n\nOr\n\n```\nbrew install pandoc\n```\n\
 nInstall nbconvert for development using:\n\!
 n```\ngit clone https://github.com/jupyter/nbconvert.git\ncd nbconvert\npip install -e .\n```\n\nRunning the tests after a dev install above:\n\n```\npip install nbconvert[test]\npy.test --pyargs nbconvert\n```\n\n## Documentation\n\n- [Documentation for Jupyter nbconvert](https://nbconvert.readthedocs.io/en/latest/)\n  [[PDF](https://media.readthedocs.org/pdf/nbconvert/latest/nbconvert.pdf)]\n- [nbconvert examples on GitHub](https://github.com/jupyter/nbconvert-examples)\n- [Documentation for Project Jupyter](https://jupyter.readthedocs.io/en/latest/index.html)\n  [[PDF](https://media.readthedocs.org/pdf/jupyter/latest/jupyter.pdf)]\n\n## Technical Support\n\n- [Issues and Bug Reports](https://github.com/jupyter/nbconvert/issues): A place to report\n  bugs or regressions found for nbconvert\n- [Community Technical Support and Discussion - Discourse](https://discourse.jupyter.org/): A place for\n  installation, configuration, and troubleshooting assistannce by the Jupyter community.
 \n  As a non-profit project and maintainers who are primarily volunteers, we encourage you\n  to ask questions and share your knowledge on Discourse.\n\n## Jupyter Resources\n\n- [Jupyter mailing list](https://groups.google.com/forum/#!forum/jupyter)\n- [Project Jupyter website](https://jupyter.org)\n\n[jinja]: http://jinja.pocoo.org/\n',
+    author_email='Jupyter Development Team <jupyter@googlegroups.com>',
+    classifiers=[
+        'Intended Audience :: Developers',
+        'Intended Audience :: Science/Research',
+        'Intended Audience :: System Administrators',
+        'License :: OSI Approved :: BSD License',
+        'Programming Language :: Python',
+        'Programming Language :: Python :: 3',
+    ],
+    install_requires=[
+        'beautifulsoup4',
+        'bleach',
+        'defusedxml',
+        'importlib-metadata>=3.6; python_version < "3.10"',
+        'jinja2>=3.0',
+        'jupyter-core>=4.7',
+        'jupyterlab-pygments',
+        'lxml',
+        'markupsafe>=2.0',
+        'mistune<3,>=2.0.3',
+        'nbclient>=0.5.0',
+        'nbformat>=5.1',
+        'packaging',
+        'pandocfilters>=1.4.1',
+        'pygments>=2.4.1',
+        'tinycss2',
+        'traitlets>=5.0',
+    ],
+    extras_require={
+        'all': [
+            'ipykernel',
+            'ipython',
+            'ipywidgets>=7',
+            'nbsphinx>=0.2.12',
+            'pre-commit',
+            'pyppeteer<1.1,>=1',
+            'pyqtwebengine>=5.15',
+            'pytest',
+            'pytest-cov',
+            'pytest-dependency',
+            'sphinx-rtd-theme',
+            'sphinx==5.0.2',
+            'tornado>=6.1',
+        ],
+        'docs': [
+            'ipython',
+            'nbsphinx>=0.2.12',
+            'sphinx-rtd-theme',
+            'sphinx==5.0.2',
+        ],
+        'qtpdf': [
+            'pyqtwebengine>=5.15',
+        ],
+        'qtpng': [
+            'pyqtwebengine>=5.15',
+        ],
+        'serve': [
+            'tornado>=6.1',
+        ],
+        'test': [
+            'ipykernel',
+            'ipywidgets>=7',
+            'pre-commit',
+            'pyppeteer<1.1,>=1',
+            'pytest',
+            'pytest-cov',
+            'pytest-dependency',
+        ],
+        'webpdf': [
+            'pyppeteer<1.1,>=1',
+        ],
+    },
+    entry_points={
+        'console_scripts': [
+            'jupyter-dejavu = nbconvert.nbconvertapp:dejavu_main',
+            'jupyter-nbconvert = nbconvert.nbconvertapp:main',
+        ],
+        'nbconvert.exporters': [
+            'asciidoc = nbconvert.exporters:ASCIIDocExporter',
+            'custom = nbconvert.exporters:TemplateExporter',
+            'html = nbconvert.exporters:HTMLExporter',
+            'latex = nbconvert.exporters:LatexExporter',
+            'markdown = nbconvert.exporters:MarkdownExporter',
+            'notebook = nbconvert.exporters:NotebookExporter',
+            'pdf = nbconvert.exporters:PDFExporter',
+            'python = nbconvert.exporters:PythonExporter',
+            'qtpdf = nbconvert.exporters:QtPDFExporter',
+            'qtpng = nbconvert.exporters:QtPNGExporter',
+            'rst = nbconvert.exporters:RSTExporter',
+            'script = nbconvert.exporters:ScriptExporter',
+            'slides = nbconvert.exporters:SlidesExporter',
+            'webpdf = nbconvert.exporters:WebPDFExporter',
+        ],
+    },
+    packages=[
+        'nbconvert',
+        'nbconvert.exporters',
+        'nbconvert.exporters.tests',
+        'nbconvert.filters',
+        'nbconvert.filters.tests',
+        'nbconvert.postprocessors',
+        'nbconvert.postprocessors.tests',
+        'nbconvert.preprocessors',
+        'nbconvert.preprocessors.tests',
+        'nbconvert.resources',
+        'nbconvert.tests',
+        'nbconvert.utils',
+        'nbconvert.utils.tests',
+        'nbconvert.writers',
+        'nbconvert.writers.tests',
+    ],
+)