[arch-commits] Commit in python-keyrings-alt/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri May 11 12:10:07 UTC 2018


    Date: Friday, May 11, 2018 @ 12:10:06
  Author: felixonmars
Revision: 320736

upgpkg: python-keyrings-alt 1:3.1-1

Modified:
  python-keyrings-alt/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-05-11 12:04:07 UTC (rev 320735)
+++ PKGBUILD	2018-05-11 12:10:06 UTC (rev 320736)
@@ -6,69 +6,46 @@
 # 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')
+pkgname=python-keyrings-alt
 epoch=1
-pkgver=3.0
+pkgver=3.1
 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')
+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() {
-  # Remove it from test_requirements
-  sed -i '/python-keyczar/d' keyrings.alt-$pkgver/setup.py
+  echo -e '\nflake8-ignore = W191 W503 W504' >> keyrings.alt-$pkgver/pytest.ini
 
-  # Set version for setuptools_scm
+  cp -a keyrings.alt-$pkgver{,-py2}
+
   export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
-  cp -a keyrings.alt-$pkgver{,-py2}
 }
 
 build() {
-  cd "$srcdir"/keyrings.alt-$pkgver
+  cd keyrings.alt-$pkgver
   python setup.py build
-
-  cd "$srcdir"/keyrings.alt-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/keyrings.alt-$pkgver
+  cd 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
+package() {
+  cd 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