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

Evangelos Foutras foutrelis at gemini.archlinux.org
Wed Dec 1 14:48:17 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:48:16
  Author: foutrelis
Revision: 1059323

archrelease: copy trunk to community-staging-any

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

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Copied: python-pytest-randomly/repos/community-staging-any/PKGBUILD (from rev 1059322, python-pytest-randomly/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:48:16 UTC (rev 1059323)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-randomly
+pkgver=3.9.0
+pkgrel=2
+pkgdesc='Pytest plugin to randomly order tests and control random.seed'
+arch=('any')
+license=('MIT')
+url='https://github.com/pytest-dev/pytest-randomly'
+depends=('python-importlib-metadata' 'python-pytest')
+makedepends=('python-setuptools')
+checkdepends=('python-factory-boy' 'python-faker' 'python-numpy' 'python-pytest-xdist')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-randomly/archive/$pkgver.tar.gz")
+sha512sums=('a6a75a9047d9cf60cc3f51c1ca77f284a91573ddd4e803befb52ce45404a20bb6e30546df0365c6a5a9c2d04d0a4b7a9ac9334a7d81d0d08eb88ba344fdef3da')
+
+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