2012-02-01 10:55:23 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-keyring
|
|
|
|
#
|
2019-02-26 13:42:06 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-02-01 10:55:23 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2013-02-11 09:21:32 +00:00
|
|
|
|
2018-10-14 08:49:34 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-02-01 10:55:23 +00:00
|
|
|
#
|
|
|
|
|
2013-02-11 09:21:32 +00:00
|
|
|
|
2017-05-03 16:04:18 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2012-02-01 10:55:23 +00:00
|
|
|
Name: python-keyring
|
2019-02-26 13:42:06 +00:00
|
|
|
Version: 18.0.0
|
2012-02-01 10:55:23 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Store and access your passwords safely
|
2017-11-28 17:08:29 +00:00
|
|
|
License: Python-2.0 AND MIT
|
2012-02-01 10:55:23 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-10-14 08:49:34 +00:00
|
|
|
URL: https://github.com/jaraco/keyring
|
2017-05-03 16:04:18 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/k/keyring/keyring-%{version}.tar.gz
|
2018-01-24 10:27:56 +00:00
|
|
|
BuildRequires: %{python_module SecretStorage}
|
2018-06-23 07:38:04 +00:00
|
|
|
BuildRequires: %{python_module entrypoints}
|
2018-01-24 10:27:56 +00:00
|
|
|
BuildRequires: %{python_module mock}
|
2018-06-23 07:38:04 +00:00
|
|
|
BuildRequires: %{python_module pytest >= 3.5}
|
|
|
|
BuildRequires: %{python_module setuptools >= 17.1}
|
2017-05-03 16:04:18 +00:00
|
|
|
BuildRequires: %{python_module setuptools_scm >= 1.15.0}
|
2017-08-23 05:22:48 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2017-11-28 17:08:29 +00:00
|
|
|
Requires: python-SecretStorage
|
2018-06-23 07:38:04 +00:00
|
|
|
Requires: python-entrypoints
|
2017-11-28 17:08:29 +00:00
|
|
|
Requires: python-setuptools
|
|
|
|
BuildArch: noarch
|
2017-05-03 16:04:18 +00:00
|
|
|
%python_subpackages
|
2009-09-07 09:09:43 +00:00
|
|
|
|
|
|
|
%description
|
2012-02-01 10:55:23 +00:00
|
|
|
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.
|
2009-09-07 09:09:43 +00:00
|
|
|
|
|
|
|
%prep
|
2012-02-01 10:55:23 +00:00
|
|
|
%setup -q -n keyring-%{version}
|
2016-11-15 15:22:45 +00:00
|
|
|
# For rpmlint warning: remove shebang from python library:
|
|
|
|
sed -i '/^#!/d' keyring/cli.py
|
2019-02-26 13:42:06 +00:00
|
|
|
sed -i -e 's,--flake8,,' pytest.ini
|
2009-09-07 09:09:43 +00:00
|
|
|
|
|
|
|
%build
|
2017-05-03 16:04:18 +00:00
|
|
|
%python_build
|
2009-09-07 09:09:43 +00:00
|
|
|
|
|
|
|
%install
|
2017-05-03 16:04:18 +00:00
|
|
|
%python_install
|
2019-02-26 13:42:06 +00:00
|
|
|
%{python_expand rm -r %{buildroot}%{$python_sitelib}/keyring/tests
|
|
|
|
%fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
}
|
2014-11-11 18:18:27 +00:00
|
|
|
|
2012-02-01 10:55:23 +00:00
|
|
|
%check
|
2018-06-23 07:38:04 +00:00
|
|
|
# sadly most tests need running dbus to communicate with secretstorage/etc
|
2019-02-26 13:42:06 +00:00
|
|
|
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
|
|
|
py.test-%{$python_bin_suffix} --ignore=_build.python2 --ignore=_build.python3
|
|
|
|
}
|
2014-11-11 18:18:27 +00:00
|
|
|
|
2017-05-03 16:04:18 +00:00
|
|
|
%files %{python_files}
|
2015-12-17 13:43:06 +00:00
|
|
|
%doc README.rst CHANGES.rst
|
2019-02-26 13:42:06 +00:00
|
|
|
%license LICENSE
|
2017-05-03 16:04:18 +00:00
|
|
|
%python3_only %{_bindir}/keyring
|
|
|
|
%{python_sitelib}/keyring-%{version}-py*.egg-info
|
|
|
|
%{python_sitelib}/keyring/
|
2009-09-07 09:09:43 +00:00
|
|
|
|
2012-02-01 10:55:23 +00:00
|
|
|
%changelog
|