[arch-commits] Commit in python-keyring/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jan 30 07:05:26 UTC 2018


    Date: Tuesday, January 30, 2018 @ 07:05:24
  Author: felixonmars
Revision: 287956

archrelease: copy trunk to community-testing-any

Added:
  python-keyring/repos/community-testing-any/
  python-keyring/repos/community-testing-any/PKGBUILD
    (from rev 287955, python-keyring/trunk/PKGBUILD)

----------+
 PKGBUILD |   61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)

Copied: python-keyring/repos/community-testing-any/PKGBUILD (from rev 287955, python-keyring/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2018-01-30 07:05:24 UTC (rev 287956)
@@ -0,0 +1,61 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Johannes Dewender  arch at JonnyJD dot net
+# Contributor: Ivan Sichmann Freitas <ivansichfreitas at gmail.com>
+# Contributor: Brice Maron <brice at bmaron.net>
+# Contributor: Nuno Araujo <nuno.araujo at russo79.com>
+# Contributor: Steven Allen <steven {at} stebalien {dot} com>
+
+pkgbase=python-keyring
+pkgname=('python-keyring' 'python2-keyring')
+pkgver=11.0.0
+pkgrel=1
+pkgdesc="Store and access your passwords safely."
+arch=('any')
+url="http://pypi.python.org/pypi/keyring"
+license=('PSF' 'MIT')
+source=("https://pypi.io/packages/source/k/keyring/keyring-$pkgver.tar.gz")
+makedepends=('python-setuptools_scm' 'python2-setuptools_scm' 'python-secretstorage'
+             'python2-secretstorage')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+sha512sums=('d4937e84e6de18ed8fcba02d2d297ecc5a6434623c362f5608141041acbc7bc27fbf94e54a5a503a02b725df737fa8505d0d91e2c3e84298fa4044d7dc99f207')
+
+prepare() {
+  cp -a keyring-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/keyring-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/keyring-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/keyring-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/keyring-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-keyring() {
+  depends=('python-setuptools' 'python-secretstorage')
+  optdepends=('python-keyrings-alt: Alternative backends')
+
+  cd keyring-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-keyring() {
+  depends=('python2-setuptools' 'python2-secretstorage')
+  optdepends=('python2-keyrings-alt: Alternative backends')
+
+  cd keyring-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+
+  mv "$pkgdir"/usr/bin/keyring{,2}
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list