From nobody Tue Mar 21 19:27:53 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ph1pf0hq4z40hYT; Tue, 21 Mar 2023 19:27:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ph1pd4c71z4Nn6; Tue, 21 Mar 2023 19:27:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679426873; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Tt6gcFfxnYe/B1IjTcEFibs34ysd/JTRCRGKVIZFTxo=; b=fYCrcUw4biCJ4v3jRhZAIjdunH7P20aHvC46GcrG1ir9qxwkOd/DCtNj+rD9SiB2uFZtEO W4j7zqcDOL9W5LpLpBc56nc9lfpQLdvgi/BAbo8Xkpcca7Bdffr96pPTyJ8pXGcH3efwzF TX6GrSHj9i0uwx76XRmosOTLJC2H2+eFZvrMw+IkF75zX8XxO01p+KrWOHVGqRfzCPSL+m q/gaiI5c+qE8zvoom1s30D+d7RynPnMsPN55cgcaOJiSzoefzoElWsFyaAx+zqRDUBwyAZ gmgsRt/VhMGlI7OoWyM6XTUPPvGxzmRYFSJJOsxjkzC03cxgLyMfzQ/S5vX4mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679426873; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Tt6gcFfxnYe/B1IjTcEFibs34ysd/JTRCRGKVIZFTxo=; b=EIWlin6mb3zJk3X/FCC70Oq4fbfxaYeV0FJHVRPbPo+RIPX9B8fNJ/uVEWCG5y7vK19Kof I3q1yxB310sPPbve1CLfEB2vMxTzuZIC7762HrrHVNFb+G+0MD6SGEVntdry/JMDYIubPt u58SBu1gp4X7uw8WFCTTP+fEHodQYEvMwbrDKg0H+WtbMaYaebcp67e6G2239BmXC/Xhm9 7Cw4YCwJgjapkiA4qca05Kgy3EcBY+XAuozgYTq3Sv3Lz4vXLsuRBElIYlla2OfF5QIe9s kvbN21Lyxcfh9lOXu/ksauh1MtVGXPwGIDp6pEpcWBZts8jmpzfwZx7swYK3ZA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679426873; a=rsa-sha256; cv=none; b=r410uwhgroGjZ8Ilj08+aL7QcRe8K6hcQUYQVuH79iD2i/9xynnRnj2bgqZyXLRerUbWUC xwi5/TDZW7p/DcY2i30h765Nn3FFQX+mIB2Gasrd1H4cQ/kIlCEFJ0vfqqIWPjUibB0vOk gGX/GI8zQ5FwqQDbIkmhn+ij1wooWkyO2jXvHFbYzodPsTAF4YjSWiiF+h90/+QORfrfIz QTxHjGtlfMY2OSfxjuKVlvEc8BUIhJwouDG0oxgnnUfZ2JRfpvxjBDeW9uek5rDIx/Wew8 sE0f0Q0hrJWpDCTCyzfS/PSJWyrkbHyrnPnTEIlLOyK90MWc/490Xej1AHPYcw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Ph1pd3jk2zPdZ; Tue, 21 Mar 2023 19:27:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 32LJRrP0031442; Tue, 21 Mar 2023 19:27:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32LJRrsT031441; Tue, 21 Mar 2023 19:27:53 GMT (envelope-from git) Date: Tue, 21 Mar 2023 19:27:53 GMT Message-Id: <202303211927.32LJRrsT031441@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 474b053d9fc1 - main - devel/py-notebook-shim: Convert to USE_PYTHON=pep517 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 474b053d9fc15d53c3bc0706c3c486f60eada110 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=474b053d9fc15d53c3bc0706c3c486f60eada110 commit 474b053d9fc15d53c3bc0706c3c486f60eada110 Author: Po-Chuan Hsieh AuthorDate: 2023-03-21 18:44:29 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-03-21 19:20:47 +0000 devel/py-notebook-shim: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for dependency and package change --- devel/py-notebook-shim/Makefile | 7 +++---- devel/py-notebook-shim/files/setup.py | 39 ----------------------------------- 2 files changed, 3 insertions(+), 43 deletions(-) diff --git a/devel/py-notebook-shim/Makefile b/devel/py-notebook-shim/Makefile index 178cb5908921..dc8a605135c2 100644 --- a/devel/py-notebook-shim/Makefile +++ b/devel/py-notebook-shim/Makefile @@ -1,5 +1,6 @@ PORTNAME= notebook-shim PORTVERSION= 0.2.2 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,14 +13,12 @@ WWW= https://github.com/jupyter/notebook_shim LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=1.0:devel/py-hatchling@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jupyter-server>=1.8<3:devel/py-jupyter-server@${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 diff --git a/devel/py-notebook-shim/files/setup.py b/devel/py-notebook-shim/files/setup.py deleted file mode 100644 index 773fb004fda6..000000000000 --- a/devel/py-notebook-shim/files/setup.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -from setuptools import setup - -setup( - name='notebook-shim', - version='%%PORTVERSION%%', - description='A shim layer for notebook traits and config', - long_description='# Notebook Shim\n\nThis project provides a way for JupyterLab and other frontends to switch to [Jupyter Server](https://github.com/jupyter/jupyter_server/) for their Python Web application backend.\n\n## Basic Usage\n\nInstall from PyPI:\n\n```\npip install notebook_shim\n```\n\nThis will automatically enable the extension in Jupyter Server.\n\n## Usage\n\nThis project also includes an API for shimming traits that moved from `NotebookApp` in to `ServerApp` in Jupyter Server. This can be used by applications that subclassed `NotebookApp` to leverage the Python server backend of Jupyter Notebooks. Such extensions should *now* switch to `ExtensionApp` API in Jupyter Server and add `NotebookConfigShimMixin` in their inheritance list to properly handle moved traits.\n\nFor example, an application class that previously looked like:\n\n```python\nfrom notebook.notebookapp import NotebookApp\n\nclass MyApplication(NotebookApp):\n```\n\nshould switch to look something l ike:\n\n```python\nfrom jupyter_server.extension.application import ExtensionApp\nfrom notebook_shim.shim import NotebookConfigShimMixin\n\nclass MyApplication(NotebookConfigShimMixin, ExtensionApp):\n```', - author_email='Jupyter Development Team ', - classifiers=[ - 'Framework :: Jupyter', - '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 :: Only', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', - ], - install_requires=[ - 'jupyter-server<3,>=1.8', - ], - extras_require={ - 'test': [ - 'pytest', - 'pytest-console-scripts', - 'pytest-tornasync', - ], - }, - packages=[ - 'notebook_shim', - 'notebook_shim.tests', - 'notebook_shim.tests.confs', - ], -)