Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
python-mock: Autospec creation for update from version 4.0.2 to versi…
Browse files Browse the repository at this point in the history
…on 4.0.3

Chris Withers (4):
      pytest-dev/pytest#6924
      Update issue templates
      latest sync point
      Preparing for 4.0.3 release.

Karthikeyan Singaravelan (1):
      bpo-39966: Revert "bpo-25597: Ensure wraps' return value is used for magic methods in MagicMock" (GH-19734)

Serhiy Storchaka (1):
      bpo-40126: Fix reverting multiple patches in unittest.mock. (GH-19351)

idanw206 (1):
      bpo-42532: Check if NonCallableMock's spec_arg is not None instead of call its __bool__ function (GH23613)

vabr-g (1):
      bpo-41877 Check for asert, aseert, assrt in mocks (GH-23165)
  • Loading branch information
phmccarty authored and clrpackages committed Dec 15, 2020
1 parent 647a524 commit 46ec408
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Makefile
@@ -1,5 +1,5 @@
PKG_NAME := python-mock
URL = https://files.pythonhosted.org/packages/2e/35/594f501b2a0fb3732c8190ca885dfdf60af72d678cd5fa8169c358717567/mock-4.0.2.tar.gz
URL = https://files.pythonhosted.org/packages/e2/be/3ea39a8fd4ed3f9a25aae18a1bff2df7a610bca93c8ede7475e32d8b73a0/mock-4.0.3.tar.gz
ARCHIVES =

include ../common/Makefile.common
17 changes: 0 additions & 17 deletions mock-2.0.0.tar.gz.asc

This file was deleted.

2 changes: 1 addition & 1 deletion options.conf
@@ -1,6 +1,6 @@
[package]
name = python-mock
url = https://files.pythonhosted.org/packages/2e/35/594f501b2a0fb3732c8190ca885dfdf60af72d678cd5fa8169c358717567/mock-4.0.2.tar.gz
url = https://files.pythonhosted.org/packages/e2/be/3ea39a8fd4ed3f9a25aae18a1bff2df7a610bca93c8ede7475e32d8b73a0/mock-4.0.3.tar.gz
archives =
giturl = https://github.com/testing-cabal/mock.git
domain =
Expand Down
16 changes: 8 additions & 8 deletions python-mock.spec
Expand Up @@ -3,10 +3,10 @@
# Generated by: autospec.py
#
Name : python-mock
Version : 4.0.2
Release : 83
URL : https://files.pythonhosted.org/packages/2e/35/594f501b2a0fb3732c8190ca885dfdf60af72d678cd5fa8169c358717567/mock-4.0.2.tar.gz
Source0 : https://files.pythonhosted.org/packages/2e/35/594f501b2a0fb3732c8190ca885dfdf60af72d678cd5fa8169c358717567/mock-4.0.2.tar.gz
Version : 4.0.3
Release : 84
URL : https://files.pythonhosted.org/packages/e2/be/3ea39a8fd4ed3f9a25aae18a1bff2df7a610bca93c8ede7475e32d8b73a0/mock-4.0.3.tar.gz
Source0 : https://files.pythonhosted.org/packages/e2/be/3ea39a8fd4ed3f9a25aae18a1bff2df7a610bca93c8ede7475e32d8b73a0/mock-4.0.3.tar.gz
Summary : Rolling backport of unittest.mock for all Pythons
Group : Development/Tools
License : BSD-2-Clause
Expand Down Expand Up @@ -55,15 +55,15 @@ python3 components for the python-mock package.


%prep
%setup -q -n mock-4.0.2
cd %{_builddir}/mock-4.0.2
%setup -q -n mock-4.0.3
cd %{_builddir}/mock-4.0.3

%build
export http_proxy=http://127.0.0.1:9/
export https_proxy=http://127.0.0.1:9/
export no_proxy=localhost,127.0.0.1,0.0.0.0
export LANG=C.UTF-8
export SOURCE_DATE_EPOCH=1603402228
export SOURCE_DATE_EPOCH=1607644879
export GCC_IGNORE_WERROR=1
export AR=gcc-ar
export RANLIB=gcc-ranlib
Expand All @@ -79,7 +79,7 @@ python3 setup.py build
export MAKEFLAGS=%{?_smp_mflags}
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/share/package-licenses/python-mock
cp %{_builddir}/mock-4.0.2/LICENSE.txt %{buildroot}/usr/share/package-licenses/python-mock/2eec66c59087d1cf096a35fc620161b222591e05
cp %{_builddir}/mock-4.0.3/LICENSE.txt %{buildroot}/usr/share/package-licenses/python-mock/2eec66c59087d1cf096a35fc620161b222591e05
python3 -tt setup.py build install --root=%{buildroot}
echo ----[ mark ]----
cat %{buildroot}/usr/lib/python3*/site-packages/*/requires.txt || :
Expand Down
2 changes: 1 addition & 1 deletion release
@@ -1 +1 @@
83
84
2 changes: 1 addition & 1 deletion upstream
@@ -1 +1 @@
2a374c880274ca11acd0e9f6f1a7601ce336fc96/mock-4.0.2.tar.gz
348e1bd2d19bd25819709ec1adc0b04c926c9a0c/mock-4.0.3.tar.gz
2 changes: 1 addition & 1 deletion versions
@@ -1 +1 @@
4.0.2
4.0.3
1 change: 1 addition & 0 deletions whatrequires
Expand Up @@ -15,6 +15,7 @@ knack
koji
oauthlib
pyquery
python-dotenv
pyudev
pywbem
requests-mock
Expand Down

0 comments on commit 46ec408

Please sign in to comment.