[arch-commits] Commit in repod/trunk (PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Mon Aug 22 15:00:31 UTC 2022
Date: Monday, August 22, 2022 @ 15:00:31
Author: dvzrv
Revision: 1274784
upgpkg: repod 0.2.0-1: Upgrade to 0.2.0.
Use upstream justfile as it was not contained in the sdist tarball.
Modified:
repod/trunk/PKGBUILD
----------+
PKGBUILD | 54 +++++++++++++++++++++++++++++++++++++++++-------------
1 file changed, 41 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-22 14:53:17 UTC (rev 1274783)
+++ PKGBUILD 2022-08-22 15:00:31 UTC (rev 1274784)
@@ -1,34 +1,62 @@
# Maintainer: David Runge <dvzrv at archlinux.org>
pkgname=repod
-pkgver=0.1.0
+pkgver=0.2.0
pkgrel=1
pkgdesc="Tooling to maintain binary package repositories"
arch=(any)
url="https://repod.archlinux.page/"
license=(GPL3)
-depends=(pyalpm python-aiofiles python-email-validator python-jinja python-magic python-orjson python-pydantic python-pyzstd python-subprocess-tee python-tomli)
-makedepends=(python-build python-installer python-poetry python-sphinx python-sphinx-argparse python-wheel)
+depends=(
+ pyalpm
+ python-aiofiles
+ python-email-validator
+ python-jinja
+ python-magic
+ python-orjson
+ python-pydantic
+ python-pyxdg
+ python-pyzstd
+ python-subprocess-tee
+ python-tomli
+)
+makedepends=(
+ just
+ python-build
+ python-installer
+ python-poetry-core
+ python-setuptools
+ python-sphinx
+ python-sphinx-argparse
+ python-sphinxcontrib-programoutput
+ python-wheel
+)
checkdepends=(python-pytest python-pytest-asyncio python-pytest-lazy-fixture)
-source=(https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz)
-sha256sums=('6fcaf6d9bbebb8b4f48f993b9738839154fb86b31c1d89b63d988a57965e0228')
-b2sums=('8ea533427fd8975df40938048d45e624fd475f38eabebe8c8798a8d09d5eb6e9fff0c6b37b7c80190c117cb1cff489a0fed698f6ed90cbf5aea966ffab7ba0e3')
+source=(
+ https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz
+ https://gitlab.archlinux.org/archlinux/repod/-/raw/97ba3cf2cebda36d15da4aa55a2ef6b213ca0878/justfile
+)
+sha256sums=('dd8a0d603df5da53378d48c92b6c779d8e03c5b51997c3ea35b3fc0350ca0909'
+ '8b9b119213ec07270ebc830abcbdda3748ef74440c53e24625344008a356d4cc')
+b2sums=('e62bacfc5a1ec7307f60c43a4e4426b477af4950b0abb46707e8e7fefdcc2ee8cd948af2c8b28fd9b3138b6df5c2cb9a89778ac085b5bccc90c09a94baa95cd6'
+ '13fcad256538d81391d12f7fe1574cf570bb09bd5da96bd20a736872d070d17ccc9266294993a4c828220735c40f1c2e983e1e3e7ee3e3a0c4531b30462b8b2a')
+prepare() {
+ cp -v justfile $pkgname-$pkgver
+ sed -e '12d' -i $pkgname-$pkgver/justfile
+}
+
build() {
cd $pkgname-$pkgver
- python -m build --wheel --no-isolation
-
- python -c 'from repod import export_schemas; from pathlib import Path; export_schemas(Path("docs/schema/"))'
- PYTHONPATH="$PWD:$PYTHONPATH" make man -C docs
+ just build
}
check() {
cd $pkgname-$pkgver
- pytest -vv -k 'not (integration or regex)'
+ just check
}
package() {
cd $pkgname-$pkgver
- python -m installer --destdir="$pkgdir" dist/*.whl
- install -vDm 644 docs/_build/man/man1/*.1 -t "$pkgdir/usr/share/man/man1/"
+ just --set destdir "$pkgdir" install
}
More information about the arch-commits
mailing list