Package Details: mycli 1.28.0-1

Git Clone URL: https://aur.archlinux.org/mycli.git (read-only, click to copy)
Package Base: mycli
Description: A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting
Upstream URL: https://github.com/dbcli/mycli
Keywords: cli mariadb mysql
Licenses: BSD
Submitter: aabmass
Maintainer: loonies
Last Packager: loonies
Votes: 46
Popularity: 0.113075
First Submitted: 2015-08-05 15:33 (UTC)
Last Updated: 2024-12-30 20:49 (UTC)

Pinned Comments

loonies commented on 2019-12-06 11:43 (UTC) (edited on 2024-12-31 08:15 (UTC) by loonies)

Prior to flagging the package out-of-date or reporting build errors please:

  • Make sure that your system is up-to-date (pacman -Syu)
  • Rebuild and reinstall dependencies (especially ones from AUR)
  • Rebuild and reinstall the package

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.

Latest Comments

1 2 3 4 5 6 Next › Last »

cheezsteak commented on 2025-01-03 17:45 (UTC)

python-pyfzf seems to be a required package not optional. I've tried removing my ~/.myclirc but I can't even execute --help without that package installed.

mycli --help
Traceback (most recent call last):
  File "/usr/bin/mycli", line 5, in <module>
    from mycli.main import cli
  File "/usr/lib/python3.13/site-packages/mycli/main.py", line 56, in <module>
    from .key_bindings import mycli_bindings
  File "/usr/lib/python3.13/site-packages/mycli/key_bindings.py", line 6, in <module>
    from .packages.toolkit.fzf import search_history
  File "/usr/lib/python3.13/site-packages/mycli/packages/toolkit/fzf.py", line 3, in <module>
    from pyfzf import FzfPrompt

loonies commented on 2024-08-03 12:38 (UTC)

@olivierlm, I don't have problems building without python-setuptools-scm

$ pacman -Q python-setuptools-scm
error: package 'python-setuptools-scm' was not found

$ makepkg -c
==> Making package: mycli 1.27.2-2 (Sat 03 Aug 2024)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
--- SNIP ---
==> Leaving fakeroot environment.
==> Finished making: mycli 1.27.2-2 (Sat 03 Aug 2024)
==> Cleaning up...

olivierlm commented on 2024-06-24 13:56 (UTC)

python-setuptools-scm seems to be a missing build dependency.

gaogao_qwq commented on 2024-04-27 13:24 (UTC) (edited on 2024-04-27 14:43 (UTC) by gaogao_qwq)

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

acidrain42 commented on 2023-03-26 18:28 (UTC)

Requiring users to downgrade python-cryptography system wide to a year old version is a really bad idea. First, Arch doesn't support partial upgrades, second, this version is not available in the mirrors so users would have to compile it themselves, and third, this version is affected by a quite bad vulnerability.

I understand this restriction is from upstream, but it seems it's only a problem in their CI (to be confirmed).

Perhaps someone using the ssh features of mycli could confirm if it works even with the latest cryptography?

acidrain42 commented on 2022-06-01 22:27 (UTC) (edited on 2022-06-01 22:28 (UTC) by acidrain42)

Could you remove the tests folder (/usr/lib/python3.10/site-packages/test/) from the package?

loonies commented on 2022-05-24 18:44 (UTC)

@enkeyz - "python-cli_helpers" is in the community repository (https://archlinux.org/packages/community/any/python-cli_helpers/)

Install by executing "pacman -S python-cli_helpers"

enkeyz commented on 2022-05-09 12:43 (UTC)

Can't install, because python-cli_helpers is no longer available: https://aur.archlinux.org/packages/python-cli_helpers