14
0
Files
python-keyring/python-keyring.spec
Tomáš Chvátal c9caa62960 - Version update to 13.0.0:
* #327: In kwallet backend, if the collection or item is
    locked, a ``KeyringLocked`` exception is raised. Clients
    expecting a None response from ``get_password`` under
    this condition will need to catch this exception.
    Additionally, an ``InitError`` is now raised if the
    connection cannot be established to the DBus.
  * #298: In kwallet backend, when checking an existing
    handle, verify that it is still valid or create a new
    connection.
  * Fixed issue in SecretService. Ref #226.
  * #322: Fix AttributeError when ``escape.__builtins__``
    is a dict.
  * Deprecated ``keyring.util.escape`` module. If you use
    this module or encounter the warning (on the latest
    release of your packages), please `file a ticket
    <https://github.com/jaraco/keyring/issues/new>`_.
  * Unpin SecretStorage on Python 3.5+. Requires that
    Setuptools 17.1 be used. Note that the special
    handling will be unnecessary once Pip 9 can be
    assumed (as it will exclude SecretStorage 3 in
    non-viable environments).
  * #310: Keyring now loads all backends through entry
    points.
  * #312: Use ``entrypoints`` instead of pkg_resources to
    avoid performance hit loading pkg_resources. Adds
    a dependency on ``entrypoints``.
  * #294: No longer expose ``keyring.__version__`` (added
    in 8.1) to avoid performance hit loading pkg_resources.
  * #299: Keyring exceptions are now derived from a base

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-keyring?expand=0&rev=65
2018-06-23 07:38:04 +00:00

75 lines
2.5 KiB
RPMSpec

#
# spec file for package python-keyring
#
# Copyright (c) 2018 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-keyring
Version: 13.0.0
Release: 0
Summary: Store and access your passwords safely
License: Python-2.0 AND MIT
Group: Development/Languages/Python
Url: https://github.com/jaraco/keyring
Source: https://files.pythonhosted.org/packages/source/k/keyring/keyring-%{version}.tar.gz
BuildRequires: %{python_module SecretStorage}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module entrypoints}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest >= 3.5}
BuildRequires: %{python_module pytest-flake8}
BuildRequires: %{python_module pytest-sugar >= 0.9.1}
BuildRequires: %{python_module setuptools >= 17.1}
BuildRequires: %{python_module setuptools_scm >= 1.15.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-SecretStorage
Requires: python-entrypoints
Requires: python-setuptools
BuildArch: noarch
%python_subpackages
%description
The Python keyring lib provides a easy way to access the system keyring service
from python. It can be used in any application that needs safe password storage.
%prep
%setup -q -n keyring-%{version}
# For rpmlint warning: remove shebang from python library:
sed -i '/^#!/d' keyring/cli.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# remove test expecting the /usr/bin
rm -rf tests/test_packaging.py
# sadly most tests need running dbus to communicate with secretstorage/etc
%{python_expand rm -rf _build*
py.test-%{$python_bin_suffix}}
%files %{python_files}
%doc README.rst CHANGES.rst
%python3_only %{_bindir}/keyring
%{python_sitelib}/keyring-%{version}-py*.egg-info
%{python_sitelib}/keyring/
%changelog