73707b2a25
- version update to 3.1.2 SecretStorage 3.1.2, 2020-01-08 =============================== * Updated the docs to describe how to close the D-Bus connection after use. * For secrets of wrong type, a TypeError is now raised [`#20`_]. SecretStorage 3.1.1, 2019-01-24 =============================== * Fixes TypeError with cryptography 2.5. Thanks Zach Hoffman for the pull request! SecretStorage 3.1.0, 2018-09-02 =============================== * The ``dbus_init`` function no longer accepts any arguments. * The ``dbus_init`` function now converts ``ConnectionError`` and ``ValueError`` to ``SecretServiceNotAvailableException``. * New exception class: ``PromptDismissedException``. * Switched to declarative setup configuration. Build now requires setuptools 30.3 or newer. * Added support for prompts when deleting collections and items. * Added type annotations to all methods. SecretStorage 3.0.1, 2018-04-24 =============================== * When ``DBUS_SESSION_BUS_ADDRESS`` environment variable is unset, and Jeepney raises a ``KeyError`` because of that, SecretStorage now intercepts that error and re-raises it as ``SecretServiceNotAvailableException``. * Uploaded to PyPI with fixed meta-data. SecretStorage 3.0.0, 2018-04-23 =============================== .. warning:: This release is backwards incompatible with the previous versions. * Python 3.5 or newer is now required. OBS-URL: https://build.opensuse.org/request/show/794544 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SecretStorage?expand=0&rev=23
79 lines
2.7 KiB
RPMSpec
79 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package python-SecretStorage
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python2 1
|
|
Name: python-SecretStorage
|
|
Version: 3.1.2
|
|
Release: 0
|
|
Summary: Python bindings to FreeDesktoporg Secret Service API
|
|
License: BSD-3-Clause
|
|
URL: https://github.com/mitya57/secretstorage
|
|
Source: https://files.pythonhosted.org/packages/source/S/SecretStorage/SecretStorage-%{version}.tar.gz
|
|
BuildRequires: %{python_module cryptography}
|
|
BuildRequires: %{python_module jeepney >= 0.4.2}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: gnome-keyring
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-cryptography
|
|
Requires: python-jeepney >= 0.4.2
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
This module provides a way for securely storing passwords and other secrets.
|
|
|
|
It uses D-Bus `Secret Service`_ API that is supported by GNOME Keyring
|
|
(since version 2.30) and KSecretsService.
|
|
|
|
The main classes provided are ``secretstorage.Item``, representing a secret
|
|
item (that has a *label*, a *secret* and some *attributes*) and
|
|
``secretstorage.Collection``, a place items are stored in.
|
|
|
|
SecretStorage supports most of the functions provided by Secret Service,
|
|
including creating and deleting items and collections, editing items,
|
|
locking and unlocking collections (asynchronous unlocking is also supported).
|
|
|
|
The documentation can be found on `pythonhosted.org`_.
|
|
|
|
.. _`Secret Service`: https://specifications.freedesktop.org/secret-service/
|
|
.. _`pythonhosted.org`: https://pythonhosted.org/SecretStorage/
|
|
|
|
%prep
|
|
%setup -q -n SecretStorage-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
# gnome-keyring "forgets" to create this directory under certain conditions
|
|
mkdir -p $HOME/.cache
|
|
%python_expand dbus-run-session -- $python -m unittest discover -s tests
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc changelog README.rst
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|