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

Felix Yan felixonmars at gemini.archlinux.org
Fri Aug 12 19:25:53 UTC 2022


    Date: Friday, August 12, 2022 @ 19:25:53
  Author: felixonmars
Revision: 1265721

upgpkg: python-pydle 1.0.0-1

Modified:
  python-pydle/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-12 19:17:01 UTC (rev 1265720)
+++ PKGBUILD	2022-08-12 19:25:53 UTC (rev 1265721)
@@ -1,22 +1,28 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=python-pydle
-pkgver=0.9.4
-pkgrel=4
+pkgver=1.0.0
+pkgrel=1
 pkgdesc="A compact, flexible and standards-abiding IRC library"
 url="https://github.com/Shizmob/pydle"
 license=('BSD')
 arch=('any')
 depends=('python')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-poetry-core')
 optdepends=('python-pure-sasl: for SASL support')
-checkdepends=('python-pytest' 'python-pure-sasl')
+checkdepends=('python-pytest-asyncio' 'python-pure-sasl')
 source=("https://github.com/Shizmob/pydle/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('3b61b603aca1f6da6cc8674fe07f3f14a6d14a7db27c33d376c6e5275feb1a00b4e6a8c19d1a52a67e3dae1440292a8cbac13fc0a73d87b5205d8ecde03ec61c')
+sha512sums=('0d9e2e04b5043a514651211a57d7078f220c01a39719ee5b00117006176576900cc689e21ea1440498a879e7b336d6d76a302265e2eccd98517e1b82dd536b31')
 
+prepare() {
+  cd pydle-$pkgver
+  # https://github.com/Shizmob/pydle/issues/162
+  sed -i '/loop=self.eventloop/d' pydle/connection.py
+}
+
 build() {
   cd pydle-$pkgver
-  python setup.py build
+  python -m build -nw
 }
 
 check() {
@@ -27,7 +33,6 @@
 
 package() {
   cd pydle-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/
 }



More information about the arch-commits mailing list