* update python-hatch-fancy-pypi-readme to 24.1.0-1
This commit is contained in:
parent
e5dbae8ede
commit
c20cb6cc97
@ -1,32 +1,47 @@
|
||||
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
||||
# Maintainer:
|
||||
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
||||
|
||||
pkgname=python-hatch-fancy-pypi-readme
|
||||
pkgver=23.1.0
|
||||
pkgver=24.1.0
|
||||
pkgrel=1
|
||||
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=('735b096c20d8b2ece32d9ab8e695cbfccb54d704770afb8f67f90a9236503811')
|
||||
license=('MIT')
|
||||
depends=('python' 'python-hatchling')
|
||||
makedepends=(
|
||||
'git'
|
||||
'python-build'
|
||||
'python-installer'
|
||||
)
|
||||
checkdepends=('python-pytest' 'python-wheel')
|
||||
_commit='c340dcb0019cae8444fd390929f88ee647ac840d'
|
||||
source=("$pkgname::git+$url#commit=$_commit")
|
||||
b2sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$pkgname"
|
||||
|
||||
git describe --tags | sed 's/^v//'
|
||||
}
|
||||
|
||||
build() {
|
||||
cd hatch-fancy-pypi-readme-$pkgver
|
||||
cd "$pkgname"
|
||||
|
||||
python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
check() {
|
||||
cd hatch-fancy-pypi-readme-$pkgver
|
||||
PYTHONPATH="$PWD"/src \
|
||||
pytest -v
|
||||
cd "$pkgname"
|
||||
|
||||
PYTHONPATH="$(pwd)/src" pytest -v
|
||||
}
|
||||
|
||||
package() {
|
||||
cd hatch-fancy-pypi-readme-$pkgver
|
||||
cd "$pkgname"
|
||||
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
|
||||
# license
|
||||
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user