Accepting request 329452 from home:dimstar:Factory

- Update to version 5.4:
  + Prefer setuptools_scm to hgtools.
- Replace python-hgtools BuildRequires with python-setuptools_scm,
  following upstreams change back to setuptools_scm.
- Add keyring-gnome-3.18.patch: Silence a warning: on GNOME 3.18,
  it is mandatory to specify the version to be imported.

OBS-URL: https://build.opensuse.org/request/show/329452
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-keyring?expand=0&rev=36
This commit is contained in:
Denisart Benjamin 2015-09-07 09:08:34 +00:00 committed by Git OBS Bridge
parent 546f6bfbb7
commit fd533b464a
5 changed files with 31 additions and 7 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ac2b4dc17e6edfb804b09ade15df79f251522e442976ea0c8ea0051474502cf5
size 87921

3
keyring-5.4.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:45891cd0af4c4af70fbed7ec6e3964d0261c14188de9ab31030c9d02272e22d2
size 68986

12
keyring-gnome-3.18.patch Normal file
View File

@ -0,0 +1,12 @@
Index: keyring-5.4/keyring/backends/Gnome.py
===================================================================
--- keyring-5.4.orig/keyring/backends/Gnome.py
+++ keyring-5.4/keyring/backends/Gnome.py
@@ -3,6 +3,7 @@ import os
try:
from gi import Repository
if Repository.get_default().enumerate_versions('GnomeKeyring'):
+ gi.require_version('GnomeKeyring', '1.0')
from gi.repository import GnomeKeyring
except ImportError:
pass

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Sep 7 08:40:56 UTC 2015 - dimstar@opensuse.org
- Update to version 5.4:
+ Prefer setuptools_scm to hgtools.
- Replace python-hgtools BuildRequires with python-setuptools_scm,
following upstreams change back to setuptools_scm.
- Add keyring-gnome-3.18.patch: Silence a warning: on GNOME 3.18,
it is mandatory to specify the version to be imported.
-------------------------------------------------------------------
Tue Apr 28 11:06:12 UTC 2015 - mimi.vx@gmail.com

View File

@ -17,18 +17,19 @@
Name: python-keyring
Version: 5.3
Version: 5.4
Release: 0
Url: https://bitbucket.org/kang/python-keyring-lib
Summary: Store and access your passwords safely
License: Python-2.0 and MIT
Group: Development/Languages/Python
Source: https://pypi.python.org/packages/source/k/keyring/keyring-%{version}.zip
Source: https://pypi.python.org/packages/source/k/keyring/keyring-%{version}.tar.gz
# PATCH-FIX-UPSTREAM keyring-gnome-3.18.patch dimstar@opensuse.org -- Silence a warning when run in GNOME 3.18: gi requires versioned imports now.
Patch0: keyring-gnome-3.18.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-hgtools
BuildRequires: python-setuptools
BuildRequires: unzip
BuildRequires: python-setuptools_scm
# Test requirements:
BuildRequires: python-mock
BuildRequires: python-pytest
@ -55,6 +56,7 @@ from python. It can be used in any application that needs safe password storage.
%prep
%setup -q -n keyring-%{version}
%patch0 -p1
# For rpmlint warning: remove shebang from python library:
sed -i '/^#!/d' keyring/cli.py keyring/backends/_win_crypto.py