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

Felix Yan felixonmars at archlinux.org
Fri Feb 28 12:21:03 UTC 2020


    Date: Friday, February 28, 2020 @ 12:21:02
  Author: felixonmars
Revision: 585783

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   69 ++++++++++++++++++++++++++++---------------------------------
 1 file changed, 32 insertions(+), 37 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-28 12:20:46 UTC (rev 585782)
+++ PKGBUILD	2020-02-28 12:21:02 UTC (rev 585783)
@@ -1,37 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-pytest-randomly
-pkgver=3.1.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-entrypoints' 'python-faker' 'python-numpy' 'python-factory-boy')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-randomly/archive/$pkgver.tar.gz")
-sha512sums=('dc5272f343a660125241d20cfe6cd98aff59749b491b5f86f9acddfe2c464d5f03a378365e30e385db043131ea03f47d620e8370611e9c5157eae7295fe59850')
-
-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() {
-  cd pytest-randomly-$pkgver
-  python setup.py egg_info
-  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:

Copied: python-pytest-randomly/repos/community-any/PKGBUILD (from rev 585782, python-pytest-randomly/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-02-28 12:21:02 UTC (rev 585783)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-randomly
+pkgver=3.2.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-factory-boy' 'python-faker' 'python-numpy')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-randomly/archive/$pkgver.tar.gz")
+sha512sums=('899c3036b14ac21345c75ff7e7232acc3254390b0ac3262a989c50acc4cf3ed506c5cd5c1e36ba513761e20ae27e586b7b370e4d920270ead8652d29bf72ffce')
+
+build() {
+  cd pytest-randomly-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd pytest-randomly-$pkgver
+  # TODO: Understand why...
+  PYTHONPATH="$PWD/src" pytest --deselect tests/test_pytest_randomly.py::test_entrypoint_injection
+}
+
+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