[arch-commits] Commit in jupyter-nbformat/repos/community-any (PKGBUILD PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Mon Mar 14 21:55:03 UTC 2022


    Date: Monday, March 14, 2022 @ 21:55:03
  Author: arojas
Revision: 1153974

archrelease: copy trunk to community-any

Added:
  jupyter-nbformat/repos/community-any/PKGBUILD
    (from rev 1153973, jupyter-nbformat/trunk/PKGBUILD)
Deleted:
  jupyter-nbformat/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   61 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 30 insertions(+), 31 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-14 21:54:53 UTC (rev 1153973)
+++ PKGBUILD	2022-03-14 21:55:03 UTC (rev 1153974)
@@ -1,31 +0,0 @@
-# Maintainer: Kyle Keen <keenerd at gmail.com>
-
-pkgname=jupyter-nbformat
-pkgver=5.1.3
-pkgrel=3
-pkgdesc="The base implementation of the Jupyter Notebook format and Python APIs for working with notebooks"
-arch=('any')
-url="https://pypi.python.org/pypi/nbformat"
-license=('BSD')
-depends=('python-traitlets' 'python-jupyter_core' 'python-jsonschema')
-makedepends=('python-setuptools')
-source=("$pkgname-$pkgver.tgz::https://github.com/jupyter/nbformat/archive/$pkgver.tar.gz"
-         nbformat-install-data.patch::"https://github.com/jupyter/nbformat/commit/657a7ab5.patch")
-md5sums=('dd2a7d13ef6c6661bdc5b94db3255d0a'
-         'f21e8726512cee276a50b91e3f0f2885')
-
-prepare() {
-  cd nbformat-$pkgver
-  #patch -p1 -i ../nbformat-install-data.patch # Fix data install
-}
-
-build() {
-  cd nbformat-$pkgver
-  python setup.py build
-}
-
-package() {
-  cd "$srcdir/nbformat-$pkgver"
-  python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
-  install -Dm644 COPYING.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: jupyter-nbformat/repos/community-any/PKGBUILD (from rev 1153973, jupyter-nbformat/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-03-14 21:55:03 UTC (rev 1153974)
@@ -0,0 +1,30 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgname=jupyter-nbformat
+pkgver=5.2.0
+pkgrel=1
+pkgdesc="The base implementation of the Jupyter Notebook format and Python APIs for working with notebooks"
+arch=('any')
+url="https://pypi.python.org/pypi/nbformat"
+license=('BSD')
+depends=('python-traitlets' 'python-jupyter_core' 'python-jsonschema')
+makedepends=('python-build' 'python-installer' 'python-wheel')
+checkdepends=('python-pytest' 'python-testpath' 'python-fastjsonschema')
+source=("$pkgname-$pkgver.tgz::https://github.com/jupyter/nbformat/archive/$pkgver.tar.gz")
+md5sums=('835f4d20224a3327b570c2c8ba1ad941')
+
+build() {
+  cd nbformat-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd nbformat-$pkgver
+  pytest
+}
+
+package() {
+  cd nbformat-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 COPYING.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list