Date: Wednesday, December 25, 2019 @ 21:28:57 Author: felixonmars Revision: 541243
archrelease: copy trunk to community-any Added: python-pytest-mock/repos/community-any/PKGBUILD (from rev 541242, python-pytest-mock/trunk/PKGBUILD) Deleted: python-pytest-mock/repos/community-any/PKGBUILD ----------+ PKGBUILD | 108 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 54 insertions(+), 54 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-12-25 21:28:47 UTC (rev 541242) +++ PKGBUILD 2019-12-25 21:28:57 UTC (rev 541243) @@ -1,54 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-pytest-mock -pkgname=('python-pytest-mock' 'python2-pytest-mock') -pkgver=1.11.2 -pkgrel=1 -pkgdesc="Thin-wrapper around the mock package for easier use with py.test" -arch=('any') -license=('LGPL3') -url="https://github.com/pytest-dev/pytest-mock/" -makedepends=('python-pytest' 'python2-pytest' 'python2-mock' 'python-setuptools-scm' - 'python2-setuptools-scm') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-mock/archive/v$pkgver.tar.gz") -sha512sums=('903a7c742aa86e4f50cb3b8705f873295a77000243385e9a5527bafa4c3e6c8724ab3c38cf5e9c4938ed9128159821c91a51db8f32457c87dcf5a7e7dbb1362c') - -export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver - -prepare() { - cp -a pytest-mock-$pkgver{,-py2} -} - -build() { - cd "$srcdir"/pytest-mock-$pkgver - python setup.py build - - cd "$srcdir"/pytest-mock-$pkgver-py2 - python2 setup.py build -} - -check() { - # Hack entry points by installing it - - cd "$srcdir"/pytest-mock-$pkgver - python setup.py install --root="$PWD/tmp_install" --optimize=1 - PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH:$PWD/tests" py.test - - cd "$srcdir"/pytest-mock-$pkgver-py2 - python2 setup.py install --root="$PWD/tmp_install" --optimize=1 - PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH:$PWD/tests" py.test2 -} - -package_python-pytest-mock() { - depends=('python-pytest') - - cd pytest-mock-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 -} - -package_python2-pytest-mock() { - depends=('python2-pytest' 'python2-mock') - - cd pytest-mock-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 -} Copied: python-pytest-mock/repos/community-any/PKGBUILD (from rev 541242, python-pytest-mock/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-12-25 21:28:57 UTC (rev 541243) @@ -0,0 +1,54 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-pytest-mock +pkgname=('python-pytest-mock' 'python2-pytest-mock') +pkgver=1.12.0 +pkgrel=1 +pkgdesc="Thin-wrapper around the mock package for easier use with py.test" +arch=('any') +license=('LGPL3') +url="https://github.com/pytest-dev/pytest-mock/" +makedepends=('python-pytest' 'python2-pytest' 'python2-mock' 'python-setuptools-scm' + 'python2-setuptools-scm') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-mock/archive/v$pkgver.tar.gz") +sha512sums=('50c06e11cb73190125176d9924c5fab7fa9525d886b28eccef38ed91cdf8b10cdc6f58739240e332211f6ed4663d78a7b3da27a2200d6d31aeddc47c7368ab8f') + +export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver + +prepare() { + cp -a pytest-mock-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/pytest-mock-$pkgver + python setup.py build + + cd "$srcdir"/pytest-mock-$pkgver-py2 + python2 setup.py build +} + +check() { + # Hack entry points by installing it + + cd "$srcdir"/pytest-mock-$pkgver + python setup.py install --root="$PWD/tmp_install" --optimize=1 + PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH:$PWD/tests" py.test + + cd "$srcdir"/pytest-mock-$pkgver-py2 + python2 setup.py install --root="$PWD/tmp_install" --optimize=1 + PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH:$PWD/tests" py.test2 +} + +package_python-pytest-mock() { + depends=('python-pytest') + + cd pytest-mock-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +} + +package_python2-pytest-mock() { + depends=('python2-pytest' 'python2-mock') + + cd pytest-mock-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 +}