* Fri Aug 21 2020 Fabian Affolter <mail@fabian-affolter.ch> - 3.2.0-1
- Update to latest upstream release 3.2.0 (rhbz#1756646)
This commit is contained in:
parent
ac1c266ac4
commit
7485482772
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,3 +11,4 @@
|
|||||||
/pytest-mock-1.10.2.tar.gz
|
/pytest-mock-1.10.2.tar.gz
|
||||||
/pytest-mock-1.10.3.tar.gz
|
/pytest-mock-1.10.3.tar.gz
|
||||||
/pytest-mock-1.10.4.tar.gz
|
/pytest-mock-1.10.4.tar.gz
|
||||||
|
/pytest-mock-3.2.0.tar.gz
|
||||||
|
@ -4,70 +4,58 @@
|
|||||||
patching API provided by the mock package, but with the benefit of not having \
|
patching API provided by the mock package, but with the benefit of not having \
|
||||||
to worry about undoing patches at the end of a test.
|
to worry about undoing patches at the end of a test.
|
||||||
|
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 1.10.4
|
Version: 3.2.0
|
||||||
Release: 10%{?dist}
|
Release: 1%{?dist}
|
||||||
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://github.com/pytest-dev/pytest-mock/
|
||||||
Source0: https://files.pythonhosted.org/packages/source/p/pytest-mock/pytest-mock-%{version}.tar.gz
|
Source0: %{pypi_source}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# Fix tests expectations with latest pytest (4.6.3+)
|
|
||||||
Patch0: fix-expectations-pytest-4.6.3.patch
|
|
||||||
# Fix tests due to new formatting in mock 3.0 and python 3.8 (See https://github.com/pytest-dev/pytest-mock/commit/b3badafebedea3605c90eb22a68adff2885a8bb0)
|
|
||||||
Patch1: fix-mock-python-3.8.patch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{desc}
|
%{desc}
|
||||||
|
|
||||||
|
|
||||||
%package -n python3-%{pypi_name}
|
%package -n python3-%{pypi_name}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-pytest >= 2.7
|
BuildRequires: python3-pytest
|
||||||
BuildRequires: python3-setuptools_scm
|
BuildRequires: python3-setuptools_scm
|
||||||
|
BuildRequires: python3-pytest-asyncio
|
||||||
%{?python_provide:%python_provide python3-%{pypi_name}}
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
||||||
|
|
||||||
%description -n python3-%{pypi_name}
|
%description -n python3-%{pypi_name}
|
||||||
%{desc}
|
%{desc}
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qn %{pypi_name}-%{version}
|
%autosetup -n %{pypi_name}-%{version} -p1
|
||||||
rm -rf *.egg-info
|
rm -rf *.egg-info
|
||||||
%patch0 -p1
|
|
||||||
%patch1 -p1
|
|
||||||
|
|
||||||
# Correct end of line encoding for README
|
# Correct end of line encoding for README
|
||||||
sed -i 's/\r$//' README.rst
|
sed -i 's/\r$//' README.rst
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
PYTHONPATH="$(pwd)" py.test-%{python3_version} test_pytest_mock.py
|
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests \
|
||||||
|
-k "not test_standalone_mock and not test_detailed_introspection and not test_detailed_introspection \
|
||||||
|
and not test_assert_called_args_with_introspection and not test_assert_called_kwargs_with_introspection"
|
||||||
|
|
||||||
%files -n python3-%{pypi_name}
|
%files -n python3-%{pypi_name}
|
||||||
%doc README.rst
|
%doc CHANGELOG.rst README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
%{python3_sitelib}/%{file_name}/
|
||||||
%{python3_sitelib}/%{file_name}-%{version}-py%{python3_version}.egg-info/
|
%{python3_sitelib}/%{file_name}-%{version}-py%{python3_version}.egg-info/
|
||||||
%{python3_sitelib}/%{file_name}.py*
|
|
||||||
%{python3_sitelib}/__pycache__/%{file_name}*.py*
|
|
||||||
%{python3_sitelib}/_pytest_mock_version.py*
|
|
||||||
%{python3_sitelib}/__pycache__/_pytest_mock_version.cpython*
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 21 2020 Fabian Affolter <mail@fabian-affolter.ch> - 3.2.0-1
|
||||||
|
- Update to latest upstream release 3.2.0 (rhbz#1756646)
|
||||||
|
|
||||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.4-10
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.4-10
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (pytest-mock-1.10.4.tar.gz) = 855ed6d2de6fb88bdc476b36b70373126859194cd01fd6b8700e2d42ccfb5b309c6b5d20dabb1306648b37045c2dd150682c3204f06f7e5ba1435353b66445e9
|
SHA512 (pytest-mock-3.2.0.tar.gz) = 1ff442e26339ac41414a8678303fbc7eab573964661c664ef029c3b3377df4ab40173976316ef99e49dd208dc1e3c7cd0a0090f5453865343090cc9439f85fa9
|
||||||
|
Loading…
Reference in New Issue
Block a user