Update to 1.6.0

This commit is contained in:
Julien Enselme 2017-04-05 21:34:30 +02:00
parent 14bedb22e0
commit 3385222bfc
3 changed files with 11 additions and 7 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/pytest-mock-1.1.zip /pytest-mock-1.1.zip
/pytest-mock-1.2.zip /pytest-mock-1.2.zip
/pytest-mock-1.6.0.tar.gz

View File

@ -6,15 +6,13 @@ to worry about undoing patches at the end of a test.
Name: python-%{pypi_name} Name: python-%{pypi_name}
Version: 1.2 Version: 1.6.0
Release: 4%{?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://pypi.python.org/pypi/pytest-mock
Source0: https://pypi.python.org/packages/30/11/a5a8009eff04bc15c37e2f8e33d8ed99adf828ec8f551fb31d99f6c73b5b/pytest-mock-1.2.zip Source0: https://pypi.python.org/packages/59/2a/18c5a08809b6383e6b1026d0307fa49f8eac1eaf9657bcd3446c7822cffd/pytest-mock-1.6.0.tar.gz
# From: https://github.com/pytest-dev/pytest-mock/pull/63
Patch0: fix-for-pytest3.patch
BuildArch: noarch BuildArch: noarch
%description %description
@ -50,7 +48,6 @@ Requires: python3-pytest >= 2.7
%prep %prep
%setup -qn %{pypi_name}-%{version} %setup -qn %{pypi_name}-%{version}
rm -rf *.egg-info rm -rf *.egg-info
patch -p1 --binary < %{PATCH0}
# 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
@ -76,6 +73,7 @@ PYTHONPATH="$(pwd)" py.test-%{python3_version} test_pytest_mock.py
%license LICENSE %license LICENSE
%{python2_sitelib}/%{file_name}-%{version}-py%{python2_version}.egg-info/ %{python2_sitelib}/%{file_name}-%{version}-py%{python2_version}.egg-info/
%{python2_sitelib}/%{file_name}.py* %{python2_sitelib}/%{file_name}.py*
%{python2_sitelib}/_pytest_mock_version.py*
%files -n python3-%{pypi_name} %files -n python3-%{pypi_name}
@ -84,9 +82,14 @@ PYTHONPATH="$(pwd)" py.test-%{python3_version} test_pytest_mock.py
%{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}/%{file_name}.py*
%{python3_sitelib}/__pycache__/%{file_name}*.py* %{python3_sitelib}/__pycache__/%{file_name}*.py*
%{python3_sitelib}/_pytest_mock_version.py*
%{python3_sitelib}/__pycache__/_pytest_mock_version.cpython*
%changelog %changelog
* Wed Apr 05 2017 Julien Enselme <jujens@jujens.eu> - 1.6.0-1
- Update to 1.6.0
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-4 * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

View File

@ -1 +1 @@
a7fa820f7bc71698660945836ff93c73 pytest-mock-1.2.zip SHA512 (pytest-mock-1.6.0.tar.gz) = c3b897be9156d57d7012e95b620c543500b849d7076224e3328d3783311210c57141dfb82c01bb98e5e419125dce0f68f6631bd610f4909f5ac1798458a7949f