David Runge pushed to branch main at Arch Linux / Packaging / Packages / 
python-notify2


Commits:
54b279c9 by David Runge at 2024-04-03T21:06:45+02:00
Switch to correct SPDX license identifier

Signed-off-by: David Runge <[email protected]>

- - - - -
e0c7cc7b by David Runge at 2024-04-03T21:10:07+02:00
Switch to PEP517

Signed-off-by: David Runge <[email protected]>

- - - - -
73b3355c by David Runge at 2024-04-03T21:10:32+02:00
Add all direct dependencies

Signed-off-by: David Runge <[email protected]>

- - - - -
96d30139 by David Runge at 2024-04-03T21:13:11+02:00
upgpkg: 0.3.1-9

- - - - -


2 changed files:

- + .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,18 @@
+pkgbase = python-notify2
+       pkgdesc = Python interface to DBus notifications
+       pkgver = 0.3.1
+       pkgrel = 9
+       url = https://bitbucket.org/takluyver/pynotify2
+       arch = any
+       license = BSD-2-Clause
+       makedepends = python-build
+       makedepends = python-installer
+       makedepends = python-setuptools
+       makedepends = python-wheel
+       depends = python
+       depends = python-dbus
+       source = 
https://files.pythonhosted.org/packages/source/n/notify2/notify2-0.3.1.tar.gz
+       sha512sums = 
0b69a64e0a7e4955ee767c975db92c5c60d28c0e54f77498cfb98390771a8f536631fc34e42b5c46c138dfa1054b5516a0809b8e3b0cb9237a39825ddb827109
+       b2sums = 
649df1934d1fffb97dabbf2f483204c55427fbede851840d642da2e4e62a9bda9d49670e60f5b2cda36b62ee47b7d0cd861d757d338867547dce3c7d61ddf7b4
+
+pkgname = python-notify2


=====================================
PKGBUILD
=====================================
@@ -3,32 +3,26 @@
 _name=notify2
 pkgname=python-notify2
 pkgver=0.3.1
-pkgrel=8
+pkgrel=9
 pkgdesc="Python interface to DBus notifications"
 arch=('any')
 url="https://bitbucket.org/takluyver/pynotify2";
-license=('BSD')
-depends=('python-dbus')
-makedepends=('python-setuptools')
+license=('BSD-2-Clause')
+depends=('python' 'python-dbus')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
 
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz";)
 
sha512sums=('0b69a64e0a7e4955ee767c975db92c5c60d28c0e54f77498cfb98390771a8f536631fc34e42b5c46c138dfa1054b5516a0809b8e3b0cb9237a39825ddb827109')
 
b2sums=('649df1934d1fffb97dabbf2f483204c55427fbede851840d642da2e4e62a9bda9d49670e60f5b2cda36b62ee47b7d0cd861d757d338867547dce3c7d61ddf7b4')
 
-prepare() {
-  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
-}
-
 build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
 }
 # NOTE: tests require running dbus
 
 package() {
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-                          --optimize=1 \
-                          --root="${pkgdir}"
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
   install -vDm 644 examples/* -t "${pkgdir}/usr/share/doc/${pkgname}/examples"
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-notify2/-/compare/fcf8137f6f512fd81ea1ba55ef1bf56185738321...96d30139b9ea6bd9cfe14cda15502b5b06767b7d

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-notify2/-/compare/fcf8137f6f512fd81ea1ba55ef1bf56185738321...96d30139b9ea6bd9cfe14cda15502b5b06767b7d
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to