[arch-commits] Commit in python-pytest-benchmark/repos/community-any (2 files)

Felix Yan felixonmars at archlinux.org
Wed Jan 9 13:16:41 UTC 2019


    Date: Wednesday, January 9, 2019 @ 13:16:33
  Author: felixonmars
Revision: 421163

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |  131 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 65 insertions(+), 66 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-01-09 13:16:11 UTC (rev 421162)
+++ PKGBUILD	2019-01-09 13:16:33 UTC (rev 421163)
@@ -1,66 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-pytest-benchmark
-pkgname=('python-pytest-benchmark' 'python2-pytest-benchmark')
-pkgver=3.1.1
-pkgrel=3
-pkgdesc='A py.test fixture for benchmarking code'
-arch=('any')
-license=('BSD')
-url='https://github.com/ionelmc/pytest-benchmark'
-makedepends=('python-pytest' 'python2-pytest' 'python2-statistics' 'python2-pathlib'
-             'python-py-cpuinfo' 'python2-py-cpuinfo')
-checkdepends=('python-pytest-cov' 'python2-pytest-cov' 'python-pygal' 'python2-pygal'
-              'python-freezegun' 'python2-freezegun' 'mercurial' 'python-aspectlib'
-              'python2-aspectlib' 'python-pytest-xdist' 'python2-pytest-xdist'
-              'python-pytest-runner' 'python2-pytest-runner' 'python-elasticsearch'
-              'python2-elasticsearch' 'python2-mock')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/ionelmc/pytest-benchmark/archive/v$pkgver.tar.gz")
-sha512sums=('4a037fc3133b93a5a5ae914c92bc03468812aaa883cfbfeca35877003ebad781ab0dd4fc941eb6d9c7c44d7bf5380585ce04392c77278c54b7b4ebe5911a09f8')
-
-prepare() {
-  cp -a pytest-benchmark-$pkgver{,-py2}
-}
-
-build() {
-  cd "$srcdir"/pytest-benchmark-$pkgver
-  python setup.py build
-
-  cd "$srcdir"/pytest-benchmark-$pkgver-py2
-  python2 setup.py build
-}
-
-check() {
-  # Hack entry points by installing it
-  # Test should be related to pytest 2.9
-
-  cd "$srcdir"/pytest-benchmark-$pkgver
-  python setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.6/site-packages:$PYTHONPATH" PATH="$PWD/tmp_install/usr/bin:$PATH" python setup.py pytest --addopts=tests || warning "Tests failed"
-
-  cd "$srcdir"/pytest-benchmark-$pkgver-py2
-  python2 setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" PATH="$PWD/tmp_install/usr/bin:$PATH" python2 setup.py pytest --addopts=tests || warning "Tests failed"
-}
-
-package_python-pytest-benchmark() {
-  depends=('python-pytest' 'python-py-cpuinfo')
-
-  cd "$srcdir"/pytest-benchmark-$pkgver
-  python setup.py install --root="$pkgdir"/ --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-pytest-benchmark() {
-  depends=('python2-pytest' 'python2-py-cpuinfo' 'python2-statistics' 'python2-pathlib')
-
-  cd "$srcdir"/pytest-benchmark-$pkgver-py2
-  python2 setup.py install --root="$pkgdir"/ --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-
-  mv "$pkgdir"/usr/bin/pytest-benchmark{,2}
-  mv "$pkgdir"/usr/bin/py.test-benchmark{,2}
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-pytest-benchmark/repos/community-any/PKGBUILD (from rev 421162, python-pytest-benchmark/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-01-09 13:16:33 UTC (rev 421163)
@@ -0,0 +1,65 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pytest-benchmark
+pkgname=('python-pytest-benchmark' 'python2-pytest-benchmark')
+pkgver=3.2.0
+pkgrel=1
+pkgdesc='A py.test fixture for benchmarking code'
+arch=('any')
+license=('BSD')
+url='https://github.com/ionelmc/pytest-benchmark'
+makedepends=('python-pytest' 'python2-pytest' 'python2-statistics' 'python2-pathlib'
+             'python-py-cpuinfo' 'python2-py-cpuinfo')
+checkdepends=('python-pytest-cov' 'python2-pytest-cov' 'python-pygal' 'python2-pygal'
+              'python-freezegun' 'python2-freezegun' 'mercurial' 'python-aspectlib'
+              'python2-aspectlib' 'python-pytest-xdist' 'python2-pytest-xdist'
+              'python-pytest-runner' 'python2-pytest-runner' 'python-elasticsearch'
+              'python2-elasticsearch' 'python2-mock' 'git')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/ionelmc/pytest-benchmark/archive/v$pkgver.tar.gz")
+sha512sums=('feddaf7479535fb895114f207f3aa5d3f47cdc7addaad3bf599ae620aa8e1f7d66eb69766f13aab62d7f9492ea6430a11f9e22cb60eb444fbdf521a4d1cd92ff')
+
+prepare() {
+  cp -a pytest-benchmark-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/pytest-benchmark-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/pytest-benchmark-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+  # https://github.com/ionelmc/pytest-benchmark/issues/143
+
+  cd "$srcdir"/pytest-benchmark-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.7/site-packages:$PYTHONPATH" PATH="$PWD/tmp_install/usr/bin:$PATH" python setup.py pytest --addopts="tests -k 'not test_commit_info_error'"
+
+  cd "$srcdir"/pytest-benchmark-$pkgver-py2
+  python2 setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" PATH="$PWD/tmp_install/usr/bin:$PATH" python2 setup.py pytest --addopts="tests -k 'not test_commit_info_error'"
+}
+
+package_python-pytest-benchmark() {
+  depends=('python-pytest' 'python-py-cpuinfo')
+
+  cd "$srcdir"/pytest-benchmark-$pkgver
+  python setup.py install --root="$pkgdir"/ --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-pytest-benchmark() {
+  depends=('python2-pytest' 'python2-py-cpuinfo' 'python2-statistics' 'python2-pathlib')
+
+  cd "$srcdir"/pytest-benchmark-$pkgver-py2
+  python2 setup.py install --root="$pkgdir"/ --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+  mv "$pkgdir"/usr/bin/pytest-benchmark{,2}
+  mv "$pkgdir"/usr/bin/py.test-benchmark{,2}
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list