Date: Sunday, April 23, 2023 @ 06:34:44
  Author: polyzen
Revision: 1448362

archrelease: copy trunk to community-staging-any

Added:
  python-pytest-benchmark/repos/community-staging-any/PKGBUILD
    (from rev 1448361, python-pytest-benchmark/trunk/PKGBUILD)
Deleted:
  python-pytest-benchmark/repos/community-staging-any/PKGBUILD

----------+
 PKGBUILD |   82 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 45 insertions(+), 37 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-23 06:34:21 UTC (rev 1448361)
+++ PKGBUILD    2023-04-23 06:34:44 UTC (rev 1448362)
@@ -1,37 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-pytest-benchmark
-pkgver=4.0.0
-pkgrel=2
-pkgdesc='A py.test fixture for benchmarking code'
-arch=('any')
-license=('BSD')
-url='https://github.com/ionelmc/pytest-benchmark'
-depends=('python-pytest' 'python-py-cpuinfo')
-makedepends=('python-setuptools')
-checkdepends=('python-pygal' 'python-pygaljs' 'python-freezegun' 'mercurial' 
'python-aspectlib'
-              'python-pytest-xdist' 'python-elasticsearch' 'git')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/ionelmc/pytest-benchmark/archive/v$pkgver.tar.gz";)
-sha512sums=('88636e44c184f5072ad081a89f08e8838a11397e6b88298d7f235b531f894792001b858fc5c810b1399d41ec55de5db9057552fb7544fb405a04c3ba5ffbe329')
-
-build() {
-  cd pytest-benchmark-$pkgver
-  python setup.py build
-}
-
-check() {
-  # Hack entry points by installing it
-
-  cd pytest-benchmark-$pkgver
-  python setup.py install --root="$PWD/tmp_install" --optimize=1
-  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
-  PYTHONPATH="$PWD/tmp_install/$site_packages:$PYTHONPATH" 
PATH="$PWD/tmp_install/usr/bin:$PATH" python -m pytest tests
-}
-
-package() {
-  cd "$srcdir"/pytest-benchmark-$pkgver
-  python setup.py install --root="$pkgdir"/ --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-pytest-benchmark/repos/community-staging-any/PKGBUILD (from rev 
1448361, python-pytest-benchmark/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-04-23 06:34:44 UTC (rev 1448362)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-pytest-benchmark
+pkgver=4.0.0
+pkgrel=4
+pkgdesc='A py.test fixture for benchmarking code'
+arch=('any')
+license=('BSD')
+url='https://github.com/ionelmc/pytest-benchmark'
+depends=('python-pytest' 'python-py-cpuinfo')
+makedepends=('python-setuptools')
+checkdepends=('python-pygal' 'python-pygaljs' 'python-freezegun' 'mercurial' 
'python-aspectlib'
+              'python-pytest-xdist' 'python-elasticsearch' 'git')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ionelmc/pytest-benchmark/archive/v$pkgver.tar.gz";
+        
'pytest-benchmark-backport-232.patch::https://github.com/ionelmc/pytest-benchmark/pull/232.patch')
+sha512sums=('88636e44c184f5072ad081a89f08e8838a11397e6b88298d7f235b531f894792001b858fc5c810b1399d41ec55de5db9057552fb7544fb405a04c3ba5ffbe329'
+            
'f8a0ea70dd0a29b65b4755e491b3ffc201f4dcc15673d821f1c708ca9a376877a2931fddadbfacbe41f3503b25ad5099fe9bc04bb6fe7399f12ae2b4a6d07257')
+
+prepare() {
+  cd pytest-benchmark-$pkgver
+  sed -i '/ error/d' pytest.ini
+  patch --forward --strip=1 --input=../pytest-benchmark-backport-232.patch
+}
+
+build() {
+  cd pytest-benchmark-$pkgver
+  python setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd pytest-benchmark-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+  PYTHONPATH="$PWD/tmp_install/$site_packages:$PYTHONPATH" 
PATH="$PWD/tmp_install/usr/bin:$PATH" python -m pytest tests
+}
+
+package() {
+  cd "$srcdir"/pytest-benchmark-$pkgver
+  python setup.py install --root="$pkgdir"/ --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:

Reply via email to