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

Felix Yan felixonmars at archlinux.org
Thu Feb 27 09:06:32 UTC 2020


    Date: Thursday, February 27, 2020 @ 09:06:32
  Author: felixonmars
Revision: 583687

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   91 ++++++++++++++++++++++++++-----------------------------------
 1 file changed, 39 insertions(+), 52 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-27 09:06:16 UTC (rev 583686)
+++ PKGBUILD	2020-02-27 09:06:32 UTC (rev 583687)
@@ -1,52 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-pytest-randomly
-pkgname=('python-pytest-randomly' 'python2-pytest-randomly')
-pkgver=2.1.1
-pkgrel=4
-pkgdesc='Pytest plugin to randomly order tests and control random.seed'
-arch=('any')
-license=('BSD')
-url='https://github.com/pytest-dev/pytest-randomly'
-makedepends=('python-pytest' 'python2-pytest')
-checkdepends=('python-faker' 'python-numpy' 'python-factory-boy')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-randomly/archive/$pkgver.tar.gz")
-sha512sums=('4b5eb3d7f0032827a7a923fc587bafdcafab4faad399e5ac8f212359dd3d25ee4d6824ec5bd85cb232f3bab75c0bdb2eeaeca9e3d98716fbdcebab82c703fe34')
-
-prepare() {
-  cp -a pytest-randomly-$pkgver{,-py2}
-}
-
-build() {
-  cd "$srcdir"/pytest-randomly-$pkgver
-  python setup.py build
-
-  cd "$srcdir"/pytest-randomly-$pkgver-py2
-  python2 setup.py build
-}
-
-check() {
-  # Hack entry points by installing it
-
-  cd pytest-randomly-$pkgver
-  python setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH" py.test
-}
-
-package_python-pytest-randomly() {
-  depends=('python-pytest')
-
-  cd pytest-randomly-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-pytest-randomly() {
-  depends=('python2-pytest')
-
-  cd pytest-randomly-$pkgver-py2
-  python2 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-randomly/repos/community-any/PKGBUILD (from rev 583686, python-pytest-randomly/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-02-27 09:06:32 UTC (rev 583687)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-randomly
+pkgver=3.0.0
+pkgrel=1
+pkgdesc='Pytest plugin to randomly order tests and control random.seed'
+arch=('any')
+license=('BSD')
+url='https://github.com/pytest-dev/pytest-randomly'
+depends=('python-pytest')
+checkdepends=('python-faker' 'python-numpy' 'python-factory-boy')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-randomly/archive/$pkgver.tar.gz")
+sha512sums=('feef2c4f525065f141e748eff483308ec1c2119d835b114915f5684c5a554829214cd90b6d6e72fa49e65296261618f9a62a5de3912ee3028e11e6a020ff71ec')
+
+prepare() {
+  cd pytest-randomly-$pkgver
+  sed -i 's/pytest.py: error: argument --randomly-seed/pytest: error: argument --randomly-seed/' test_pytest_randomly.py
+}
+
+build() {
+  cd pytest-randomly-$pkgver
+  python setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd pytest-randomly-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH" pytest
+}
+
+package() {
+  cd pytest-randomly-$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:



More information about the arch-commits mailing list