Hello community, here is the log from the commit of package python-testscenarios for openSUSE:Factory checked in at 2017-05-06 18:27:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-testscenarios (Old) and /work/SRC/openSUSE:Factory/.python-testscenarios.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-testscenarios" Sat May 6 18:27:07 2017 rev:6 rq:489512 version:0.5.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-testscenarios/python-testscenarios.changes 2015-05-16 07:14:50.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-testscenarios.new/python-testscenarios.changes 2017-05-06 18:27:08.368494500 +0200 @@ -1,0 +2,11 @@ +Sun Apr 9 15:32:54 UTC 2017 - aloisio@gmx.com + +- Disabled tests to avoid dependency loop with testtools + +------------------------------------------------------------------- +Sun Apr 2 08:11:06 UTC 2017 - aloisio@gmx.com + +- Converted to single-spec +- Updated source URL + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-testscenarios.spec ++++++ --- /var/tmp/diff_new_pack.2SfCrj/_old 2017-05-06 18:27:09.084393483 +0200 +++ /var/tmp/diff_new_pack.2SfCrj/_new 2017-05-06 18:27:09.088392918 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-testscenarios # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,28 +16,28 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-testscenarios Version: 0.5.0 Release: 0 -Url: https://launchpad.net/testscenarios Summary: Testscenarios, a pyunit extension for dependency injection License: Apache-2.0 or BSD-3-Clause Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/t/testscenarios/testscenarios-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-pbr >= 0.11 -BuildRequires: python-testtools -# Test requirements: -BuildRequires: python-extras -BuildRequires: python-nose +Url: https://launchpad.net/testscenarios +Source: https://files.pythonhosted.org/packages/source/t/testscenarios/testscenarios-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pbr >= 0.11} +# Tests cause a dependency loop +#BuildRequires: %%{python_module extras} +#BuildRequires: %%{python_module nose} +#BuildRequires: %%{python_module testtools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-pbr >= 0.11 Requires: python-testtools -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch -%endif +%python_subpackages %description testscenarios provides clean dependency injection for python unittest style @@ -50,20 +50,22 @@ %setup -q -n testscenarios-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} -#NOTE(saschpe): /usr/bin/make missing on SP2? -%if 0%{?suse_version} >= 1120 -%check -make check -%endif +# Tests introduce dependency loop with python-testtools +#%%check +#%%{python_expand PYTHONPATH=%%{buildroot}%{$python_sitelib} +# $python -m testtools.run testscenarios.test_suite +#} -%files +%files %{python_files} %defattr(-,root,root,-) %doc Apache-2.0 BSD COPYING GOALS HACKING NEWS README -%{python_sitelib}/* +%{python_sitelib}/testscenarios +%{python_sitelib}/testscenarios-%{version}-py%{python_version}.egg-info %changelog