[arch-commits] Commit in python-lazr.config/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 9 20:20:18 UTC 2020
Date: Monday, November 9, 2020 @ 20:20:18
Author: felixonmars
Revision: 748196
archrelease: copy trunk to community-staging-any
Added:
python-lazr.config/repos/community-staging-any/
python-lazr.config/repos/community-staging-any/PKGBUILD
(from rev 748191, python-lazr.config/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: python-lazr.config/repos/community-staging-any/PKGBUILD (from rev 748191, python-lazr.config/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 20:20:18 UTC (rev 748196)
@@ -0,0 +1,45 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=lazr.config
+pkgname=python-lazr.config
+pkgver=2.2.2
+pkgrel=3
+pkgdesc="Create configuration schemas, and process and validate configurations"
+arch=('any')
+url="https://launchpad.net/lazr.config"
+license=('LGPL3')
+depends=('python-lazr.delegates' 'python-zope-interface')
+makedepends=('python-setuptools')
+checkdepends=('python-nose' 'python-coverage' 'python-tox')
+provides=('python-lazr-config')
+replaces=('python-lazr-config')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"{,.asc})
+sha512sums=('3427d2be4b4763238bd8378ec5936d38d0b944074d56f6ada55d0e3f232fe0846630a0ef3900c169b58092d029297d7c937ea4ad349aaa2745ed25b71df9c7a0'
+ 'SKIP')
+validpgpkeys=('AC0A4FF12611B6FCCF01C111393587D97D86500B')
+
+prepare() {
+ mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ export PYTHONPATH="build:${PYTHONPATH}"
+ # TODO: this is ugly, but tests won't run either with pytest nor using nose
+ # directly for some reason, due to coverage import errors
+ tox -e py39
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+ install -vDm 644 {HACKING,NEWS,README}.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
More information about the arch-commits
mailing list