[arch-commits] Commit in python-lazr.config/repos/community-staging-any (2 files)

Felix Yan felixonmars at archlinux.org
Sun Nov 15 21:54:15 UTC 2020


    Date: Sunday, November 15, 2020 @ 21:54:15
  Author: felixonmars
Revision: 754803

archrelease: copy trunk to community-staging-any

Added:
  python-lazr.config/repos/community-staging-any/PKGBUILD
    (from rev 754802, python-lazr.config/trunk/PKGBUILD)
Deleted:
  python-lazr.config/repos/community-staging-any/PKGBUILD

----------+
 PKGBUILD |   92 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 47 insertions(+), 45 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-15 21:54:08 UTC (rev 754802)
+++ PKGBUILD	2020-11-15 21:54:15 UTC (rev 754803)
@@ -1,45 +0,0 @@
-# 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}"
-}

Copied: python-lazr.config/repos/community-staging-any/PKGBUILD (from rev 754802, python-lazr.config/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-11-15 21:54:15 UTC (rev 754803)
@@ -0,0 +1,47 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=lazr.config
+pkgname=python-lazr.config
+pkgver=2.2.2
+pkgrel=4
+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')
+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')
+b2sums=('5bfee9ae556e6b4109fa43ca36cc2676fb805dc6b9d9f788224ccd29e7836313affa55dd031496c2a252c5e64b150fd8f21c2934da3699ba95e0968ee8022879'
+        'SKIP')
+validpgpkeys=('AC0A4FF12611B6FCCF01C111393587D97D86500B')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+  # we do not care about coverage in testing
+  sed -e '/coverage/d' -i setup.cfg
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  nosetests -P lazr
+}
+
+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