Accepting request 349379 from devel:languages:python

- Update to version 5.7
- Removed CONTRIBUTORS.txt because not available in upstream
  source anymore.
- dropped patches keyring-import-gi.patch and keyring-gnome-3.18.patch
  because they were obsoleted by fixes in upstream source
5.7
---
* Issue #177: Resolve default keyring name on Gnome using the API.
* Issue #145: Add workaround for password exposure through
  process status for most passwords containing simple
  characters.
5.6
---
* Allow keyring to be invoked from command-line with
  ``python -m keyring``.
5.5.1
-----
* Issue #156: Fixed test failures in ``pyfs`` keyring related to
  0.5 release.
5.5
---
* Pull Request #176: Use recommended mechanism for checking
  GnomeKeyring version.

OBS-URL: https://build.opensuse.org/request/show/349379
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keyring?expand=0&rev=18
This commit is contained in:
Dominique Leuenberger 2015-12-21 11:03:28 +00:00 committed by Git OBS Bridge
commit 530e3476ad
6 changed files with 34 additions and 35 deletions

View File

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

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

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

View File

@ -1,12 +0,0 @@
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,12 +0,0 @@
diff --git a/keyring/backends/Gnome.py b/keyring/backends/Gnome.py
index 7a8a274..642bc80 100644
--- a/keyring/backends/Gnome.py
+++ b/keyring/backends/Gnome.py
@@ -3,6 +3,7 @@ import os
try:
from gi import Repository
if Repository.get_default().enumerate_versions('GnomeKeyring'):
+ import gi
gi.require_version('GnomeKeyring', '1.0')
from gi.repository import GnomeKeyring
except ImportError:

View File

@ -1,3 +1,31 @@
-------------------------------------------------------------------
Fri Dec 11 14:45:37 UTC 2015 - michael@stroeder.com
- Update to version 5.7
- Removed CONTRIBUTORS.txt because not available in upstream
source anymore.
- dropped patches keyring-import-gi.patch and keyring-gnome-3.18.patch
because they were obsoleted by fixes in upstream source
5.7
---
* Issue #177: Resolve default keyring name on Gnome using the API.
* Issue #145: Add workaround for password exposure through
process status for most passwords containing simple
characters.
5.6
---
* Allow keyring to be invoked from command-line with
``python -m keyring``.
5.5.1
-----
* Issue #156: Fixed test failures in ``pyfs`` keyring related to
0.5 release.
5.5
---
* Pull Request #176: Use recommended mechanism for checking
GnomeKeyring version.
-------------------------------------------------------------------
Mon Sep 17 11:41:56 UTC 2015 - m0ses@samaxi.de

View File

@ -1,7 +1,7 @@
#
# spec file for package python-keyring
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,16 +17,13 @@
Name: python-keyring
Version: 5.4
Version: 5.7
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}.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
Patch1: keyring-import-gi.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-setuptools
@ -57,8 +54,6 @@ from python. It can be used in any application that needs safe password storage.
%prep
%setup -q -n keyring-%{version}
%patch0 -p1
%patch1 -p1
# For rpmlint warning: remove shebang from python library:
sed -i '/^#!/d' keyring/cli.py keyring/backends/_win_crypto.py
@ -88,7 +83,7 @@ fi
%files
%defattr(-,root,root)
%doc CONTRIBUTORS.txt README.rst CHANGES.rst
%doc README.rst CHANGES.rst
%ghost %{_sysconfdir}/alternatives/keyring
%{_bindir}/keyring
%{_bindir}/keyring-%{py_ver}