[arch-commits] Commit in python-pytest-randomly/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Nov 10 04:58:59 UTC 2020
Date: Tuesday, November 10, 2020 @ 04:58:59
Author: felixonmars
Revision: 749210
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 749207, python-pytest-randomly/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: python-pytest-randomly/repos/community-staging-any/PKGBUILD (from rev 749207, python-pytest-randomly/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-10 04:58:59 UTC (rev 749210)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-randomly
+pkgver=3.4.1
+pkgrel=2
+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')
+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=('3f1006ce67478221fb57369f6b0dcbb41bdd38798059112cff2e113ab101a4d07e72e5f302ffdf6159cc8600999f691f0f665fda4c0fcf58bba3c4fe5a12c039')
+
+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