Date: Tue, 21 Mar 2023 19:27:52 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 32a753382c6a - main - devel/py-nbclient: Convert to USE_PYTHON=pep517 Message-ID: <202303211927.32LJRqH0031422@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=32a753382c6ae01cf81f9a72a40889a2d52d1f78 commit 32a753382c6ae01cf81f9a72a40889a2d52d1f78 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-03-21 18:44:28 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-03-21 19:20:47 +0000 devel/py-nbclient: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for dependency and package change --- devel/py-nbclient/Makefile | 7 ++--- devel/py-nbclient/files/setup.py | 63 ---------------------------------------- 2 files changed, 3 insertions(+), 67 deletions(-) diff --git a/devel/py-nbclient/Makefile b/devel/py-nbclient/Makefile index 387cb5b9edd4..d28b24febff9 100644 --- a/devel/py-nbclient/Makefile +++ b/devel/py-nbclient/Makefile @@ -1,5 +1,6 @@ PORTNAME= nbclient PORTVERSION= 0.7.2 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,17 +12,15 @@ WWW= https://github.com/jupyter/nbclient LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=1.10.0:devel/py-hatchling@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jupyter-client>=6.1.12:devel/py-jupyter-client@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jupyter-core>=4.12:devel/py-jupyter-core@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}nbformat>=5.1:devel/py-nbformat@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}traitlets>=5.3:devel/py-traitlets@${PY_FLAVOR} USES= python:3.7+ -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes -post-patch: - @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py - .include <bsd.port.mk> diff --git a/devel/py-nbclient/files/setup.py b/devel/py-nbclient/files/setup.py deleted file mode 100644 index deeffe0ed6d0..000000000000 --- a/devel/py-nbclient/files/setup.py +++ /dev/null @@ -1,63 +0,0 @@ -# -*- coding: utf-8 -*- -from setuptools import setup - -setup( - name='nbclient', - version='%%PORTVERSION%%', - description="A client library for executing notebooks. Formerly nbconvert's ExecutePreprocessor.", - long_description="[](https://mybinder.org/v2/gh/jupyter/nbclient/main?filepath=binder%2Frun_nbclient.ipynb)\n[](https://github.com/jupyter/nbclient/actions)\n[](https://nbclient.readthedocs.io/en/latest/?badge=latest)\n[](https://codecov.io/github/jupyter/nbclient?branch=main)\n[](https://www.python.org/downloads/release/python-370/)\n[](https://www.python.org/downloads/release/python-380/)\n[](https://www.python.org/downloads/release/python-390/)\n[](https://www.python.org/downloads/release/python-3100/)\n[](https://www.python.org/downloads/release/python-3110/)\n[](https://github.com/ambv/black)\n\n# nbclient\n\n**NBClient** lets you **execute** notebooks.\n\nA client library for programmatic notebook execution, **NBClient** is a tool for running Jupyter Notebooks in\ndifferent execution contexts, including the command line.\n\n## Interactive Demo\n\nTo demo **NBClient** interactively, click this Binder badge to start the demo:\n\n[](https://mybinder.org/v2/gh/jupyter/nbclient/main?filepath=binder%2Frun_nbclient.ipynb)\n\n## Installation\n\nIn a terminal, run:\n\n```\npython3 -m pip install nbclient\n```\n\n## Documentation\n\nSee [ReadTheDocs](https://nbclient.readthedocs.io/en/latest/) for more in-depth details about the project and th e\n[API Reference](https://nbclient.readthed! ocs.io/en/latest/reference/index.html).\n\n## Python Version Support\n\nThis library currently supports Python 3.6+ versions. As minor Python\nversions are officially sunset by the Python org, nbclient will similarly\ndrop support in the future.\n\n## Origins\n\nThis library used to be part of the [nbconvert](https://nbconvert.readthedocs.io/en/latest/) project. NBClient extracted nbconvert's `ExecutePreprocessor`into its own library for easier updating and importing by downstream libraries and applications.\n\n## Relationship to JupyterClient\n\nNBClient and JupyterClient are distinct projects.\n\n`jupyter_client` is a client library for the jupyter protocol. Specifically, `jupyter_client` provides the Python API\nfor starting, managing and communicating with Jupyter kernels.\n\nWhile, nbclient allows notebooks to be run in different execution contexts.\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', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', - 'Programming Language :: Python :: 3.11', - ], - install_requires=[ - 'jupyter-client>=6.1.12', - 'jupyter-core!=5.0.*,>=4.12', - 'nbformat>=5.1', - 'traitlets>=5.3', - ], - extras_require={ - 'dev': [ - 'pre-commit', - ], - 'docs': [ - 'autodoc-traits', - 'mock', - 'moto', - 'myst-parser', - 'nbclient[test]', - 'sphinx-book-theme', - 'sphinx>=1.7', - ], - 'test': [ - 'ipykernel', - 'ipython', - 'ipywidgets', - 'nbconvert>=7.0.0', - 'pytest-asyncio', - 'pytest-cov>=4.0', - 'pytest>=7.0', - 'testpath', - 'xmltodict', - ], - }, - entry_points={ - 'console_scripts': [ - 'jupyter-execute = nbclient.cli:main', - ], - }, - packages=[ - 'nbclient', - 'nbclient.tests', - ], -)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303211927.32LJRqH0031422>