From 937a5d9c6713e2643f034adf64ce7e92575dc43b0f6bd7b02ecc5c41b34d8f1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 24 Jan 2019 10:07:38 +0000 Subject: [PATCH] - Enable tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gnupg?expand=0&rev=11 --- python-python-gnupg.changes | 5 +++++ python-python-gnupg.spec | 14 ++++---------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/python-python-gnupg.changes b/python-python-gnupg.changes index e03b306..bee5b70 100644 --- a/python-python-gnupg.changes +++ b/python-python-gnupg.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 24 10:07:27 UTC 2019 - Tomáš Chvátal + +- Enable tests + ------------------------------------------------------------------- Thu Jan 24 09:31:19 UTC 2019 - Karol Babioch diff --git a/python-python-gnupg.spec b/python-python-gnupg.spec index ce27e9a..b577438 100644 --- a/python-python-gnupg.spec +++ b/python-python-gnupg.spec @@ -18,7 +18,6 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python -%bcond_with test Name: python-python-gnupg Version: 0.4.4 Release: 0 @@ -29,20 +28,16 @@ URL: http://pythonhosted.org/python-gnupg/index.html Source: https://files.pythonhosted.org/packages/source/p/python-gnupg/python-gnupg-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: gpg2 BuildRequires: python-rpm-macros Requires: gpg2 +Obsoletes: python-gnupg < %{version} +Provides: python-gnupg = %{version} BuildArch: noarch -%if %{with test} -BuildRequires: gpg2 -%endif %ifpython2 Obsoletes: %{oldpython}-gnupg < %{version} Provides: %{oldpython}-gnupg = %{version} %endif -%ifpython3 -Obsoletes: python3-gnupg < %{version} -Provides: python3-gnupg = %{version} -%endif %python_subpackages %description @@ -59,10 +54,9 @@ encryption and signature functionality from Python programs. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check +export NO_EXTERNAL_TESTS=true %python_exec test_gnupg.py -%endif %files %{python_files} %license LICENSE.txt