Hello community,
here is the log from the commit of package python-pytest-mock for
openSUSE:Factory checked in at 2017-08-14 12:38:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-mock (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-mock.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-mock"
Mon Aug 14 12:38:47 2017 rev:2 rq:516165 version:1.6.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pytest-mock/python-pytest-mock.changes
2017-05-16 14:28:49.808745264 +0200
+++
/work/SRC/openSUSE:Factory/.python-pytest-mock.new/python-pytest-mock.changes
2017-08-14 12:38:53.725476550 +0200
@@ -1,0 +2,6 @@
+Fri Aug 11 14:27:43 UTC 2017 - [email protected]
+
+- Remove python-virtualenv BuildRequires and simplify test
+ execution
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-mock.spec ++++++
--- /var/tmp/diff_new_pack.wgpgp1/_old 2017-08-14 12:38:59.084723969 +0200
+++ /var/tmp/diff_new_pack.wgpgp1/_new 2017-08-14 12:38:59.092722846 +0200
@@ -26,10 +26,10 @@
Group: Development/Languages/Python
Url: https://github.com/pytest-dev/%{modname}
Source:
https://files.pythonhosted.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz
+BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
-BuildRequires: %{python_module pytest}
-BuildRequires: %{python_module virtualenv}
+BuildRequires: fdupes
%if 0%{?suse_version} < 1330
BuildRequires: python-mock
%else
@@ -61,13 +61,11 @@
%install
%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-%{python_expand $python -m virtualenv --system-site-packages
env-%{$python_bin_suffix}
-. env-%{$python_bin_suffix}/bin/activate
-$python setup.py install
-$python -m pytest test_pytest_mock.py
-deactivate }
+%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}
py.test-%{$python_version} test_pytest_mock.py
+%python_expand rm -rf %{buildroot}%{$python_sitelib}/__pycache__
%files %{python_files}
%defattr(-,root,root,-)