diff options
author | Isaac Yu <isaacyu1@isaacyu1.com> | 2022-10-02 22:40:59 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-10-07 22:56:11 +0700 |
commit | e2af44568df9a9e69c0f0d4cbd11148308c97876 (patch) | |
tree | 9d9509fd34a0ea26f126e4c0d2c6ffa9fd9c79c7 /development | |
parent | 4c4d2cfe714c60745b3edef1bc731b5f5199e0ec (diff) | |
download | slackbuilds-e2af44568df9a9e69c0f0d4cbd11148308c97876.tar.gz |
development/jupyterlab_server: Update for 2.15.2
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r-- | development/jupyterlab_server/jupyterlab_server.SlackBuild | 25 | ||||
-rw-r--r-- | development/jupyterlab_server/jupyterlab_server.info | 8 |
2 files changed, 8 insertions, 25 deletions
diff --git a/development/jupyterlab_server/jupyterlab_server.SlackBuild b/development/jupyterlab_server/jupyterlab_server.SlackBuild index 5843766b99..4377ba0e81 100644 --- a/development/jupyterlab_server/jupyterlab_server.SlackBuild +++ b/development/jupyterlab_server/jupyterlab_server.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=jupyterlab_server -VERSION=${VERSION:-2.15.1} +VERSION=${VERSION:-2.15.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -79,31 +79,14 @@ 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 -import os -here = os.path.abspath(os.path.dirname(__file__)) -pjoin = os.path.join -packages = [] -for d, _, _ in os.walk(pjoin(here, 'jupyterlab_server')): - packages.append(d[len(here)+1:].replace(os.path.sep, '.')) -setup(name='${PRGNAM}', - version='${VERSION}', - packages=packages, - package_data={'': ['*']}, -) -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 LICENSE PKG-INFO *.md $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGELOG.md CONTRIBUTING.md README.md RELEASE.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/development/jupyterlab_server/jupyterlab_server.info b/development/jupyterlab_server/jupyterlab_server.info index 0e4bd50ecc..f5a89e7bbe 100644 --- a/development/jupyterlab_server/jupyterlab_server.info +++ b/development/jupyterlab_server/jupyterlab_server.info @@ -1,10 +1,10 @@ PRGNAM="jupyterlab_server" -VERSION="2.15.1" +VERSION="2.15.2" HOMEPAGE="https://jupyter.org/" -DOWNLOAD="https://files.pythonhosted.org/packages/source/j/jupyterlab_server/jupyterlab_server-2.15.1.tar.gz" -MD5SUM="20815d82fcd0707d205a58a398778676" +DOWNLOAD="https://files.pythonhosted.org/packages/source/j/jupyterlab_server/jupyterlab_server-2.15.2.tar.gz" +MD5SUM="44709f4f282337cbc696a74426d14776" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="jupyter_server python3-babel python3-json5" +REQUIRES="jupyter_server python3-babel python3-json5 python3-hatchling" MAINTAINER="Isaac Yu" EMAIL="isaacyu1@isaacyu1.com" |