Hello community, here is the log from the commit of package python-trustme for openSUSE:Factory checked in at 2020-03-27 00:21:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-trustme (Old) and /work/SRC/openSUSE:Factory/.python-trustme.new.3160 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-trustme" Fri Mar 27 00:21:16 2020 rev:6 rq:784170 version:0.6.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-trustme/python-trustme.changes 2020-02-14 16:25:15.079186639 +0100 +++ /work/SRC/openSUSE:Factory/.python-trustme.new.3160/python-trustme.changes 2020-03-27 00:21:18.164135395 +0100 @@ -1,0 +2,5 @@ +Thu Mar 12 07:55:07 UTC 2020 - Tomáš Chvátal <tchva...@suse.com> + +- Fix build without python2 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-trustme.spec ++++++ --- /var/tmp/diff_new_pack.OD3o7M/_old 2020-03-27 00:21:19.900136274 +0100 +++ /var/tmp/diff_new_pack.OD3o7M/_new 2020-03-27 00:21:19.936136292 +0100 @@ -17,12 +17,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-trustme Version: 0.6.0 Release: 0 Summary: Fake CA provider for Python tests License: MIT OR Apache-2.0 -Group: Development/Languages/Python URL: https://github.com/python-trio/trustme Source: https://files.pythonhosted.org/packages/source/t/trustme/trustme-%{version}.tar.gz BuildRequires: %{python_module cryptography} @@ -32,15 +32,17 @@ BuildRequires: %{python_module service_identity} BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-cryptography +Requires: python-idna +BuildArch: noarch +%if %{with python2} BuildRequires: python-futures BuildRequires: python-ipaddress +%endif %ifpython2 Requires: python-ipaddress %endif -BuildRequires: python-rpm-macros -Requires: python-cryptography -Requires: python-idna -BuildArch: noarch %python_subpackages %description @@ -61,7 +63,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec -m pytest +%pytest %files %{python_files} %license LICENSE