Is this package still being maintained? It seems to haven't been updated for half a year and upstream has changed the way it is built, no longer using setup.py
scripts but pypa/build and pypa/installer for build and installation.
The PKGBUILD I use myself is built using the same way as upstream, and I've had no problems with it so far, here's the patch:
From bb3b5cfecfd5fe679eeeac636ac6bc7bad81c2e6 Mon Sep 17 00:00:00 2001
From: gaogao-qwq <gaogaoqwq@gmail.com>
Date: Sat, 27 Apr 2024 21:20:09 +0800
Subject: [PATCH] Update to version 1.27.2 and use upstream build method
Signed-off-by: gaogao-qwq <gaogaoqwq@gmail.com>
---
PKGBUILD | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/PKGBUILD b/PKGBUILD
index 386bedf..454afe6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
# Contributor: Aaron Abbott <aabmass at gmail dot com>
pkgname=mycli
-pkgver=1.27.0
+pkgver=1.27.2
pkgrel=1
pkgdesc='A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting'
arch=('any')
@@ -23,19 +23,23 @@ depends=(
'python-pyperclip'
'python-pyaes'
)
-makedepends=('python-setuptools')
+makedepends=(
+ 'python-setuptools'
+ 'python-build'
+ 'python-installer'
+)
optdepends=('python-paramiko: SSH support')
options=(!emptydirs)
source=("$pkgname-$pkgver.tar.gz::https://github.com/dbcli/mycli/archive/v${pkgver}.tar.gz")
-sha256sums=('e60d819aca772d72dd30757c10b223809add6759fc8e896446e94410146c7fab')
+sha256sums=('2d89259911289cc09295875c4017b0e0b6db1a83a3600c67378fcdcb6eba2454')
build() {
cd "$srcdir/$pkgname-$pkgver"
- python setup.py build
+ python -m build --wheel
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -D -m 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
- python setup.py install --root="$pkgdir" --optimize=1
+ python -m installer --destdir "$pkgdir" "dist/mycli-${pkgver}-py2.py3-none-any.whl"
}
--
2.44.0
Pinned Comments
loonies commented on 2019-12-06 11:43 (UTC) (edited on 2019-12-10 07:36 (UTC) by loonies)
Prior to flagging the package out-of-date or reporting build errors please:
Do not expect AUR packages to trigger rebuild or suggest bumping "pkgrel" number. This is expected behaviour and the way Arch packing is designed to work.
For more information read the official documentation and man pages.