Package Details: python-rich-click 1.8.8-3

Git Clone URL: https://aur.archlinux.org/python-rich-click.git (read-only, click to copy)
Package Base: python-rich-click
Description: Python module to format click help output nicely with Rich.
Upstream URL: https://github.com/ewels/rich-click
Keywords: cli formatting library output python
Licenses: MIT
Submitter: GI_Jack
Maintainer: redponike
Last Packager: redponike
Votes: 1
Popularity: 0.000914
First Submitted: 2022-06-28 16:37 (UTC)
Last Updated: 2025-04-15 23:10 (UTC)

Latest Comments

« First ‹ Previous 1 2

<deleted-account> commented on 2024-01-17 21:08 (UTC)

Found 1 error in 1 file (checked 17 source files)
=============================================================================== 2 failed, 83 passed, 1 skipped, 37 warnings in 155.06s (0:02:35) ===============================================================================
==> FEHLER: Ein Fehler geschah in check().
    Breche ab...
Fehler: ‚python-rich-click-1.7.3-2‘ konnte nicht erstellt werden: 
Fehler: Pakete konnten nicht erstellt werden: python-rich-click-1.7.3-2

carsme commented on 2024-01-08 11:45 (UTC)

Hey, some suggested changes to the PKGBUILD:

  • Set license=('any') - this is a pure Python package and as such architecture independent.
  • Add testing, see below.
  • Install license - MIT licenses must be installed as they are considered bespoke for each project.
  • Use the PEP 517 way of building/installing the package, see below.
  • Remove python-importlib-metadata dependency, only needed for Python < 3.8.

Here's a PKGBUILD with the suggested changes applied:

pkgname=python-rich-click
_pkgname=rich-click
pkgver=1.7.3
pkgrel=1
pkgdesc="Python module to format click help output nicely with Rich."
arch=('any')
url="https://github.com/ewels/rich-click"
license=('MIT')
depends=(
  'python'
  'python-click'
  'python-rich'
  'python-typing-extensions'
)
makedepends=(
  'python-build'
  'python-installer'
  'python-setuptools'
  'python-wheel'
)
checkdepends=(
  'python-pytest'
)
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('a55419359e4b30da0cf3156977885b784530edaf648030f509acb165fb8fb589')

build() {
  cd "${_pkgname}-${pkgver}"

  python -m build --wheel --no-isolation
}

check() {
  cd "${_pkgname}-${pkgver}"

  pytest
}

package() {
  cd "${_pkgname}-${pkgver}"

  python -m installer --destdir="${pkgdir}" dist/*.whl

  install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
}

Feel free to add me as co-maintainer if you'd like. Thanks!