Date: Monday, April 17, 2023 @ 09:19:16
  Author: dvzrv
Revision: 1446667

archrelease: copy trunk to community-staging-any

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

----------+
 PKGBUILD |  118 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 58 insertions(+), 60 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-17 09:19:05 UTC (rev 1446666)
+++ PKGBUILD    2023-04-17 09:19:16 UTC (rev 1446667)
@@ -1,60 +0,0 @@
-# Maintainer: David Runge <[email protected]>
-
-_name=lazr.config
-pkgname=python-lazr.config
-pkgver=2.2.3
-pkgrel=4
-pkgdesc="Create configuration schemas, and process and validate configurations"
-arch=(any)
-url="https://launchpad.net/lazr.config";
-license=(LGPL3)
-depends=(
-  python
-  python-lazr.delegates
-  python-zope-interface
-)
-makedepends=(
-  python-build
-  python-installer
-  python-setuptools
-  python-wheel
-)
-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=('cd8edc29a811b658045f314b2de4317bd750a701c2596d89912948fe0e58bdc39ad3d22cdf34bb7e46658af7ac6d32249e454c35bdcf72bc5053094343cd37bb'
-            'SKIP')
-b2sums=('029bdec3ac4f937f439f833f51e44a58f4604f337979c9f06695e7a243b2cde0af39a46139af5e88052e8585d2729c1b328df89979c9ff100338ec557e841b71'
-        'SKIP')
-validpgpkeys=('AC0A4FF12611B6FCCF01C111393587D97D86500B') # Colin Watson 
<[email protected]>
-
-prepare() {
-  cd $_name-$pkgver
-  # we do not care about coverage in testing
-  # doctests with nose (lol) are broken
-  # we *do not* want to use PDB in packaging either... -_-
-  sed -e '/coverage/d;/doctest/d;/pdb/d' -i setup.cfg
-}
-
-build() {
-  cd $_name-$pkgver
-  python -m build --wheel --no-isolation
-}
-
-check() {
-  cd $_name-$pkgver
-  # NOTE: tests are broken: https://bugs.launchpad.net/lazr.config/+bug/2015628
-  # nosetests -P lazr
-}
-
-package() {
-  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
-
-  cd $_name-$pkgver
-  python -m installer --destdir="$pkgdir" dist/*.whl
-  install -vDm 644 {HACKING,NEWS,README}.rst -t 
"$pkgdir/usr/share/doc/$pkgname/"
-  rm -frv "$pkgdir/$site_packages/lazr/config/tests"
-}

Copied: python-lazr.config/repos/community-staging-any/PKGBUILD (from rev 
1446666, python-lazr.config/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-04-17 09:19:16 UTC (rev 1446667)
@@ -0,0 +1,58 @@
+# Maintainer: David Runge <[email protected]>
+
+_name=lazr.config
+pkgname=python-lazr.config
+pkgver=3.0
+pkgrel=2
+pkgdesc="Create configuration schemas, and process and validate configurations"
+arch=(any)
+url="https://launchpad.net/lazr.config";
+license=(LGPL3)
+depends=(
+  python
+  python-lazr.delegates
+  python-setuptools
+  python-zope-interface
+)
+makedepends=(
+  python-build
+  python-installer
+  python-wheel
+)
+checkdepends=(
+  python-zope-testrunner
+)
+provides=(python-lazr-config)
+replaces=(python-lazr-config)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz{,.asc})
+sha512sums=('15f61ca9e53e0677e228365318b99c1a65f674bf82dc1f8210335f93f4c74da2e9b09d8f8650506a133db85c45bfba12ff28ad3bc7c56edcf8c6e19c152f13f9'
+            'SKIP')
+b2sums=('538ab2e5f45c062dce8a53554eb646909940b41f8f5ae74038771a0cbb35b93878672b06bf967ecfc23232278aa86521def56dd1dfcab32668adb1fb73a72eee'
+        'SKIP')
+validpgpkeys=(
+  AC0A4FF12611B6FCCF01C111393587D97D86500B  # Colin Watson 
<[email protected]>
+  760D8F2C93E9CA8562E4A00E75D673C2DD1FB761  # Jürgen Gmach 
<[email protected]>
+)
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+
+  cd $_name-$pkgver
+  python -m installer --destdir=test_dir dist/*.whl
+  export PYTHONPATH="$PWD/test_dir/$site_packages:$PYTHONPATH"
+  python -m zope.testrunner --test-path src --tests-pattern ^tests
+}
+
+package() {
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 {NEWS,README}.rst -t "$pkgdir/usr/share/doc/$pkgname/"
+  rm -frv "$pkgdir/$site_packages/lazr/config/tests"
+}

Reply via email to