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

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 14:49:33 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:49:32
  Author: felixonmars
Revision: 1059364

archrelease: copy trunk to community-staging-any

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

------------------+
 PKGBUILD         |   50 ++++++++++++++++++++++++++++++++++++++++++++++++
 pep517-0.5.patch |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 105 insertions(+)

Copied: python-keyrings-alt/repos/community-staging-any/PKGBUILD (from rev 1059361, python-keyrings-alt/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:49:32 UTC (rev 1059364)
@@ -0,0 +1,50 @@
+# 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=4.1.0
+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-keyring'
+              'python-pytest-runner' 'python-pytest-flake8' 'python-pytest-black' 'python-pytest-cov')
+optdepends=('libgnome-keyring: GNOME Integration'
+            'python-gobject: GNOME Integration'
+            'python-fs'
+            'python-crypto: Encrypted file storage')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('941793b72688b182002793c14e4df84c79d8864fa3033d25326af8fd8cc90c500b10b53827916240f242490f60a9fd638873cedc3b8b04455a2621c756228bf8')
+
+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/pep517-0.5.patch (from rev 1059362, python-keyrings-alt/trunk/pep517-0.5.patch)
===================================================================
--- community-staging-any/pep517-0.5.patch	                        (rev 0)
+++ community-staging-any/pep517-0.5.patch	2021-12-01 14:49:32 UTC (rev 1059364)
@@ -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