[arch-commits] Commit in jupyterlab-widgets/trunk (PKGBUILD drop-ensure_python.patch)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Fri Dec 3 17:47:18 UTC 2021
Date: Friday, December 3, 2021 @ 17:47:18
Author: foutrelis
Revision: 1064844
Remove ensure_python(">=3.6") call
Traceback (most recent call last):
File "/build/jupyterlab-widgets/src/jupyterlab_widgets-1.0.2/setup.py", line 18, in <module>
ensure_python(">=3.6")
File "/usr/lib/python3.10/site-packages/deprecation.py", line 260, in _inner
return function(*args, **kwargs)
File "/usr/lib/python3.10/site-packages/jupyter_packaging/setupbase.py", line 469, in ensure_python
raise RuntimeError("ensure_python is deprecated and not compatible with Python 3.10+")
RuntimeError: ensure_python is deprecated and not compatible with Python 3.10+
Added:
jupyterlab-widgets/trunk/drop-ensure_python.patch
Modified:
jupyterlab-widgets/trunk/PKGBUILD
--------------------------+
PKGBUILD | 11 +++++++++--
drop-ensure_python.patch | 22 ++++++++++++++++++++++
2 files changed, 31 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-03 17:46:45 UTC (rev 1064843)
+++ PKGBUILD 2021-12-03 17:47:18 UTC (rev 1064844)
@@ -10,9 +10,16 @@
license=(custom)
depends=(jupyterlab python-ipywidgets)
makedepends=(python-setuptools python-jupyter_packaging)
-source=(https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz)
-sha256sums=('7885092b2b96bf189c3a705cc3c412a4472ec5e8382d0b47219a66cccae73cfa')
+source=(https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz
+ drop-ensure_python.patch)
+sha256sums=('7885092b2b96bf189c3a705cc3c412a4472ec5e8382d0b47219a66cccae73cfa'
+ '444045fbd2ac725d78936cb6e7d1306ad0e160a8c7e81b95c7e4419e0d10fa3b')
+prepare() {
+ cd $_pipname-$pkgver
+ patch -Np1 -i ../drop-ensure_python.patch
+}
+
build() {
cd $_pipname-$pkgver
python setup.py build
Added: drop-ensure_python.patch
===================================================================
--- drop-ensure_python.patch (rev 0)
+++ drop-ensure_python.patch 2021-12-03 17:47:18 UTC (rev 1064844)
@@ -0,0 +1,22 @@
+diff -upr jupyterlab_widgets-1.0.2.orig/setup.py jupyterlab_widgets-1.0.2/setup.py
+--- jupyterlab_widgets-1.0.2.orig/setup.py 2021-09-14 02:30:14.000000000 +0300
++++ jupyterlab_widgets-1.0.2/setup.py 2021-12-03 19:44:10.702567429 +0200
+@@ -5,7 +5,7 @@ import os
+
+ from jupyter_packaging import (
+ create_cmdclass, install_npm, ensure_targets,
+- combine_commands, ensure_python, get_version,
++ combine_commands, get_version,
+ )
+ import setuptools
+
+@@ -14,9 +14,6 @@ HERE = os.path.abspath(os.path.dirname(_
+ # The name of the project
+ name = "jupyterlab_widgets"
+
+-# Ensure a valid python version
+-ensure_python(">=3.6")
+-
+ # Get our version
+ version = get_version(os.path.join(name, "_version.py"))
+
More information about the arch-commits
mailing list