Hello community,
here is the log from the commit of package python-pytest-mock for
openSUSE:Factory checked in at 2018-01-16 09:37:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-mock (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-mock.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-mock"
Tue Jan 16 09:37:39 2018 rev:4 rq:563590 version:1.6.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pytest-mock/python-pytest-mock.changes
2017-10-21 20:20:33.306430152 +0200
+++
/work/SRC/openSUSE:Factory/.python-pytest-mock.new/python-pytest-mock.changes
2018-01-16 09:37:41.198843843 +0100
@@ -1,0 +2,6 @@
+Thu Jan 11 12:23:03 UTC 2018 - [email protected]
+
+- Fix building with python3 only available
+- Install properly license file/etc
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-mock.spec ++++++
--- /var/tmp/diff_new_pack.HC6623/_old 2018-01-16 09:37:41.862812765 +0100
+++ /var/tmp/diff_new_pack.HC6623/_new 2018-01-16 09:37:41.866812577 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-mock
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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,8 +16,10 @@
#
+%define oldpython python
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define modname pytest-mock
+%bcond_without python2
Name: python-%{modname}
Version: 1.6.3
Release: 0
@@ -25,26 +27,22 @@
License: MIT
Group: Development/Languages/Python
Url: https://github.com/pytest-dev/%{modname}
-Source:
https://files.pythonhosted.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz
+Source:
https://files.pythonhosted.org/packages/source/p/pytest-mock/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
-%if 0%{?suse_version} < 1330
-BuildRequires: python-mock
-%else
-BuildRequires: python2-mock
-%endif
BuildRequires: python-rpm-macros
Requires: python-pytest
+BuildArch: noarch
+%if %{with python2}
+BuildRequires: %{oldpython}-mock
+%endif
%ifpython2
-Requires: python-mock
+Requires: %{oldpython}-mock
%else
Recommends: python-mock
%endif
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildArch: noarch
-
%python_subpackages
%description
@@ -68,7 +66,8 @@
%python_expand rm -rf %{buildroot}%{$python_sitelib}/__pycache__
%files %{python_files}
-%defattr(-,root,root,-)
+%doc CHANGELOG.rst
+%license LICENSE
%{python_sitelib}/*
%changelog