Accepting request 516165 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/516165 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mock?expand=0&rev=2
This commit is contained in:
parent
6962a44623
commit
bafad513a0
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 11 14:27:43 UTC 2017 - tbechtold@suse.com
|
||||||
|
|
||||||
|
- Remove python-virtualenv BuildRequires and simplify test
|
||||||
|
execution
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Apr 5 12:22:45 UTC 2017 - jmatejek@suse.com
|
Wed Apr 5 12:22:45 UTC 2017 - jmatejek@suse.com
|
||||||
|
|
||||||
|
@ -26,10 +26,10 @@ License: MIT
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/pytest-dev/%{modname}
|
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/%{modname}/%{modname}-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools_scm}
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: fdupes
|
||||||
BuildRequires: %{python_module virtualenv}
|
|
||||||
%if 0%{?suse_version} < 1330
|
%if 0%{?suse_version} < 1330
|
||||||
BuildRequires: python-mock
|
BuildRequires: python-mock
|
||||||
%else
|
%else
|
||||||
@ -61,13 +61,11 @@ of a test
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{python_expand $python -m virtualenv --system-site-packages env-%{$python_bin_suffix}
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} test_pytest_mock.py
|
||||||
. env-%{$python_bin_suffix}/bin/activate
|
%python_expand rm -rf %{buildroot}%{$python_sitelib}/__pycache__
|
||||||
$python setup.py install
|
|
||||||
$python -m pytest test_pytest_mock.py
|
|
||||||
deactivate }
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Loading…
Reference in New Issue
Block a user