diff options
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 42 |
3 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ea7605daa1f0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +# Generated by mksrcinfo v8 +# Sun Mar 3 02:09:34 UTC 2019 +pkgbase = python-pytest-ordering + pkgdesc = py.test plugin to run your tests in a specific order + pkgver = 0.6 + pkgrel = 1 + url = https://github.com/ftobia/pytest-ordering + arch = any + license = MIT + makedepends = python-setuptools + makedepends = python2-setuptools + makedepends = python-pytest + makedepends = python2-pytest + source = https://files.pythonhosted.org/packages/source/p/pytest-ordering/pytest-ordering-0.6.tar.gz + sha512sums = 2529e5f96b1a62b28ea4ab30ebcbe6c93f193e547650c24e25840616f92a5f8b246b80216dec8762558bbd0b353619acec06809051845c62f9dacc0fbd4c720b + +pkgname = python-pytest-ordering + depends = python-pytest + +pkgname = python2-pytest-ordering + depends = python2-pytest + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..5b9d9b45adf7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +.*.swp +.*.swo +src/ +pkg/ +*.tar.xz +*.tar.gz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4b862a21a635 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: redfish <redfish@galactica.pw> + +pkgbase=python-pytest-ordering +pkgname=('python-pytest-ordering' 'python2-pytest-ordering') +_name=pytest-ordering +pkgver=0.6 +pkgrel=1 +pkgdesc='py.test plugin to run your tests in a specific order' +arch=('any') +license=('MIT') +url='https://github.com/ftobia/pytest-ordering' +makedepends=('python-setuptools' 'python2-setuptools' + 'python-pytest' 'python2-pytest') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz") +sha512sums=('2529e5f96b1a62b28ea4ab30ebcbe6c93f193e547650c24e25840616f92a5f8b246b80216dec8762558bbd0b353619acec06809051845c62f9dacc0fbd4c720b') + +prepare() { + cp -a pytest-ordering-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/pytest-ordering-$pkgver + python setup.py build + + cd "$srcdir"/pytest-ordering-$pkgver-py2 + python2 setup.py build +} + +package_python-pytest-ordering() { + depends=('python-pytest') + + cd pytest-ordering-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +} + +package_python2-pytest-ordering() { + depends=('python2-pytest') + + cd pytest-ordering-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 +} +# vim:set ts=2 sw=2 et: |