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

Felix Yan felixonmars at archlinux.org
Thu Feb 15 12:31:56 UTC 2018


    Date: Thursday, February 15, 2018 @ 12:31:56
  Author: felixonmars
Revision: 294613

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 294612, python-keyrings-alt/trunk/PKGBUILD)

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

Copied: python-keyrings-alt/repos/community-testing-any/PKGBUILD (from rev 294612, python-keyrings-alt/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2018-02-15 12:31:56 UTC (rev 294613)
@@ -0,0 +1,74 @@
+# $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-keyrings-alt
+pkgname=('python-keyrings-alt' 'python2-keyrings-alt')
+epoch=1
+pkgver=3.0
+pkgrel=1
+pkgdesc="Alternate keyring implementations"
+arch=('any')
+url="http://pypi.python.org/pypi/keyrings.alt"
+license=('MIT')
+makedepends=('python-setuptools_scm' 'python2-setuptools_scm' 'python-keyring' 'python2-keyring')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python2-backports.unittest_mock'
+              'python-crypto' 'python2-crypto' 'libgnome-keyring' 'python-gobject' 'python2-gobject'
+              'python2-gdata')  # 'python-fs' 'python2-fs' Not compatible
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/jaraco/keyrings.alt/archive/$pkgver.tar.gz")
+sha512sums=('63de03f6fdb0a5575fc4ccd80439ba79bbe2b66ecf52ecdc2de76d685587126c44b22e52bf944c7614456309ce8b63ac5d2fe06b97ffa3719ac65d857c3743e0')
+
+prepare() {
+  # Remove it from test_requirements
+  sed -i '/python-keyczar/d' keyrings.alt-$pkgver/setup.py
+
+  # Set version for setuptools_scm
+  export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+  cp -a keyrings.alt-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/keyrings.alt-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/keyrings.alt-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/keyrings.alt-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/keyrings.alt-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-keyrings-alt() {
+  depends=('python-keyring')
+  optdepends=('libgnome-keyring: GNOME Integration'
+              'python-gobject: GNOME Integration'
+              'python-fs'
+              'python-crypto: Encrypted file storage')
+
+  cd "$srcdir"/keyrings.alt-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-keyrings-alt() {
+  depends=('python2-keyring')
+  optdepends=('libgnome-keyring: GNOME Integration'
+              'python2-gobject: GNOME Integration'
+              'python2-fs'
+              'python2-gdata: Google Docs Integration'
+              'python2-crypto: Encrypted file storage')
+
+  cd "$srcdir"/keyrings.alt-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list