Date: Thursday, December 9, 2021 @ 00:52:37 Author: felixonmars Revision: 1065738
archrelease: copy trunk to community-staging-any Added: python-pytest-mypy/repos/community-staging-any/PKGBUILD (from rev 1065737, python-pytest-mypy/trunk/PKGBUILD) Deleted: python-pytest-mypy/repos/community-staging-any/PKGBUILD ----------+ PKGBUILD | 81 +++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 44 insertions(+), 37 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-12-09 00:52:27 UTC (rev 1065737) +++ PKGBUILD 2021-12-09 00:52:37 UTC (rev 1065738) @@ -1,37 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgname=python-pytest-mypy -pkgver=0.8.1 -pkgrel=2 -pkgdesc='Mypy static type checker plugin for Pytest' -arch=('any') -license=('MIT') -url='https://github.com/dbader/pytest-mypy' -depends=('mypy' 'python-filelock' 'python-pytest') -makedepends=('python-setuptools-scm') -checkdepends=('python-pytest-xdist' 'python-pexpect') -source=("$pkgname-$pkgver.tar.gz::https://github.com/dbader/pytest-mypy/archive/v$pkgver.tar.gz") -sha512sums=('69f6ddf605bfcd075d6780f516f2f9821675762f8fee6a3d042f450f3544d8565ea0a3a905b5dd5d560278bffc28773faba9a09554ac9758ffcc24d13e3f316e') - -export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver - -build() { - cd pytest-mypy-$pkgver - python setup.py build -} - -check() { - # Hack entry points by installing it - - cd pytest-mypy-$pkgver - python setup.py install --root="$PWD/tmp_install" --optimize=1 - PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH" pytest -} - -package() { - cd pytest-mypy-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 - install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ -} - -# vim:set ts=2 sw=2 et: Copied: python-pytest-mypy/repos/community-staging-any/PKGBUILD (from rev 1065737, python-pytest-mypy/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-12-09 00:52:37 UTC (rev 1065738) @@ -0,0 +1,44 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-pytest-mypy +pkgver=0.8.1 +pkgrel=3 +pkgdesc='Mypy static type checker plugin for Pytest' +arch=('any') +license=('MIT') +url='https://github.com/dbader/pytest-mypy' +depends=('mypy' 'python-filelock' 'python-pytest') +makedepends=('python-setuptools-scm') +checkdepends=('python-pytest-xdist' 'python-pexpect') +source=("$pkgname-$pkgver.tar.gz::https://github.com/dbader/pytest-mypy/archive/v$pkgver.tar.gz" + $pkgname-mypy-0.9x.patch::https://github.com/dbader/pytest-mypy/commit/4b0a8bf541bd.patch) +sha512sums=('69f6ddf605bfcd075d6780f516f2f9821675762f8fee6a3d042f450f3544d8565ea0a3a905b5dd5d560278bffc28773faba9a09554ac9758ffcc24d13e3f316e' + 'b1afc1fe631b636692998f019d803ec751cf5476e9feeb1263ac177022bfe3fafec8423d67ba52288d2ed687fdf1159911a3d04f0556f1f919afdf6e2a262d27') + +export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver + +prepare() { + cd pytest-mypy-$pkgver + patch -Np1 -i ../$pkgname-mypy-0.9x.patch +} + +build() { + cd pytest-mypy-$pkgver + python setup.py build +} + +check() { + # Hack entry points by installing it + + cd pytest-mypy-$pkgver + python setup.py install --root="$PWD/tmp_install" --optimize=1 + PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH" pytest +} + +package() { + cd pytest-mypy-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ +} + +# vim:set ts=2 sw=2 et: