14
0

Accepting request 838789 from home:frispete:python

- Fold -tests package into mail package again

- Apply fix-kwallet-tests.patch

- fix packaging tests

- Package tests in separate package $flavor-tests
  Allows packages, that depend on these tests, to build successfully
  e.g. keyrings.cryptfile

OBS-URL: https://build.opensuse.org/request/show/838789
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-keyring?expand=0&rev=86
This commit is contained in:
Tomáš Chvátal
2020-09-30 17:23:20 +00:00
committed by Git OBS Bridge
parent 2397031c33
commit 61c07da8d6
3 changed files with 120 additions and 0 deletions

View File

@@ -23,8 +23,10 @@ Version: 21.2.1
Release: 0
Summary: System keyring service access from Python
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
Patch: fix-kwallet-tests.patch
BuildRequires: %{python_module SecretStorage >= 3}
BuildRequires: %{python_module entrypoints}
BuildRequires: %{python_module importlib-metadata}
@@ -50,6 +52,7 @@ from python. It can be used in any application that needs safe password storage.
%prep
%setup -q -n keyring-%{version}
%patch -p1
# For rpmlint warning: remove shebang from python library:
sed -i '/^#!/d' keyring/cli.py
sed -i -e 's,--flake8,,' -e 's,--black,,' -e 's,--cov,,' pytest.ini