[arch-commits] Commit in python-keyrings-alt/repos/community-staging-any (3 files)

Felix Yan felixonmars at archlinux.org
Wed Nov 6 23:28:41 UTC 2019


    Date: Wednesday, November 6, 2019 @ 23:28:40
  Author: felixonmars
Revision: 524440

archrelease: copy trunk to community-staging-any

Added:
  python-keyrings-alt/repos/community-staging-any/PKGBUILD
    (from rev 524439, python-keyrings-alt/trunk/PKGBUILD)
  python-keyrings-alt/repos/community-staging-any/pep517-0.5.patch
    (from rev 524439, python-keyrings-alt/trunk/pep517-0.5.patch)
Deleted:
  python-keyrings-alt/repos/community-staging-any/PKGBUILD

------------------+
 PKGBUILD         |  107 ++++++++++++++++++++++++++++-------------------------
 pep517-0.5.patch |   55 +++++++++++++++++++++++++++
 2 files changed, 113 insertions(+), 49 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-06 23:28:25 UTC (rev 524439)
+++ PKGBUILD	2019-11-06 23:28:40 UTC (rev 524440)
@@ -1,49 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Maintainer: Filipe Laíns (FFY00) <lains 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>
-
-pkgname=python-keyrings-alt
-_pkgname=keyrings.alt
-epoch=1
-pkgver=3.1.1
-pkgrel=2
-pkgdesc="Alternate keyring implementations"
-arch=('any')
-url='https://github.com/jaraco/keyrings.alt'
-license=('MIT')
-depends=('python-keyring')
-makedepends=('python-setuptools_scm')
-checkdepends=('libgnome-keyring' 'python-pycryptodome' 'python-gobject' 'python-pytest-flake8' 'python-pytest-runner' 'python-keyring')
-optdepends=('libgnome-keyring: GNOME Integration'
-            'python-gobject: GNOME Integration'
-            'python-fs'
-            'python-crypto: Encrypted file storage')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
-sha512sums=('0ec460620d684c83477f5a5810f8d01058cf251bf9ef34af1afcca0c663fb9025a94ae7785ac4bc6982eb88f44e103f7821c9756a359b2af04800752d3e1fc0e')
-
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
-build() {
-  cd $_pkgname-$pkgver
-
-  python setup.py build
-}
-
-check() {
-  cd $_pkgname-$pkgver
-
-  python setup.py pytest
-}
-
-package() {
-  cd $_pkgname-$pkgver
-
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-keyrings-alt/repos/community-staging-any/PKGBUILD (from rev 524439, python-keyrings-alt/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-11-06 23:28:40 UTC (rev 524440)
@@ -0,0 +1,58 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Filipe Laíns (FFY00) <lains 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>
+
+pkgname=python-keyrings-alt
+_pkgname=keyrings.alt
+epoch=1
+pkgver=3.1.1
+pkgrel=3
+pkgdesc="Alternate keyring implementations"
+arch=('any')
+url='https://github.com/jaraco/keyrings.alt'
+license=('MIT')
+depends=('python-keyring')
+makedepends=('python-setuptools_scm')
+checkdepends=('libgnome-keyring' 'python-pycryptodome' 'python-gobject' 'python-pytest-flake8' 'python-pytest-runner' 'python-keyring')
+optdepends=('libgnome-keyring: GNOME Integration'
+            'python-gobject: GNOME Integration'
+            'python-fs'
+            'python-crypto: Encrypted file storage')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
+        pep517-0.5.patch)
+sha512sums=('0ec460620d684c83477f5a5810f8d01058cf251bf9ef34af1afcca0c663fb9025a94ae7785ac4bc6982eb88f44e103f7821c9756a359b2af04800752d3e1fc0e'
+            '1a8dc30ded29cf0f8c8376d36906a50298e74c8f092db318d587f36e87e3a34104418c53c9cc758061104723aa66dfed2f8f7390462024bd3980b569e2b702b7')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+prepare() {
+  cd $_pkgname-$pkgver
+
+  # Fix flake8 error breaking tests
+  patch -Np1 -i ../pep517-0.5.patch
+}
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  python setup.py pytest
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:

Copied: python-keyrings-alt/repos/community-staging-any/pep517-0.5.patch (from rev 524439, python-keyrings-alt/trunk/pep517-0.5.patch)
===================================================================
--- pep517-0.5.patch	                        (rev 0)
+++ pep517-0.5.patch	2019-11-06 23:28:40 UTC (rev 524440)
@@ -0,0 +1,55 @@
+From 939c515f2cc01525cbbd71f26e71d21471abdc93 Mon Sep 17 00:00:00 2001
+From: "Jason R. Coombs" <jaraco at jaraco.com>
+Date: Mon, 17 Dec 2018 12:17:02 -0500
+Subject: [PATCH] Rely on pep517 0.5
+
+---
+ install-pip-master.py | 21 ---------------------
+ tox.ini               |  5 +----
+ 2 files changed, 1 insertion(+), 25 deletions(-)
+ delete mode 100644 install-pip-master.py
+
+diff --git a/install-pip-master.py b/install-pip-master.py
+deleted file mode 100644
+index d62d20f..0000000
+--- a/install-pip-master.py
++++ /dev/null
+@@ -1,21 +0,0 @@
+-"""
+-In order to support installation of pep517 from source,
+-pip from master must be installed.
+-"""
+-
+-import subprocess
+-import sys
+-
+-
+-def main():
+-	cmd = [
+-		sys.executable,
+-		'-m', 'pip', 'install',
+-		'git+https://github.com/pypa/pip',
+-	]
+-	subprocess.run(cmd)
+-	cmd[-1:] = sys.argv[1:]
+-	subprocess.run(cmd)
+-
+-
+-__name__ == '__main__' and main()
+diff --git a/tox.ini b/tox.ini
+index 853d7de..70b0be7 100644
+--- a/tox.ini
++++ b/tox.ini
+@@ -20,11 +20,8 @@ commands =
+ 
+ [testenv:release]
+ skip_install = True
+-# workaround for pep517 build support
+-install_command = python install-pip-master.py {opts} {packages}
+ deps =
+-	# pull from feature branch for feature
+-	git+https://github.com/pypa/pep517@feature/build-command
++	pep517>=0.5
+ 	# workaround for https://github.com/pypa/twine/issues/423
+ 	git+https://github.com/pypa/twine
+ 	path.py



More information about the arch-commits mailing list