Date: Thursday, April 6, 2023 @ 01:49:51
  Author: felixonmars
Revision: 1438034

archrelease: copy trunk to community-staging-any

Added:
  python-hatch-fancy-pypi-readme/repos/community-staging-any/
  python-hatch-fancy-pypi-readme/repos/community-staging-any/PKGBUILD
    (from rev 1438033, python-hatch-fancy-pypi-readme/trunk/PKGBUILD)

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Copied: python-hatch-fancy-pypi-readme/repos/community-staging-any/PKGBUILD 
(from rev 1438033, python-hatch-fancy-pypi-readme/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-06 01:49:51 UTC (rev 1438034)
@@ -0,0 +1,31 @@
+# Maintainer:
+
+pkgname=python-hatch-fancy-pypi-readme
+pkgver=22.8.0
+pkgrel=2
+pkgdesc='Fancy PyPI READMEs with Hatch'
+arch=(any)
+url='https://github.com/hynek/hatch-fancy-pypi-readme'
+license=(MIT)
+depends=(python-hatchling)
+makedepends=(python-build python-installer)
+checkdepends=(python-pytest python-wheel)
+source=(https://github.com/hynek/hatch-fancy-pypi-readme/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('4563ec6793d10b076f6f2e5a4ab576b6005ac0ed15b5ed108b62901e82880685')
+
+build() {
+  cd hatch-fancy-pypi-readme-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd hatch-fancy-pypi-readme-$pkgver
+  PYTHONPATH="$PWD"/src \
+  pytest -v
+}
+
+package() {
+  cd hatch-fancy-pypi-readme-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Reply via email to