diff options
author | Isaac Yu <isaacyu1@isaacyu1.com> | 2022-10-02 22:35:33 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-10-07 22:55:15 +0700 |
commit | 4c4d2cfe714c60745b3edef1bc731b5f5199e0ec (patch) | |
tree | 284a314eea591826a71218f5675a40a19605b858 /development | |
parent | 74ef0f0cd911947237c25b829f90d44bbc21faac (diff) |
development/jupyter-ipykernel: Update for 6.16.0
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r-- | development/jupyter-ipykernel/jupyter-ipykernel.SlackBuild | 35 | ||||
-rw-r--r-- | development/jupyter-ipykernel/jupyter-ipykernel.info | 8 |
2 files changed, 8 insertions, 35 deletions
diff --git a/development/jupyter-ipykernel/jupyter-ipykernel.SlackBuild b/development/jupyter-ipykernel/jupyter-ipykernel.SlackBuild index 81a34bd7a4e31..ae546afc7b26a 100644 --- a/development/jupyter-ipykernel/jupyter-ipykernel.SlackBuild +++ b/development/jupyter-ipykernel/jupyter-ipykernel.SlackBuild @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=jupyter-ipykernel -VERSION=${VERSION:-6.15.3} +VERSION=${VERSION:-6.16.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -82,42 +82,15 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Use this setup.py shim: -cat << EOF > setup.py -from distutils.core import setup -from glob import glob -from ipykernel.kernelspec import KERNEL_NAME, make_ipkernel_cmd, write_kernel_spec -import os -import shutil -here = os.path.abspath(os.path.dirname(__file__)) -pjoin = os.path.join -packages = [] -for d, _, _ in os.walk(pjoin(here, 'ipykernel')): - if os.path.exists(pjoin(d, '__init__.py')): - packages.append(d[len(here)+1:].replace(os.path.sep, '.')) -dest = pjoin(here, "data_kernelspec") -if os.path.exists(dest): - shutil.rmtree(dest) -write_kernel_spec(dest, overrides={"argv": make_ipkernel_cmd()}) -setup(name='${SRCNAM}', - version='${VERSION}', - packages=packages, - py_modules=["ipykernel_launcher"], - data_files=[(pjoin("share", "jupyter", "kernels", KERNEL_NAME), glob(pjoin("data_kernelspec", "*")))], - package_data={"ipykernel": ["resources/*.*", "py.typed"]}, -) -EOF - -# With the shim, it's a good idea to use "unshare -n" to prevent downloading -# anything extra: -unshare -n python3 setup.py install --root=$PKG || exit 1 +python3 -m build --no-isolation +python3 -m installer -d "$PKG" dist/*.whl find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - *.md PKG-INFO \ + CHANGELOG.md CONTRIBUTING.md README.md RELEASE.md \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/development/jupyter-ipykernel/jupyter-ipykernel.info b/development/jupyter-ipykernel/jupyter-ipykernel.info index 2e0bd9c0b4843..5053ce3ecbd97 100644 --- a/development/jupyter-ipykernel/jupyter-ipykernel.info +++ b/development/jupyter-ipykernel/jupyter-ipykernel.info @@ -1,10 +1,10 @@ PRGNAM="jupyter-ipykernel" -VERSION="6.15.3" +VERSION="6.16.0" HOMEPAGE="https://jupyter.org/" -DOWNLOAD="https://files.pythonhosted.org/packages/source/i/ipykernel/ipykernel-6.15.3.tar.gz" -MD5SUM="d6dd3ae9771f8a7a78a3bb8a898b7881" +DOWNLOAD="https://files.pythonhosted.org/packages/source/i/ipykernel/ipykernel-6.16.0.tar.gz" +MD5SUM="3c2d7b45ed68420e8932099e191342f1" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="debugpy ipython jupyter_client psutil" +REQUIRES="debugpy ipython jupyter_client psutil python3-hatchling" MAINTAINER="Isaac Yu" EMAIL="isaacyu1@isaacyu1.com" |