Remove python2-pytest-mock subpackage

This commit is contained in:
lingsheng 2020-08-11 15:49:55 +08:00
parent 7862874c1f
commit 74980cff4d

View File

@ -1,6 +1,6 @@
Name: python-pytest-mock Name: python-pytest-mock
Version: 1.10.0 Version: 1.10.0
Release: 6 Release: 7
Summary: Thin-wrapper around the mock package for easier use with py.test Summary: Thin-wrapper around the mock package for easier use with py.test
License: MIT License: MIT
URL: https://pypi.python.org/pypi/pytest-mock URL: https://pypi.python.org/pypi/pytest-mock
@ -14,19 +14,6 @@ patching API provided by the mock package.
Besides undoing the mocking automatically after the end of the test, Besides undoing the mocking automatically after the end of the test,
it also provides other nice utilities. it also provides other nice utilities.
%package -n python2-pytest-mock
Summary: Thin-wrapper around the mock package for easier use with py.test
BuildArch: noarch
BuildRequires: python2-devel python2-pytest >= 2.7 python2-mock python2-setuptools_scm
Requires: python2-pytest >= 2.7 python2-mock
%{?python_provide:%python_provide python2-pytest-mock}
%description -n python2-pytest-mock
This plugin provides a mocker fixture which is a thin-wrapper around the
patching API provided by the mock package.
Besides undoing the mocking automatically after the end of the test,
it also provides other nice utilities.
%package -n python3-pytest-mock %package -n python3-pytest-mock
Summary: Thin-wrapper around the mock package for easier use with py.test Summary: Thin-wrapper around the mock package for easier use with py.test
BuildArch: noarch BuildArch: noarch
@ -45,27 +32,16 @@ it also provides other nice utilities.
rm -rf *.egg-info rm -rf *.egg-info
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py3_install %py3_install
%py2_install
%check %check
PYTHONPATH="$(pwd)" py.test-%{python2_version} test_pytest_mock.py
PYTHONPATH="$(pwd)" py.test-%{python3_version} test_pytest_mock.py PYTHONPATH="$(pwd)" py.test-%{python3_version} test_pytest_mock.py
%files -n python2-pytest-mock
%doc README.rst
%license LICENSE
%{python2_sitelib}/pytest_mock-%{version}-py%{python2_version}.egg-info/
%{python2_sitelib}/pytest_mock.py*
%{python2_sitelib}/_pytest_mock_version.py*
%files -n python3-pytest-mock %files -n python3-pytest-mock
%doc README.rst %doc README.rst
%license LICENSE %license LICENSE
@ -75,6 +51,9 @@ PYTHONPATH="$(pwd)" py.test-%{python3_version} test_pytest_mock.py
%{python3_sitelib}/__pycache__/* %{python3_sitelib}/__pycache__/*
%changelog %changelog
* Tue Aug 11 2020 lingsheng <lingsheng@huawei.com> - 1.10.0-7
- Remove python2-pytest-mock subpackage
* Sun Jun 28 2020 lingsheng <lingsheng@huawei.com> - 1.10.0-6 * Sun Jun 28 2020 lingsheng <lingsheng@huawei.com> - 1.10.0-6
- Tests handle new output format with Python 3.8 - Tests handle new output format with Python 3.8