Date: Friday, May 11, 2018 @ 12:10:30 Author: felixonmars Revision: 320737
archrelease: copy trunk to community-testing-any Added: python-keyrings-alt/repos/community-testing-any/ python-keyrings-alt/repos/community-testing-any/PKGBUILD (from rev 320736, python-keyrings-alt/trunk/PKGBUILD) ----------+ PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) Copied: python-keyrings-alt/repos/community-testing-any/PKGBUILD (from rev 320736, python-keyrings-alt/trunk/PKGBUILD) =================================================================== --- community-testing-any/PKGBUILD (rev 0) +++ community-testing-any/PKGBUILD 2018-05-11 12:10:30 UTC (rev 320737) @@ -0,0 +1,51 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Johannes Dewender arch at JonnyJD dot net +# Contributor: Ivan Sichmann Freitas <ivansichfrei...@gmail.com> +# Contributor: Brice Maron <br...@bmaron.net> +# Contributor: Nuno Araujo <nuno.araujo at russo79.com> +# Contributor: Steven Allen <steven {at} stebalien {dot} com> + +pkgname=python-keyrings-alt +epoch=1 +pkgver=3.1 +pkgrel=1 +pkgdesc="Alternate keyring implementations" +arch=('any') +url="http://pypi.python.org/pypi/keyrings.alt" +license=('MIT') +depends=('python-keyring') +optdepends=('libgnome-keyring: GNOME Integration' + 'python-gobject: GNOME Integration' + 'python-fs' + 'python-crypto: Encrypted file storage') +makedepends=('python-setuptools_scm') +checkdepends=('python-pycryptodome' 'libgnome-keyring' 'python-gobject' 'python-pytest-flake8' + 'python-pytest-runner') # 'python-fs' +source=("$pkgname-$pkgver.tar.gz::https://github.com/jaraco/keyrings.alt/archive/$pkgver.tar.gz") +sha512sums=('29a552f526d33cabf9646c7c51236c74cbccc6a3f650d6ccec6d5beaa48c065dec7438debb0f2d2d6a48611590f6767ee442fb9e5a597bf428a70652ae79dab5') + +prepare() { + echo -e '\nflake8-ignore = W191 W503 W504' >> keyrings.alt-$pkgver/pytest.ini + + cp -a keyrings.alt-$pkgver{,-py2} + + export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver +} + +build() { + cd keyrings.alt-$pkgver + python setup.py build +} + +check() { + cd keyrings.alt-$pkgver + python setup.py pytest +} + +package() { + cd keyrings.alt-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +} + +# vim:set ts=2 sw=2 et: