From nobody Fri Jun 3 23:39:21 2022 X-Original-To: dev-commits-ports-all@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 4BE2F1B4EF75; Fri, 3 Jun 2022 23:39:22 +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 4LFK9547m6z3GTP; Fri, 3 Jun 2022 23:39:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654299561; 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=z0caEROuCkPD4/ZHepU5DM2C5v7dvyFLVdJr86eRmc0=; b=QoJ3L0DfrQ6yyM1TEcrlVeT7DX2l66Ex31/wPXQyUXi0Lo+sc6nYIBghRSd1lUE9d/UJZi WEbZcM5fa0DYkUU971/9r62jb61RF027+O4ffgfGbCQUCCbqZpWfZg8K+yg1pinzRM/bwt IBEzjxQIbezycfY68YqKm9tBgwTkZhUcDxPlMU9q0wqATqPm81XN7XqqtFjpSYaaZM8LDb DsXCm46FI7dzJ8vogx9M6bLMOrlF20P7oVNFVhsQnSOErpN5Y+YEvZUypj3PgkpPAktQzF hVBum70/SvKNgT8uaOl2wSyWWWO+k6btmq3GrAZ+ECzH3P3CzhOf03h9YmCiLA== 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 1D5EF12E2F; Fri, 3 Jun 2022 23:39:21 +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 253NdL2J079283; Fri, 3 Jun 2022 23:39:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 253NdLRX079282; Fri, 3 Jun 2022 23:39:21 GMT (envelope-from git) Date: Fri, 3 Jun 2022 23:39:21 GMT Message-Id: <202206032339.253NdLRX079282@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: 846764ef4234 - main - devel/py-jupyter-packaging: Update to 0.12.1 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@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: 846764ef423438499d436c68f8b3557cdd171cb9 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654299561; 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=z0caEROuCkPD4/ZHepU5DM2C5v7dvyFLVdJr86eRmc0=; b=fQdlhYqPHvxRMTZrGqMBEIINyGM94lkmRW3+1/syO9OBCh1CY0QqdY1d+nu1LRlSYexP7R 87gEV8NFy1B9zXyTVxEqAE+XcuTo/0m3CqgqOhzB11QBIFLffjVCOsPCj+NW9Pw9RST6i+ M7hEs9XfERXlgV1/HqgojyNtCYOmMf5KweBj/Vjw/68Q0N+OnfX5t8zRnRPJtEUTw0QYQR x5LBoxq9sqNcTuv6JjLV7OP74tnlSpq8JGjlLPVExiihEeI54amV3gQXoSZjj0DS2tF2kL V+WhQ3fU6+9EJqmxxAvFdt04WXY1OlVApERVqOG5fRPH/lEBzW1yBTIbmh6Gxw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654299561; a=rsa-sha256; cv=none; b=i5hyUwNt+8AzChN4st5/67/C3dD1xsLCPxRAwUQ+xzboSpo8V4tOhh7lUEWwFST0eIF8hO 49WpiJKVbiaHiAir2EFR2RDgIsG1ltemj0z1v4SAPjeYn95vYk2zd5NeCvRnUie5N052Q4 kuhqYCrOSUqHcNNC3rIUKxPxrS6vP3294QzdNfKujSVqgj9l77c+qeg/+6y9MgzZnBM2SR O9Mz4BjIziznR/seinHUHbmQw2bBQ4UPQ8FxUCs2P3SVieZTRBO/abVF3HHsJcDUohYjYq lu70UK+ZL/6qjZ02cF2zBHv4wUeHL6OLIDc+XkdJtUgDGQ9ZR7pZJgYJzuNrGQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=846764ef423438499d436c68f8b3557cdd171cb9 commit 846764ef423438499d436c68f8b3557cdd171cb9 Author: Po-Chuan Hsieh AuthorDate: 2022-06-03 23:22:14 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-06-03 23:36:34 +0000 devel/py-jupyter-packaging: Update to 0.12.1 Changes: https://github.com/jupyter/jupyter-packaging/blob/main/CHANGELOG.md --- devel/py-jupyter-packaging/Makefile | 5 +++- devel/py-jupyter-packaging/distinfo | 6 ++--- devel/py-jupyter-packaging/files/setup.py | 43 +++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+), 4 deletions(-) diff --git a/devel/py-jupyter-packaging/Makefile b/devel/py-jupyter-packaging/Makefile index 05546f3df432..6cb735e1fbbc 100644 --- a/devel/py-jupyter-packaging/Makefile +++ b/devel/py-jupyter-packaging/Makefile @@ -1,7 +1,7 @@ # Created by: Po-Chuan Hsieh PORTNAME= jupyter-packaging -PORTVERSION= 0.12.0 +PORTVERSION= 0.12.1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -23,4 +23,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-jupyter-packaging/distinfo b/devel/py-jupyter-packaging/distinfo index 8b4487b74cfb..b8b0faf457a9 100644 --- a/devel/py-jupyter-packaging/distinfo +++ b/devel/py-jupyter-packaging/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1649106139 -SHA256 (jupyter_packaging-0.12.0.tar.gz) = b27455d60adc93a7baa2e0b8f386be81b932bb4e3c0116046df9ed230cd3faac -SIZE (jupyter_packaging-0.12.0.tar.gz) = 25258 +TIMESTAMP = 1654275869 +SHA256 (jupyter_packaging-0.12.1.tar.gz) = 8ca939a805dbe0c073968e8d5603aba0e7e4130d2e956207a37d98f8bc940d34 +SIZE (jupyter_packaging-0.12.1.tar.gz) = 27813 diff --git a/devel/py-jupyter-packaging/files/setup.py b/devel/py-jupyter-packaging/files/setup.py new file mode 100644 index 000000000000..c071c18cc7e3 --- /dev/null +++ b/devel/py-jupyter-packaging/files/setup.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +from setuptools import setup + +setup( + name='jupyter-packaging', + version='%%PORTVERSION%%', + description='Jupyter Packaging Utilities.', + long_description='# Jupyter Packaging\n\nTools to help build and install Jupyter Python packages that require a pre-build step that may include JavaScript build steps.\n\n## Install\n\n`pip install jupyter-packaging`\n\n## Usage\n\nThere are three ways to use `jupyter-packaging` in another package.\nIn general, you should not depend on `jupyter_packaging` as a runtime dependency, only as a build dependency.\n\n### As a Build Requirement\n\nUse a `pyproject.toml` file as outlined in [pep-518](https://www.python.org/dev/peps/pep-0518/).\nAn example:\n\n```toml\n[build-system]\nrequires = ["jupyter_packaging>=0.10,<2"]\nbuild-backend = "setuptools.build_meta"\n```\n\nBelow is an example `setup.py` using the above config.\nIt assumes the rest of your metadata is in [`setup.cfg`](https://setuptools.readthedocs.io/en/latest/userguide/declarative_config.html).\nWe wrap the import in a try/catch to allow the file to be run without `jupyter_packaging`\nso that `python setup.py` can be ru n directly when not building.\n\n```py\nfrom setuptools import setup\n\ntry:\n from jupyter_packaging import wrap_installers, npm_builder\n builder = npm_builder()\n cmdclass = wrap_installers(pre_develop=builder, pre_dist=builder)\nexcept ImportError:\n cmdclass = {}\n\nsetup(cmdclass=cmdclass))\n```\n\n### As a Build Backend\n\nUse the `jupyter_packaging` build backend.\nThe pre-build command is specified as metadata in `pyproject.toml`:\n\n```toml\n[build-system]\nrequires = ["jupyter_packaging>=0.10,<2"]\nbuild-backend = "jupyter_packaging.build_api"\n\n[tool.jupyter-packaging.builder]\nfactory = "jupyter_packaging.npm_builder"\n\n[tool.jupyter-packaging.build-args]\nbuild_cmd = "build:src"\n```\n\nThe corresponding `setup.py` would be greatly simplified:\n\n```py\nfrom setuptools import setup\nsetup()\n```\n\nThe `tool.jupyter-packaging.builder` section expects a `func` value that points to an importable\nmodule and a function with dot separators. If not given, no pre-build function will run.\n\nThe optional! `tool.jupyter-packaging.build-args` sections accepts a dict of keyword arguments to\ngive to the pre-build command.\n\nThe build backend does not handle the `develop` command (`pip install -e .`).\nIf desired, you can wrap just that command:\n\n```py\nimport setuptools\n\ntry:\n from jupyter_packaging import wrap_installers, npm_builder\n builder = npm_builder(build_cmd="build:dev")\n cmdclass = wrap_installers(pre_develop=builder)\nexcept ImportError:\n cmdclass = {}\n\nsetup(cmdclass=cmdclass))\n```\n\nThe optional `tool.jupyter-packaging.options` section accepts the following options:\n\n- `skip-if-exists`: A list of local files whose presence causes the prebuild to skip\n- `ensured-targets`: A list of local file paths that should exist when the dist commands are run\n\n### As a Vendored File\n\nVendor `setupbase.py` locally alongside `setup.py` and import the module directly.\n\n```py\nimport setuptools\nfrom setupbase import wrap_installers, npm_builder\nfunc = npm _builder()\ncmdclass = wrap_installers(post_develop=func, pre_dist=func)\nsetup(cmdclass=cmdclass)\n```\n\n## Usage Notes\n\n- This package does not work with the deprecated `python setup.py bdist_wheel` or `python setup.py sdist` commands, PyPA recommends using the [build](https://pypa-build.readthedocs.io/en/latest/index.html) package (`pip install build && python -m build .`).\n- We recommend using `include_package_data=True` and `MANIFEST.in` to control the assets included in the [package](https://setuptools.readthedocs.io/en/latest/userguide/datafiles.html).\n- Tools like [`check-manifest`](https://github.com/mgedmin/check-manifest) or [`manifix`](https://github.com/vidartf/manifix) can be used to ensure the desired assets are included.\n- Simple uses of `data_files` can be handled in `setup.cfg` or in `setup.py`. If recursive directories are needed use `get_data_files()` from this package.\n- Unfortunately `data_files` are not supported in `develop` mode (a limitation of `set uptools`). You can work around it by doing ! a full in! stall (`pip install .`) before the develop install (`pip install -e .`), or by adding a script to push the data files to `sys.base_prefix`.\n\n## Development Install\n\n```bash\ngit clone https://github.com/jupyter/jupyter-packaging.git\ncd jupyter-packaging\npip install -e .[test]\npre-commit install\n```\n\nYou can test changes locally by creating a `pyproject.toml` with the following, replacing the local path to the git checkout:\n\n```toml\n[build-system]\nrequires = ["jupyter_packaging@file://"]\nbuild-backend = "setuptools.build_meta"\n```\n\nNote: you need to run `pip cache remove jupyter_packaging` any time changes are made to prevent `pip` from using a cached version of the source.\n', + author_email='Jupyter Development Team ', + classifiers=[ + 'Intended Audience :: Developers', + 'Intended Audience :: Science/Research', + 'Intended Audience :: System Administrators', + 'License :: OSI Approved :: BSD License', + 'Programming Language :: Python', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + ], + install_requires=[ + 'deprecation', + 'packaging', + 'setuptools>=60.2.0', + 'tomlkit', + 'wheel', + ], + extras_require={ + 'test': [ + 'build', + 'coverage', + 'pre-commit', + 'pytest', + 'pytest-cov', + 'pytest-mock', + 'pytest-timeout', + ], + }, + packages=[ + 'jupyter_packaging', + 'tests', + ], +)