From nobody Fri Dec 30 09:11:00 2022 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 4NjzyF2l4mz2kdH4; Fri, 30 Dec 2022 09:11:01 +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 4NjzyD4V0rz43WH; Fri, 30 Dec 2022 09:11:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672391460; 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=cFrE59rAUBCCnrdEaMgaXUypuP0iw1ZWWBdrFgLMqg4=; b=Kf071Y8F5kyys1cJElZbxE4mBjLeIm7Szo2IXunUrnzb8ZgTTJ+pKv+u66wzfxY7VuGwCO lcX8jzSD/hG/lGzxCbdgt43KsGqCt6J6wZ7ZZDIBjOs0HtlOO7+/lTJr68vy0SU16iKKPY LNTFJTEbZdgkmAd4XMzP8H3l5askAIzWJtR2KJ7Per3/N8efPwshoIfx3Xl9xEbP/16o6J Pgi644k6REMfwZMwQblB0wIn3BX5+hFSKkpxOeoEgp5qHEXKhkez5tU8w6SLSZe/E0zCW7 58s0ZMjh4SHQiMF29T4tm5p6GOl8tQmjilOFr27dKSX+7DyWfpLUCqQAHxd7sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672391460; 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=cFrE59rAUBCCnrdEaMgaXUypuP0iw1ZWWBdrFgLMqg4=; b=jkwVTYBlTaA0fP/7zpR3ztPrkg714XV3CVxY3I05GUZBk5CighiyQCH+B0/zyRGFEkJPd3 C9j+eebamET6dnMhWLo1dh+w5y+x506AEekJcaPLwbPz27VX4fY3A8boM1JN9xYpDaHBX3 3Q3ZPLF6GyrpM88xXzOGRWCD7zTa0vcJsdE54nDIAGqCbHo74N+NMxi9Kmd0Sj8HlaJ2Y9 XtM4B+5VIHWbv18aDGOtFsLealgBfAmdUgVh26+YYHX8rlaWQFMeMOzUlEaPdETULwA8LA DUSw4MmtgXgIMYUUhKMpd1+h/Uokh2oLu3QPb4rIAzY7ybYNHZaoy3D8uPLmOQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672391460; a=rsa-sha256; cv=none; b=SCXYY5/EEP8zP5ewoAnAYeYzMawmV4wAKstasGEqOAEDOzyxRJhtm7atp6tVryvVvaAFpH du9tCPdpXR/gD8mr1P3x9yhy4nZOM62AmwnDKHVkASQPBJyOJyv6QVoCQrtJLbSwPW+mb9 pAMdK6JDZ15ahm1hsdtcU9aZkUmqO/WEV+h61I8KwFgAVlMjawXoxb3dWCmSEebktxWyoo LfKLYsI4OINYma9mm247gBHv0Gwu90sAF8O+TYfMLrksGHEaU32vZ6UXc+4C5aKOaITVj2 qt+AJeoX88WuZHV7DksWdLgfzVyHZGzKOQfkUqPeClIbstsS6H7EOoUI97N3Jw== 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 4NjzyD3LDVz133B; Fri, 30 Dec 2022 09:11:00 +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 2BU9B0h9012977; Fri, 30 Dec 2022 09:11:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BU9B0Qa012976; Fri, 30 Dec 2022 09:11:00 GMT (envelope-from git) Date: Fri, 30 Dec 2022 09:11:00 GMT Message-Id: <202212300911.2BU9B0Qa012976@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: 7bd94ee3ef9d - main - devel/py-notebook-shim: Update to 0.2.0 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: 7bd94ee3ef9d2b2683bd1610e6764857d973a137 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=7bd94ee3ef9d2b2683bd1610e6764857d973a137 commit 7bd94ee3ef9d2b2683bd1610e6764857d973a137 Author: Po-Chuan Hsieh AuthorDate: 2022-12-30 08:42:47 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-12-30 09:04:43 +0000 devel/py-notebook-shim: Update to 0.2.0 Changes: https://github.com/jupyter/notebook_shim/releases --- devel/py-notebook-shim/Makefile | 7 +++++-- devel/py-notebook-shim/distinfo | 6 +++--- devel/py-notebook-shim/files/setup.py | 38 +++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 5 deletions(-) diff --git a/devel/py-notebook-shim/Makefile b/devel/py-notebook-shim/Makefile index f77f70e18b0b..3013a6673cb8 100644 --- a/devel/py-notebook-shim/Makefile +++ b/devel/py-notebook-shim/Makefile @@ -1,5 +1,5 @@ PORTNAME= notebook-shim -PORTVERSION= 0.1.0 +PORTVERSION= 0.2.0 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,11 +12,14 @@ WWW= https://github.com/jupyter/notebook_shim LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jupyter-server>=1.8<2:devel/py-jupyter-server@${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 NO_ARCH= yes +post-patch: + @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py + .include diff --git a/devel/py-notebook-shim/distinfo b/devel/py-notebook-shim/distinfo index e2dc59d98119..864a25850816 100644 --- a/devel/py-notebook-shim/distinfo +++ b/devel/py-notebook-shim/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1647264402 -SHA256 (notebook_shim-0.1.0.tar.gz) = 7897e47a36d92248925a2143e3596f19c60597708f7bef50d81fcd31d7263e85 -SIZE (notebook_shim-0.1.0.tar.gz) = 12275 +TIMESTAMP = 1669057785 +SHA256 (notebook_shim-0.2.0.tar.gz) = fdb81febb05932c6d19e44e10382ce05469cac5e1b6e99b49be6159ddb5e4804 +SIZE (notebook_shim-0.2.0.tar.gz) = 12063 diff --git a/devel/py-notebook-shim/files/setup.py b/devel/py-notebook-shim/files/setup.py new file mode 100644 index 000000000000..3a885fabfada --- /dev/null +++ b/devel/py-notebook-shim/files/setup.py @@ -0,0 +1,38 @@ +# -*- 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', + ], +)