[arch-commits] Commit in python-traitlets/trunk (PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Tue May 17 19:19:03 UTC 2022


    Date: Tuesday, May 17, 2022 @ 19:19:03
  Author: arojas
Revision: 1207702

Update to 5.2.1, remove no longer needed ipython_genutils

Modified:
  python-traitlets/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++++++++++--------------------
 1 file changed, 15 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-17 19:16:25 UTC (rev 1207701)
+++ PKGBUILD	2022-05-17 19:19:03 UTC (rev 1207702)
@@ -1,35 +1,30 @@
 # Maintainer: Kyle Keen <keenerd at gmail.com>
 
 pkgname=python-traitlets
-pkgver=5.1.1
+pkgver=5.2.1.post0
 pkgrel=1
-pkgdesc="A configuration system for Python applications."
+pkgdesc="A configuration system for Python applications"
 arch=('any')
 url="https://traitlets.readthedocs.io/en/stable/"
 license=('BSD')
 depends=('python-decorator')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-hatchling')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/t/traitlets/traitlets-$pkgver.tar.gz")
+md5sums=('ae734d35b4ee39334af9bf40a898d1ff')
 
-source=("https://files.pythonhosted.org/packages/source/t/traitlets/traitlets-$pkgver.tar.gz"
-        "https://pypi.python.org/packages/source/i/ipython_genutils/ipython_genutils-0.2.0.tar.gz")
-md5sums=('31f7fd84518fe08cb40ab18f6dde0d54'
-         '5a4f9781f78466da0ea1a648f3e1f79f')
-
-# ipython_genutils does not deserve a package
-# "Pretend this doesn’t exist. Nobody should use it."
-# "Vestigial IPython utilities: DO NOT USE"
-# (still required for now though, but drop at first chance)
-
 build() {
-  cd "$srcdir"
+  cd traitlets-$pkgver
+  python -m build --wheel --no-isolation
 }
 
+check() {
+  cd traitlets-$pkgver
+  pytest -v
+}
+
 package() {
-  # TEMPORARY!
-  cd "$srcdir/ipython_genutils-0.2.0"
-  python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
-
-  cd "$srcdir/traitlets-$pkgver"
-  python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+  cd traitlets-$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