diff options
Diffstat (limited to 'community/py3-rich/APKBUILD')
-rw-r--r-- | community/py3-rich/APKBUILD | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/community/py3-rich/APKBUILD b/community/py3-rich/APKBUILD index beba480f8de..e335a2c42b1 100644 --- a/community/py3-rich/APKBUILD +++ b/community/py3-rich/APKBUILD @@ -1,30 +1,38 @@ # Contributor: Leo <thinkabit.ukim@gmail.com> -# Maintainer: Leo <thinkabit.ukim@gmail.com> +# Maintainer: Duncan Bellamy <dunk@denkimushi.com> pkgname=py3-rich -_pkgname=rich -pkgver=10.1.0 +pkgver=13.7.1 pkgrel=1 pkgdesc="Python library for rich text formatting and terminal formatting" -options="!check" # Testsuite not present in pypi tarball and uses poetry url="https://rich.readthedocs.io/en/latest/" arch="noarch" license="MIT" depends=" - py3-colorama - py3-commonmark + py3-markdown-it-py py3-pygments - py3-typing-extensions " -makedepends="py3-setuptools" -source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver" +makedepends="py3-gpep517 py3-installer py3-poetry-core py3-wheel" +checkdepends="py3-pytest py3-setuptools" +subpackages="$pkgname-pyc" +source="$pkgname-$pkgver.tar.gz::https://github.com/willmcgugan/rich/archive/refs/tags/v$pkgver.tar.gz" +builddir="$srcdir/rich-$pkgver" build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 1>&2 +} + +check() { + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + .testenv/bin/python3 -m pytest -k 'not test_python_render_simple_indent_guides and not test_python_render_line_range_indent_guides' } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" + python3 -m installer -d "$pkgdir" .dist/*.whl } -sha512sums="8e4cc075aa8ac8b3065d47e95637b12ae91c2f68dd42e1f717be2fa5154b653857126733ee874710eef99f95bb1c406cf56f681179e4fdf884155b4586859746 rich-10.1.0.tar.gz" +sha512sums=" +0c69101bc6c2a238a4c516812cda08299115b903b8282ee348b45b212a88fcbfbf69d11a3705a97bdb6192988ee3047804bb5b52b7950d860542cde8ce2d4bd2 py3-rich-13.7.1.tar.gz +" |