[arch-commits] Commit in python-traitlets/repos/community-any (PKGBUILD PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Tue May 17 19:19:14 UTC 2022
Date: Tuesday, May 17, 2022 @ 19:19:13
Author: arojas
Revision: 1207703
archrelease: copy trunk to community-any
Added:
python-traitlets/repos/community-any/PKGBUILD
(from rev 1207702, python-traitlets/trunk/PKGBUILD)
Deleted:
python-traitlets/repos/community-any/PKGBUILD
----------+
PKGBUILD | 65 ++++++++++++++++++++++++++++---------------------------------
1 file changed, 30 insertions(+), 35 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-05-17 19:19:03 UTC (rev 1207702)
+++ PKGBUILD 2022-05-17 19:19:13 UTC (rev 1207703)
@@ -1,35 +0,0 @@
-# Maintainer: Kyle Keen <keenerd at gmail.com>
-
-pkgname=python-traitlets
-pkgver=5.1.1
-pkgrel=1
-pkgdesc="A configuration system for Python applications."
-arch=('any')
-url="https://traitlets.readthedocs.io/en/stable/"
-license=('BSD')
-depends=('python-decorator')
-makedepends=('python-setuptools')
-
-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"
-}
-
-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
- install -Dm644 COPYING.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
Copied: python-traitlets/repos/community-any/PKGBUILD (from rev 1207702, python-traitlets/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-05-17 19:19:13 UTC (rev 1207703)
@@ -0,0 +1,30 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgname=python-traitlets
+pkgver=5.2.1.post0
+pkgrel=1
+pkgdesc="A configuration system for Python applications"
+arch=('any')
+url="https://traitlets.readthedocs.io/en/stable/"
+license=('BSD')
+depends=('python-decorator')
+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')
+
+build() {
+ cd traitlets-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd traitlets-$pkgver
+ pytest -v
+}
+
+package() {
+ 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