From 34eae97d0447ea1756d3c3061bb15aa2cf1abd5d Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Wed, 16 May 2018 18:03:35 +0200 Subject: [PATCH 01/40] Back port to EPEL7 --- python-httmock.spec | 35 +++++++---------------------------- 1 file changed, 7 insertions(+), 28 deletions(-) diff --git a/python-httmock.spec b/python-httmock.spec index 99724d5..61e4ce3 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -3,7 +3,7 @@ Name: python-%{pypi_name} Version: 1.2.6 -Release: 1%{?dist} +Release: 1%{?dist}.1 Summary: A mocking library for requests License: ASL 2.0 @@ -13,12 +13,8 @@ Source1: https://raw.githubusercontent.com/patrys/httmock/%{version}/test BuildArch: noarch BuildRequires: python2-devel -BuildRequires: python2dist(requests) >= 1.0.0 -BuildRequires: python2dist(setuptools) - -BuildRequires: python3-devel -BuildRequires: python3dist(requests) >= 1.0.0 -BuildRequires: python3dist(setuptools) +BuildRequires: python2-requests >= 1.0.0 +BuildRequires: python2-setuptools %description A mocking library for requests for Python. @@ -27,24 +23,13 @@ that use requests internally. %package -n python2-%{pypi_name} Summary: %{summary} -%{?python_provide:%python_provide python2-%{pypi_name}} -Requires: python2dist(requests) >= 1.0.0 +Requires: python2-requests >= 1.0.0 %description -n python2-%{pypi_name} A mocking library for requests for Python. You can use it to mock third-party APIs and test libraries that use requests internally. -%package -n python3-%{pypi_name} -Summary: %{summary} -%{?python_provide:%python_provide python3-%{pypi_name}} - -Requires: python3dist(requests) >= 1.0.0 -%description -n python3-%{pypi_name} -A mocking library for requests for Python. -You can use it to mock third-party APIs and test libraries -that use requests internally. - %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info @@ -53,17 +38,14 @@ cp %{SOURCE1} . %build %py2_build -%py3_build %install # Must do the default python version install last because # the scripts in /usr/bin are overwritten with every setup.py install. %py2_install -%py3_install %check %{__python2} setup.py test -%{__python3} setup.py test %files -n python2-%{pypi_name} %license LICENSE @@ -71,13 +53,10 @@ cp %{SOURCE1} . %{python2_sitelib}/%{pypi_name}.py* %{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info -%files -n python3-%{pypi_name} -%license LICENSE -%doc README.md -%{python3_sitelib}/__pycache__/* -%{python3_sitelib}/%{pypi_name}.py -%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog +* Fri May 11 2018 Steve Traylen - 1.2.6-1 1 +- Back port to EPEL7 + * Fri May 11 2018 Steve Traylen - 1.2.6-1 - Initial package. From 06f48356c82ff93903440a650351690b53a2c424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 19 Jun 2018 11:04:57 +0200 Subject: [PATCH 02/40] Rebuilt for Python 3.7 --- python-httmock.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index 99724d5..6ab688e 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -3,7 +3,7 @@ Name: python-%{pypi_name} Version: 1.2.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -79,5 +79,8 @@ cp %{SOURCE1} . %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog +* Tue Jun 19 2018 Miro Hrončok - 1.2.6-2 +- Rebuilt for Python 3.7 + * Fri May 11 2018 Steve Traylen - 1.2.6-1 - Initial package. From 185c161e38729e75471f05c4c3a8e877b198ac46 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 14 Jul 2018 00:32:30 +0000 Subject: [PATCH 03/40] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-httmock.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index 6ab688e..63f8d65 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -3,7 +3,7 @@ Name: python-%{pypi_name} Version: 1.2.6 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -79,6 +79,9 @@ cp %{SOURCE1} . %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog +* Sat Jul 14 2018 Fedora Release Engineering - 1.2.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Tue Jun 19 2018 Miro Hrončok - 1.2.6-2 - Rebuilt for Python 3.7 From ba5b941d389db8e8e354f16ce62393b48bd2258c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 4 Jan 2019 15:20:15 +0100 Subject: [PATCH 04/40] Subpackage python2-httmock has been removed --- python-httmock.spec | 31 +++++-------------------------- 1 file changed, 5 insertions(+), 26 deletions(-) diff --git a/python-httmock.spec b/python-httmock.spec index 63f8d65..bb2c61e 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -3,7 +3,7 @@ Name: python-%{pypi_name} Version: 1.2.6 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -12,10 +12,6 @@ Source0: https://files.pythonhosted.org/packages/source/h/httmock/httmock Source1: https://raw.githubusercontent.com/patrys/httmock/%{version}/tests.py BuildArch: noarch -BuildRequires: python2-devel -BuildRequires: python2dist(requests) >= 1.0.0 -BuildRequires: python2dist(setuptools) - BuildRequires: python3-devel BuildRequires: python3dist(requests) >= 1.0.0 BuildRequires: python3dist(setuptools) @@ -25,16 +21,6 @@ A mocking library for requests for Python. You can use it to mock third-party APIs and test libraries that use requests internally. -%package -n python2-%{pypi_name} -Summary: %{summary} -%{?python_provide:%python_provide python2-%{pypi_name}} - -Requires: python2dist(requests) >= 1.0.0 -%description -n python2-%{pypi_name} -A mocking library for requests for Python. -You can use it to mock third-party APIs and test libraries -that use requests internally. - %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} @@ -52,25 +38,14 @@ rm -rf %{pypi_name}.egg-info cp %{SOURCE1} . %build -%py2_build %py3_build %install -# Must do the default python version install last because -# the scripts in /usr/bin are overwritten with every setup.py install. -%py2_install %py3_install %check -%{__python2} setup.py test %{__python3} setup.py test -%files -n python2-%{pypi_name} -%license LICENSE -%doc README.md -%{python2_sitelib}/%{pypi_name}.py* -%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info - %files -n python3-%{pypi_name} %license LICENSE %doc README.md @@ -79,6 +54,10 @@ cp %{SOURCE1} . %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog +* Fri Jan 04 2019 Miro Hrončok - 1.2.6-4 +- Subpackage python2-httmock has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Sat Jul 14 2018 Fedora Release Engineering - 1.2.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild From a651d52507610e93dc1cdec9e48c9d4d1e012425 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Fri, 4 Jan 2019 21:47:37 +0100 Subject: [PATCH 05/40] Enable python dependency generator References: https://fedoraproject.org/wiki/Changes/EnablingPythonGeneratorsByDefault Signed-off-by: Igor Gnatenko --- python-httmock.spec | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/python-httmock.spec b/python-httmock.spec index bb2c61e..df363e3 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -1,9 +1,10 @@ +%{?python_enable_dependency_generator} # Created by pyp2rpm-3.3.0 %global pypi_name httmock Name: python-%{pypi_name} Version: 1.2.6 -Release: 4%{?dist} +Release: 5%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -12,10 +13,6 @@ Source0: https://files.pythonhosted.org/packages/source/h/httmock/httmock Source1: https://raw.githubusercontent.com/patrys/httmock/%{version}/tests.py BuildArch: noarch -BuildRequires: python3-devel -BuildRequires: python3dist(requests) >= 1.0.0 -BuildRequires: python3dist(setuptools) - %description A mocking library for requests for Python. You can use it to mock third-party APIs and test libraries @@ -24,8 +21,10 @@ that use requests internally. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3dist(requests) >= 1.0.0 -Requires: python3dist(requests) >= 1.0.0 %description -n python3-%{pypi_name} A mocking library for requests for Python. You can use it to mock third-party APIs and test libraries @@ -54,6 +53,9 @@ cp %{SOURCE1} . %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog +* Fri Jan 04 2019 Igor Gnatenko - 1.2.6-5 +- Enable python dependency generator + * Fri Jan 04 2019 Miro Hrončok - 1.2.6-4 - Subpackage python2-httmock has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal From 9587fb5b98f4aa4a65790e1618546ea36fb900c8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 2 Feb 2019 07:12:07 +0000 Subject: [PATCH 06/40] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-httmock.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index df363e3..bcef5eb 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -4,7 +4,7 @@ Name: python-%{pypi_name} Version: 1.2.6 -Release: 5%{?dist} +Release: 6%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -53,6 +53,9 @@ cp %{SOURCE1} . %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog +* Sat Feb 02 2019 Fedora Release Engineering - 1.2.6-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Fri Jan 04 2019 Igor Gnatenko - 1.2.6-5 - Enable python dependency generator From 8a143fc15bead9186a4903340472c4d27c330b34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 4 Jul 2019 16:21:49 +0200 Subject: [PATCH 07/40] Remove .0 from (Build)Requires See https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/NLMEX6MY7DQLWTD2PMX4WGC3L3ER4HFS/ --- python-httmock.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index bcef5eb..2a5384d 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -23,7 +23,7 @@ Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} BuildRequires: python3-devel BuildRequires: python3-setuptools -BuildRequires: python3dist(requests) >= 1.0.0 +BuildRequires: python3dist(requests) >= 1 %description -n python3-%{pypi_name} A mocking library for requests for Python. From 5549c90fa1af92a1ab0c7e5039c9321a48721430 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 26 Jul 2019 13:54:30 +0000 Subject: [PATCH 08/40] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-httmock.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index 2a5384d..6838656 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -4,7 +4,7 @@ Name: python-%{pypi_name} Version: 1.2.6 -Release: 6%{?dist} +Release: 7%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -53,6 +53,9 @@ cp %{SOURCE1} . %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog +* Fri Jul 26 2019 Fedora Release Engineering - 1.2.6-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Sat Feb 02 2019 Fedora Release Engineering - 1.2.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From 3d96ff77f1a8d30aa5e585e4d7135bc9f4812fce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 19 Aug 2019 10:40:58 +0200 Subject: [PATCH 09/40] Rebuilt for Python 3.8 --- python-httmock.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index 6838656..c926987 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -4,7 +4,7 @@ Name: python-%{pypi_name} Version: 1.2.6 -Release: 7%{?dist} +Release: 8%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -53,6 +53,9 @@ cp %{SOURCE1} . %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog +* Mon Aug 19 2019 Miro Hrončok - 1.2.6-8 +- Rebuilt for Python 3.8 + * Fri Jul 26 2019 Fedora Release Engineering - 1.2.6-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From 6f3b8629657a7b1001991981cba10d4b4d95f69d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 3 Oct 2019 14:14:31 +0200 Subject: [PATCH 10/40] Rebuilt for Python 3.8.0rc1 (#1748018) --- python-httmock.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index c926987..a7c0490 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -4,7 +4,7 @@ Name: python-%{pypi_name} Version: 1.2.6 -Release: 8%{?dist} +Release: 9%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -53,6 +53,9 @@ cp %{SOURCE1} . %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog +* Thu Oct 03 2019 Miro Hrončok - 1.2.6-9 +- Rebuilt for Python 3.8.0rc1 (#1748018) + * Mon Aug 19 2019 Miro Hrončok - 1.2.6-8 - Rebuilt for Python 3.8 From 5d192ad7854b41c1591455178409833d05347c7d Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Wed, 13 Nov 2019 12:06:58 +0100 Subject: [PATCH 11/40] Update to 1.3.0 --- .gitignore | 2 ++ python-httmock.spec | 7 +++++-- sources | 3 ++- tests.py | 34 ++++++++++++++++++++++++++++++++++ 4 files changed, 43 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index adc2300..99f6d2b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /httmock-1.2.6.tar.gz +/httmock-1.3.0.tar.gz +/tests.py diff --git a/python-httmock.spec b/python-httmock.spec index a7c0490..4de895e 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -3,8 +3,8 @@ %global pypi_name httmock Name: python-%{pypi_name} -Version: 1.2.6 -Release: 9%{?dist} +Version: 1.3.0 +Release: 1%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -53,6 +53,9 @@ cp %{SOURCE1} . %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog +* Wed Nov 13 2019 Steve Traylen - 1.3.0-1 +- Update to 1.3.0 + * Thu Oct 03 2019 Miro Hrončok - 1.2.6-9 - Rebuilt for Python 3.8.0rc1 (#1748018) diff --git a/sources b/sources index be3e2e0..29df162 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ -SHA512 (httmock-1.2.6.tar.gz) = a31b4a28383c052bb15ca5c2f07f96c8654f44d15df05fa7972e410b9c1a40f70c6ed48256dd7cf3a0486f8555142ba59330edd9c8beb003785ecdb535ddfb69 +SHA512 (tests.py) = f869c9923bdd68c8758c1937eb61a7b8e2aae1ef32dce9ca850460dfdfd8daae7c20e1e5b9c298c1ce600900cbe2c34ba9660bd0ded0dbd34e817e39a18eee72 +SHA512 (httmock-1.3.0.tar.gz) = f713ddf45675738582a3611e01a55babce2951231b34fb9ca6b1b64fcf60a3862994ff7ad4cd7a224a116c6acb1caa267978a7cb6fedd02676fa2a01f90e93aa diff --git a/tests.py b/tests.py index 7a13cb3..c396192 100644 --- a/tests.py +++ b/tests.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- import requests import unittest @@ -41,6 +42,22 @@ def facebook_mock(url, request): def facebook_mock_count(url, request): return 'Hello from Facebook' +@urlmatch(netloc=r'(.*\.)?google\.com$', path=r'^/$', method='POST') +@remember_called +def google_mock_store_requests(url, request): + return 'Posting at Google' + + +@all_requests +def charset_utf8(url, request): + return { + 'content': u'Motörhead'.encode('utf-8'), + 'status_code': 200, + 'headers': { + 'Content-Type': 'text/plain; charset=utf-8' + } + } + def any_mock(url, request): return 'Hello from %s' % (url.netloc,) @@ -112,6 +129,13 @@ class MockTest(unittest.TestCase): with HTTMock(response_content): self.assertRaises(TypeError, requests.get, 'http://example.com/') + def test_encoding_from_contenttype(self): + with HTTMock(charset_utf8): + r = requests.get('http://example.com/') + self.assertEqual(r.encoding, 'utf-8') + self.assertEqual(r.text, u'Motörhead') + self.assertEqual(r.content, r.text.encode('utf-8')) + class DecoratorTest(unittest.TestCase): @@ -334,3 +358,13 @@ class RememberCalledTest(unittest.TestCase): self.several_calls(1, requests.get, 'http://facebook.com/') self.assertEquals(facebook_mock_count.call['count'], 4) + + def test_store_several_requests(self): + with HTTMock(google_mock_store_requests): + payload = {"query": "foo"} + requests.post('http://google.com', data=payload) + + self.assertTrue(google_mock_store_requests.call['called']) + self.assertEqual(google_mock_store_requests.call['count'], 1) + request = google_mock_store_requests.call['requests'][0] + self.assertEqual(request.body, 'query=foo') From 3b9079c50340ca3d6c48a92df234b9e477a19f24 Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Wed, 13 Nov 2019 15:02:40 +0100 Subject: [PATCH 12/40] Add python36-httmock and python34-httmock --- httmock-1.3.0.tar.gz | Bin 0 -> 4428 bytes python-httmock.spec | 55 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 httmock-1.3.0.tar.gz diff --git a/httmock-1.3.0.tar.gz b/httmock-1.3.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0c3e61534ab5205144949f179cfcae7a0e981a95 GIT binary patch literal 4428 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 Sb*ak>mj3`BYcJjacmM!U8`S~; literal 0 HcmV?d00001 diff --git a/python-httmock.spec b/python-httmock.spec index 61e4ce3..45f2036 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -3,7 +3,7 @@ Name: python-%{pypi_name} Version: 1.2.6 -Release: 1%{?dist}.1 +Release: 2%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -16,6 +16,14 @@ BuildRequires: python2-devel BuildRequires: python2-requests >= 1.0.0 BuildRequires: python2-setuptools +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-requests >= 1.0.0 +BuildRequires: python%{python3_pkgversion}-setuptools + +BuildRequires: python%{python3_other_pkgversion}-devel +BuildRequires: python%{python3_other_pkgversion}-requests >= 1.0.0 +BuildRequires: python%{python3_other_pkgversion}-setuptools + %description A mocking library for requests for Python. You can use it to mock third-party APIs and test libraries @@ -25,11 +33,33 @@ that use requests internally. Summary: %{summary} Requires: python2-requests >= 1.0.0 +%{?python_provide:%python_provide python2-%{pypi_name}} + %description -n python2-%{pypi_name} A mocking library for requests for Python. You can use it to mock third-party APIs and test libraries that use requests internally. +%package -n python%{python3_pkgversion}-%{pypi_name} +Summary: %{summary} + +Requires: python%{python3_pkgversion}-requests >= 1.0.0 +%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} +%description -n python%{python3_pkgversion}-%{pypi_name} +A mocking library for requests for Python. +You can use it to mock third-party APIs and test libraries +that use requests internally. + +%package -n python%{python3_other_pkgversion}-%{pypi_name} +Summary: %{summary} + +Requires: python%{python3_other_pkgversion}-requests >= 1.0.0 +%{?python_provide:%python_provide python%{python3_other_pkgversion}-%{pypi_name}} +%description -n python%{python3_other_pkgversion}-%{pypi_name} +A mocking library for requests for Python. +You can use it to mock third-party APIs and test libraries +that use requests internally. + %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info @@ -38,14 +68,20 @@ cp %{SOURCE1} . %build %py2_build +%py3_build +%py3_other_build %install # Must do the default python version install last because # the scripts in /usr/bin are overwritten with every setup.py install. %py2_install +%py3_install +%py3_other_install %check %{__python2} setup.py test +%{__python3} setup.py test +%{__python3_other} setup.py test %files -n python2-%{pypi_name} %license LICENSE @@ -53,8 +89,25 @@ cp %{SOURCE1} . %{python2_sitelib}/%{pypi_name}.py* %{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info +%files -n python%{python3_pkgversion}-%{pypi_name} +%license LICENSE +%doc README.md +%{python3_sitelib}/%{pypi_name}.py* +%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info +%{python3_sitelib}/__pycache__/%{pypi_name}.cpython-* + +%files -n python%{python3_other_pkgversion}-%{pypi_name} +%license LICENSE +%doc README.md +%{python3_other_sitelib}/%{pypi_name}.py* +%{python3_other_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info +%{python3_other_sitelib}/__pycache__/%{pypi_name}.cpython-* + %changelog +* Wed Nov 13 2019 Steve Traylen - 1.2.6-2 +- Add python3 packages to epel7 + * Fri May 11 2018 Steve Traylen - 1.2.6-1 1 - Back port to EPEL7 From 8be3a0d0e52c27cd28f2da27091996251b821967 Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Wed, 13 Nov 2019 15:05:50 +0100 Subject: [PATCH 13/40] delete some white space --- python-httmock.spec | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/python-httmock.spec b/python-httmock.spec index 45f2036..a71d84f 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -11,7 +11,7 @@ URL: https://github.com/patrys/httmock Source0: https://files.pythonhosted.org/packages/source/h/httmock/httmock-%{version}.tar.gz Source1: https://raw.githubusercontent.com/patrys/httmock/%{version}/tests.py BuildArch: noarch - + BuildRequires: python2-devel BuildRequires: python2-requests >= 1.0.0 BuildRequires: python2-setuptools @@ -26,39 +26,39 @@ BuildRequires: python%{python3_other_pkgversion}-setuptools %description A mocking library for requests for Python. -You can use it to mock third-party APIs and test libraries -that use requests internally. +You can use it to mock third-party APIs and test libraries +that use requests internally. %package -n python2-%{pypi_name} Summary: %{summary} - + Requires: python2-requests >= 1.0.0 %{?python_provide:%python_provide python2-%{pypi_name}} %description -n python2-%{pypi_name} A mocking library for requests for Python. -You can use it to mock third-party APIs and test libraries -that use requests internally. +You can use it to mock third-party APIs and test libraries +that use requests internally. %package -n python%{python3_pkgversion}-%{pypi_name} Summary: %{summary} - + Requires: python%{python3_pkgversion}-requests >= 1.0.0 %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} %description -n python%{python3_pkgversion}-%{pypi_name} A mocking library for requests for Python. -You can use it to mock third-party APIs and test libraries -that use requests internally. +You can use it to mock third-party APIs and test libraries +that use requests internally. %package -n python%{python3_other_pkgversion}-%{pypi_name} Summary: %{summary} - + Requires: python%{python3_other_pkgversion}-requests >= 1.0.0 %{?python_provide:%python_provide python%{python3_other_pkgversion}-%{pypi_name}} %description -n python%{python3_other_pkgversion}-%{pypi_name} A mocking library for requests for Python. -You can use it to mock third-party APIs and test libraries -that use requests internally. +You can use it to mock third-party APIs and test libraries +that use requests internally. %prep %autosetup -n %{pypi_name}-%{version} From 177688ec4c1e1621695773a16be1c62fbb8aa51f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 30 Jan 2020 12:38:52 +0000 Subject: [PATCH 14/40] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-httmock.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index 4de895e..2607e48 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -4,7 +4,7 @@ Name: python-%{pypi_name} Version: 1.3.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -53,6 +53,9 @@ cp %{SOURCE1} . %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog +* Thu Jan 30 2020 Fedora Release Engineering - 1.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Wed Nov 13 2019 Steve Traylen - 1.3.0-1 - Update to 1.3.0 From 4a519a2892cff156c75da69f42c1173fe7d64ad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 26 May 2020 03:19:13 +0200 Subject: [PATCH 15/40] Rebuilt for Python 3.9 --- python-httmock.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index 2607e48..085117b 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -4,7 +4,7 @@ Name: python-%{pypi_name} Version: 1.3.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -53,6 +53,9 @@ cp %{SOURCE1} . %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog +* Tue May 26 2020 Miro Hrončok - 1.3.0-3 +- Rebuilt for Python 3.9 + * Thu Jan 30 2020 Fedora Release Engineering - 1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild From eec796529298eb5d4f03b34def63364de2c36a6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 13 Jul 2020 21:04:33 +0200 Subject: [PATCH 16/40] Replace Python version glob with macro (needed for Python 3.10+) See https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/PQIGCQCRNBYNXBX2ICWEM3PLDLNOG2ZT/ Co-authored-by: Tomas Hrnciar --- python-httmock.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index 085117b..c28aa6d 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -50,7 +50,7 @@ cp %{SOURCE1} . %doc README.md %{python3_sitelib}/__pycache__/* %{python3_sitelib}/%{pypi_name}.py -%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog * Tue May 26 2020 Miro Hrončok - 1.3.0-3 From 25fa48a59e711acb6e5326d2ad4947a3bad68c93 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 29 Jul 2020 01:28:39 +0000 Subject: [PATCH 17/40] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-httmock.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index c28aa6d..33be6c1 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -4,7 +4,7 @@ Name: python-%{pypi_name} Version: 1.3.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -53,6 +53,9 @@ cp %{SOURCE1} . %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog +* Wed Jul 29 2020 Fedora Release Engineering - 1.3.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Tue May 26 2020 Miro Hrončok - 1.3.0-3 - Rebuilt for Python 3.9 From 18aa6f184d3ef6ccf97ca453d26737ce6fdfbf9c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 27 Jan 2021 11:04:50 +0000 Subject: [PATCH 18/40] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-httmock.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index 33be6c1..e03019a 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -4,7 +4,7 @@ Name: python-%{pypi_name} Version: 1.3.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -53,6 +53,9 @@ cp %{SOURCE1} . %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog +* Wed Jan 27 2021 Fedora Release Engineering - 1.3.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Wed Jul 29 2020 Fedora Release Engineering - 1.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From de30fb34ea46c201271b1024b0c21daa84a042c5 Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Mon, 8 Mar 2021 10:30:46 +0100 Subject: [PATCH 19/40] Update to 1.4.0 --- .gitignore | 1 + python-httmock.spec | 7 +++++-- sources | 3 +-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 99f6d2b..31d8679 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /httmock-1.2.6.tar.gz /httmock-1.3.0.tar.gz /tests.py +/httmock-1.4.0.tar.gz diff --git a/python-httmock.spec b/python-httmock.spec index e03019a..4003745 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -3,8 +3,8 @@ %global pypi_name httmock Name: python-%{pypi_name} -Version: 1.3.0 -Release: 5%{?dist} +Version: 1.4.0 +Release: 1%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -53,6 +53,9 @@ cp %{SOURCE1} . %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog +* Mon Mar 8 2021 Steve Traylen - 1.4.0-1 +- Update to 1.4.0 + * Wed Jan 27 2021 Fedora Release Engineering - 1.3.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild diff --git a/sources b/sources index 29df162..3d1b8d1 100644 --- a/sources +++ b/sources @@ -1,2 +1 @@ -SHA512 (tests.py) = f869c9923bdd68c8758c1937eb61a7b8e2aae1ef32dce9ca850460dfdfd8daae7c20e1e5b9c298c1ce600900cbe2c34ba9660bd0ded0dbd34e817e39a18eee72 -SHA512 (httmock-1.3.0.tar.gz) = f713ddf45675738582a3611e01a55babce2951231b34fb9ca6b1b64fcf60a3862994ff7ad4cd7a224a116c6acb1caa267978a7cb6fedd02676fa2a01f90e93aa +SHA512 (httmock-1.4.0.tar.gz) = d8674c0bd7c667d02e100f35157f717189ddcfb14d26993a87e8823aec255d191ab6ac53da0cb4035eb37caab36f8f7c6705bf10f0d8d4de62a5aa09cddacfc4 From c07b37989bc815f606eb027262a7088fe38a9f09 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 4 Jun 2021 20:38:07 +0200 Subject: [PATCH 20/40] Rebuilt for Python 3.10 --- python-httmock.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index 4003745..7164fbf 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -4,7 +4,7 @@ Name: python-%{pypi_name} Version: 1.4.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -53,6 +53,9 @@ cp %{SOURCE1} . %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog +* Fri Jun 04 2021 Python Maint - 1.4.0-2 +- Rebuilt for Python 3.10 + * Mon Mar 8 2021 Steve Traylen - 1.4.0-1 - Update to 1.4.0 From d6e9eecfcdb2b1f1f02569e3d523027818ee1fa8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 23 Jul 2021 06:46:24 +0000 Subject: [PATCH 21/40] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-httmock.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index 7164fbf..9163a41 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -4,7 +4,7 @@ Name: python-%{pypi_name} Version: 1.4.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -53,6 +53,9 @@ cp %{SOURCE1} . %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog +* Fri Jul 23 2021 Fedora Release Engineering - 1.4.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Fri Jun 04 2021 Python Maint - 1.4.0-2 - Rebuilt for Python 3.10 From 6370a52965dce189952f0c3b03c11e25f5bc48d4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jan 2022 12:41:00 +0000 Subject: [PATCH 22/40] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-httmock.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index 9163a41..df9191d 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -4,7 +4,7 @@ Name: python-%{pypi_name} Version: 1.4.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -53,6 +53,9 @@ cp %{SOURCE1} . %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog +* Fri Jan 21 2022 Fedora Release Engineering - 1.4.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Fri Jul 23 2021 Fedora Release Engineering - 1.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From f2e4b53fd333ce32e3b77710f6bc10e210fc5579 Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Fri, 28 Jan 2022 09:03:37 +0000 Subject: [PATCH 23/40] Migrate tests to tox rhbz#2019409 --- 64.diff | 19 +++++++++++++++++++ python-httmock.spec | 20 +++++++++++++------- 2 files changed, 32 insertions(+), 7 deletions(-) create mode 100644 64.diff diff --git a/64.diff b/64.diff new file mode 100644 index 0000000..7755b76 --- /dev/null +++ b/64.diff @@ -0,0 +1,19 @@ +diff --git a/tox.ini b/tox.ini +new file mode 100644 +index 0000000..e781a62 +--- /dev/null ++++ b/tox.ini +@@ -0,0 +1,13 @@ ++# Tox (https://tox.readthedocs.io) is a tool for running tests ++# in multiple virtualenvs. This configuration file will run the ++# test suite on all supported Python versions. To use it, ++# "python -m pip install tox" and then run "tox" from this directory. ++ ++[tox] ++envlist = py{27, 34, 35, 36, 37, 38, 39, 310, 311, py2, py3} ++ ++[testenv] ++deps = ++ pytest ++ requests ++commands = {envpython} -b -m pytest -W always tests.py {posargs} diff --git a/python-httmock.spec b/python-httmock.spec index df9191d..bf62fa2 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -4,13 +4,16 @@ Name: python-%{pypi_name} Version: 1.4.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: A mocking library for requests License: ASL 2.0 URL: https://github.com/patrys/httmock Source0: https://files.pythonhosted.org/packages/source/h/httmock/httmock-%{version}.tar.gz Source1: https://raw.githubusercontent.com/patrys/httmock/%{version}/tests.py +# Add a tox file. +# https://bugzilla.redhat.com/show_bug.cgi?id=2019409 +Patch0: https://patch-diff.githubusercontent.com/raw/patrys/httmock/pull/64.diff BuildArch: noarch %description @@ -20,18 +23,18 @@ that use requests internally. %package -n python3-%{pypi_name} Summary: %{summary} -%{?python_provide:%python_provide python3-%{pypi_name}} BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3dist(requests) >= 1 - + +%generate_buildrequires +%pyproject_buildrequires -t + %description -n python3-%{pypi_name} A mocking library for requests for Python. You can use it to mock third-party APIs and test libraries that use requests internally. %prep -%autosetup -n %{pypi_name}-%{version} +%autosetup -p1 -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info cp %{SOURCE1} . @@ -43,7 +46,7 @@ cp %{SOURCE1} . %py3_install %check -%{__python3} setup.py test +%{tox} %files -n python3-%{pypi_name} %license LICENSE @@ -53,6 +56,9 @@ cp %{SOURCE1} . %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog +* Fri Jan 28 2022 Steve Traylen 1.4.0-5 +- Migrate tests to tox rhbz#2019409 + * Fri Jan 21 2022 Fedora Release Engineering - 1.4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From 98cbcd0bb02383438b922077d06843e45891e109 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Mon, 13 Jun 2022 20:21:04 +0200 Subject: [PATCH 24/40] Rebuilt for Python 3.11 --- python-httmock.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index bf62fa2..930d74c 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -4,7 +4,7 @@ Name: python-%{pypi_name} Version: 1.4.0 -Release: 5%{?dist} +Release: 6%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -56,6 +56,9 @@ cp %{SOURCE1} . %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog +* Mon Jun 13 2022 Python Maint - 1.4.0-6 +- Rebuilt for Python 3.11 + * Fri Jan 28 2022 Steve Traylen 1.4.0-5 - Migrate tests to tox rhbz#2019409 From 351e29f86698c30fe1c922f02d1e1109451a001f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 22 Jul 2022 19:10:42 +0000 Subject: [PATCH 25/40] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-httmock.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index 930d74c..60a741e 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -4,7 +4,7 @@ Name: python-%{pypi_name} Version: 1.4.0 -Release: 6%{?dist} +Release: 7%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -56,6 +56,9 @@ cp %{SOURCE1} . %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog +* Fri Jul 22 2022 Fedora Release Engineering - 1.4.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Mon Jun 13 2022 Python Maint - 1.4.0-6 - Rebuilt for Python 3.11 From d6f92e3e61e425f7777cef31e1be463bef006a21 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 20 Jan 2023 13:50:29 +0000 Subject: [PATCH 26/40] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-httmock.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index 60a741e..d3e21ff 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -4,7 +4,7 @@ Name: python-%{pypi_name} Version: 1.4.0 -Release: 7%{?dist} +Release: 8%{?dist} Summary: A mocking library for requests License: ASL 2.0 @@ -56,6 +56,9 @@ cp %{SOURCE1} . %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog +* Fri Jan 20 2023 Fedora Release Engineering - 1.4.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Fri Jul 22 2022 Fedora Release Engineering - 1.4.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 0014b0654c5272224242808b32aae435fb8c9f1c Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Fri, 5 May 2023 22:18:26 +0200 Subject: [PATCH 27/40] Complete migration to pyproject macros * Complete migration to pyproject macros * Switch SPDX license field * Use tests.py matching released version of module (rhbz#2175195) --- .gitignore | 1 - python-httmock.spec | 60 +++++++++++++++++++++++++-------------------- tests.py | 31 ++++++++++++++++++++--- 3 files changed, 61 insertions(+), 31 deletions(-) diff --git a/.gitignore b/.gitignore index 31d8679..50cff98 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ /httmock-1.2.6.tar.gz /httmock-1.3.0.tar.gz -/tests.py /httmock-1.4.0.tar.gz diff --git a/python-httmock.spec b/python-httmock.spec index d3e21ff..0474a21 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -1,61 +1,67 @@ -%{?python_enable_dependency_generator} -# Created by pyp2rpm-3.3.0 -%global pypi_name httmock - -Name: python-%{pypi_name} +Name: python-httmock Version: 1.4.0 -Release: 8%{?dist} +Release: 9%{?dist} Summary: A mocking library for requests - -License: ASL 2.0 +License: Apache-2.0 URL: https://github.com/patrys/httmock + +# Switch to github at next release to avoid the extra Source1 Source0: https://files.pythonhosted.org/packages/source/h/httmock/httmock-%{version}.tar.gz Source1: https://raw.githubusercontent.com/patrys/httmock/%{version}/tests.py + # Add a tox file. # https://bugzilla.redhat.com/show_bug.cgi?id=2019409 Patch0: https://patch-diff.githubusercontent.com/raw/patrys/httmock/pull/64.diff BuildArch: noarch -%description +%global _description %{expand: A mocking library for requests for Python. You can use it to mock third-party APIs and test libraries -that use requests internally. +that use requests internally} -%package -n python3-%{pypi_name} + +%description %_description + +%package -n python3-httmock Summary: %{summary} BuildRequires: python3-devel +%description -n python3-httmock %_description + + +%prep +%autosetup -p1 -n httmock-%{version} +cp %{SOURCE1} . + %generate_buildrequires %pyproject_buildrequires -t -%description -n python3-%{pypi_name} -A mocking library for requests for Python. -You can use it to mock third-party APIs and test libraries -that use requests internally. - -%prep -%autosetup -p1 -n %{pypi_name}-%{version} -# Remove bundled egg-info -rm -rf %{pypi_name}.egg-info -cp %{SOURCE1} . %build -%py3_build +%pyproject_wheel + %install -%py3_install +%pyproject_install + +%pyproject_save_files httmock + %check %{tox} -%files -n python3-%{pypi_name} + +%files -n python3-httmock -f %{pyproject_files} %license LICENSE %doc README.md -%{python3_sitelib}/__pycache__/* -%{python3_sitelib}/%{pypi_name}.py -%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info + %changelog +* Fri May 05 2023 Steve Traylen 1.4.0-9 +- Complete migration to pyproject macros +- Switch SPDX license field +- Use tests.py matching released version of module (rhbz#2175195) + * Fri Jan 20 2023 Fedora Release Engineering - 1.4.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild diff --git a/tests.py b/tests.py index c396192..9d4cabb 100644 --- a/tests.py +++ b/tests.py @@ -66,7 +66,8 @@ def any_mock(url, request): def dict_any_mock(url, request): return { 'content': 'Hello from %s' % (url.netloc,), - 'status_code': 200 + 'status_code': 200, + 'http_vsn': 10, } @@ -136,6 +137,13 @@ class MockTest(unittest.TestCase): self.assertEqual(r.text, u'Motörhead') self.assertEqual(r.content, r.text.encode('utf-8')) + def test_has_raw_version(self): + with HTTMock(any_mock): + r = requests.get('http://example.com') + self.assertEqual(r.raw.version, 11) + with HTTMock(dict_any_mock): + r = requests.get('http://example.com') + self.assertEqual(r.raw.version, 10) class DecoratorTest(unittest.TestCase): @@ -242,6 +250,11 @@ class ResponseTest(unittest.TestCase): r = response(200, None, {'Content-Type': 'application/json'}) self.assertEqual(r.headers['content-type'], 'application/json') + def test_response_raw_version(self): + r = response(200, None, {'Content-Type': 'application/json'}, + http_vsn=10) + self.assertEqual(r.raw.version, 10) + def test_response_cookies(self): @all_requests def response_content(url, request): @@ -268,6 +281,18 @@ class ResponseTest(unittest.TestCase): self.assertTrue('foo' in session.cookies) self.assertEqual(session.cookies['foo'], 'bar') + def test_session_persistent_cookies(self): + session = requests.Session() + with HTTMock(lambda u, r: response(200, 'Foo', {'Set-Cookie': 'foo=bar;'}, request=r)): + session.get('https://foo_bar') + with HTTMock(lambda u, r: response(200, 'Baz', {'Set-Cookie': 'baz=qux;'}, request=r)): + session.get('https://baz_qux') + self.assertEqual(len(session.cookies), 2) + self.assertTrue('foo' in session.cookies) + self.assertEqual(session.cookies['foo'], 'bar') + self.assertTrue('baz' in session.cookies) + self.assertEqual(session.cookies['baz'], 'qux') + def test_python_version_encoding_differences(self): # Previous behavior would result in this test failing in Python3 due # to how requests checks for utf-8 JSON content in requests.utils with: @@ -341,7 +366,7 @@ class RememberCalledTest(unittest.TestCase): results = self.several_calls( 1, requests.get, 'http://facebook.com/') - self.assertEquals(facebook_mock_count.call['count'], 1) + self.assertEqual(facebook_mock_count.call['count'], 1) @with_httmock(google_mock_count, facebook_mock_count) def test_several_call_decorated(self): @@ -357,7 +382,7 @@ class RememberCalledTest(unittest.TestCase): self.assertEqual(r.content, b'Hello from Facebook') self.several_calls(1, requests.get, 'http://facebook.com/') - self.assertEquals(facebook_mock_count.call['count'], 4) + self.assertEqual(facebook_mock_count.call['count'], 4) def test_store_several_requests(self): with HTTMock(google_mock_store_requests): From e954390a09d9d86c67dab086012d885315bd7164 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Wed, 14 Jun 2023 18:26:21 +0200 Subject: [PATCH 28/40] Rebuilt for Python 3.12 --- python-httmock.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index 0474a21..afbed14 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -1,6 +1,6 @@ Name: python-httmock Version: 1.4.0 -Release: 9%{?dist} +Release: 10%{?dist} Summary: A mocking library for requests License: Apache-2.0 URL: https://github.com/patrys/httmock @@ -57,6 +57,9 @@ cp %{SOURCE1} . %changelog +* Wed Jun 14 2023 Python Maint - 1.4.0-10 +- Rebuilt for Python 3.12 + * Fri May 05 2023 Steve Traylen 1.4.0-9 - Complete migration to pyproject macros - Switch SPDX license field From cec51896bc3ef4da0ebb78fc960eae19f6ef807f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jul 2023 10:23:49 +0000 Subject: [PATCH 29/40] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-httmock.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index afbed14..ca1fe7d 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -1,6 +1,6 @@ Name: python-httmock Version: 1.4.0 -Release: 10%{?dist} +Release: 11%{?dist} Summary: A mocking library for requests License: Apache-2.0 URL: https://github.com/patrys/httmock @@ -57,6 +57,9 @@ cp %{SOURCE1} . %changelog +* Fri Jul 21 2023 Fedora Release Engineering - 1.4.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Wed Jun 14 2023 Python Maint - 1.4.0-10 - Rebuilt for Python 3.12 From ba3b2a835e059014193b1482bc190ffc6098eb9f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 22 Jan 2024 02:17:21 +0000 Subject: [PATCH 30/40] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- python-httmock.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index ca1fe7d..6f216a5 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -1,6 +1,6 @@ Name: python-httmock Version: 1.4.0 -Release: 11%{?dist} +Release: 12%{?dist} Summary: A mocking library for requests License: Apache-2.0 URL: https://github.com/patrys/httmock @@ -57,6 +57,9 @@ cp %{SOURCE1} . %changelog +* Mon Jan 22 2024 Fedora Release Engineering - 1.4.0-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Jul 21 2023 Fedora Release Engineering - 1.4.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From 4fc78b39a40379d957fb5b11995fc8acf0c5f5d9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 26 Jan 2024 05:14:24 +0000 Subject: [PATCH 31/40] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- python-httmock.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index 6f216a5..fc4eae1 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -1,6 +1,6 @@ Name: python-httmock Version: 1.4.0 -Release: 12%{?dist} +Release: 13%{?dist} Summary: A mocking library for requests License: Apache-2.0 URL: https://github.com/patrys/httmock @@ -57,6 +57,9 @@ cp %{SOURCE1} . %changelog +* Fri Jan 26 2024 Fedora Release Engineering - 1.4.0-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Mon Jan 22 2024 Fedora Release Engineering - 1.4.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From bc186ff056f0f1f2de7ca829d314091baf57d820 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 7 Jun 2024 15:22:45 +0200 Subject: [PATCH 32/40] Rebuilt for Python 3.13 --- python-httmock.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index fc4eae1..bcf0ead 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -1,6 +1,6 @@ Name: python-httmock Version: 1.4.0 -Release: 13%{?dist} +Release: 14%{?dist} Summary: A mocking library for requests License: Apache-2.0 URL: https://github.com/patrys/httmock @@ -57,6 +57,9 @@ cp %{SOURCE1} . %changelog +* Fri Jun 07 2024 Python Maint - 1.4.0-14 +- Rebuilt for Python 3.13 + * Fri Jan 26 2024 Fedora Release Engineering - 1.4.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 94d72aa5c207a3a9f43c558c6f3e29cef69734fe Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jul 2024 12:10:47 +0000 Subject: [PATCH 33/40] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- python-httmock.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index bcf0ead..fa08830 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -1,6 +1,6 @@ Name: python-httmock Version: 1.4.0 -Release: 14%{?dist} +Release: 15%{?dist} Summary: A mocking library for requests License: Apache-2.0 URL: https://github.com/patrys/httmock @@ -57,6 +57,9 @@ cp %{SOURCE1} . %changelog +* Fri Jul 19 2024 Fedora Release Engineering - 1.4.0-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Fri Jun 07 2024 Python Maint - 1.4.0-14 - Rebuilt for Python 3.13 From d931f4b75aa2266e2a5d4ad805c3d33c4ea2ea21 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 18 Jan 2025 15:00:27 +0000 Subject: [PATCH 34/40] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- python-httmock.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-httmock.spec b/python-httmock.spec index fa08830..7e0ef8e 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -1,6 +1,6 @@ Name: python-httmock Version: 1.4.0 -Release: 15%{?dist} +Release: 16%{?dist} Summary: A mocking library for requests License: Apache-2.0 URL: https://github.com/patrys/httmock @@ -57,6 +57,9 @@ cp %{SOURCE1} . %changelog +* Sat Jan 18 2025 Fedora Release Engineering - 1.4.0-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Fri Jul 19 2024 Fedora Release Engineering - 1.4.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From f44b8e05c0f5d0cb73224c926e2459a90c570904 Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Sat, 15 Feb 2025 17:32:12 +0100 Subject: [PATCH 35/40] Convert to %autorelease and %autochangelog [skip changelog] --- changelog | 92 +++++++++++++++++++++++++++++++++++++++++++ python-httmock.spec | 95 +-------------------------------------------- 2 files changed, 94 insertions(+), 93 deletions(-) create mode 100644 changelog diff --git a/changelog b/changelog new file mode 100644 index 0000000..29ef604 --- /dev/null +++ b/changelog @@ -0,0 +1,92 @@ +* Sat Jan 18 2025 Fedora Release Engineering - 1.4.0-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Fri Jul 19 2024 Fedora Release Engineering - 1.4.0-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 1.4.0-14 +- Rebuilt for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 1.4.0-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 1.4.0-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 1.4.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jun 14 2023 Python Maint - 1.4.0-10 +- Rebuilt for Python 3.12 + +* Fri May 05 2023 Steve Traylen 1.4.0-9 +- Complete migration to pyproject macros +- Switch SPDX license field +- Use tests.py matching released version of module (rhbz#2175195) + +* Fri Jan 20 2023 Fedora Release Engineering - 1.4.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.4.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 1.4.0-6 +- Rebuilt for Python 3.11 + +* Fri Jan 28 2022 Steve Traylen 1.4.0-5 +- Migrate tests to tox rhbz#2019409 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.4.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 1.4.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 1.4.0-2 +- Rebuilt for Python 3.10 + +* Mon Mar 8 2021 Steve Traylen - 1.4.0-1 +- Update to 1.4.0 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.3.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 1.3.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 1.3.0-3 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Nov 13 2019 Steve Traylen - 1.3.0-1 +- Update to 1.3.0 + +* Thu Oct 03 2019 Miro Hrončok - 1.2.6-9 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 1.2.6-8 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.2.6-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 1.2.6-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jan 04 2019 Igor Gnatenko - 1.2.6-5 +- Enable python dependency generator + +* Fri Jan 04 2019 Miro Hrončok - 1.2.6-4 +- Subpackage python2-httmock has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Sat Jul 14 2018 Fedora Release Engineering - 1.2.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 1.2.6-2 +- Rebuilt for Python 3.7 + +* Fri May 11 2018 Steve Traylen - 1.2.6-1 +- Initial package. diff --git a/python-httmock.spec b/python-httmock.spec index 7e0ef8e..596edac 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -1,6 +1,6 @@ Name: python-httmock Version: 1.4.0 -Release: 16%{?dist} +Release: %autorelease Summary: A mocking library for requests License: Apache-2.0 URL: https://github.com/patrys/httmock @@ -57,95 +57,4 @@ cp %{SOURCE1} . %changelog -* Sat Jan 18 2025 Fedora Release Engineering - 1.4.0-16 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Fri Jul 19 2024 Fedora Release Engineering - 1.4.0-15 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Fri Jun 07 2024 Python Maint - 1.4.0-14 -- Rebuilt for Python 3.13 - -* Fri Jan 26 2024 Fedora Release Engineering - 1.4.0-13 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Mon Jan 22 2024 Fedora Release Engineering - 1.4.0-12 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Fri Jul 21 2023 Fedora Release Engineering - 1.4.0-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Wed Jun 14 2023 Python Maint - 1.4.0-10 -- Rebuilt for Python 3.12 - -* Fri May 05 2023 Steve Traylen 1.4.0-9 -- Complete migration to pyproject macros -- Switch SPDX license field -- Use tests.py matching released version of module (rhbz#2175195) - -* Fri Jan 20 2023 Fedora Release Engineering - 1.4.0-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Fri Jul 22 2022 Fedora Release Engineering - 1.4.0-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Mon Jun 13 2022 Python Maint - 1.4.0-6 -- Rebuilt for Python 3.11 - -* Fri Jan 28 2022 Steve Traylen 1.4.0-5 -- Migrate tests to tox rhbz#2019409 - -* Fri Jan 21 2022 Fedora Release Engineering - 1.4.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Fri Jul 23 2021 Fedora Release Engineering - 1.4.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Fri Jun 04 2021 Python Maint - 1.4.0-2 -- Rebuilt for Python 3.10 - -* Mon Mar 8 2021 Steve Traylen - 1.4.0-1 -- Update to 1.4.0 - -* Wed Jan 27 2021 Fedora Release Engineering - 1.3.0-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Wed Jul 29 2020 Fedora Release Engineering - 1.3.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Tue May 26 2020 Miro Hrončok - 1.3.0-3 -- Rebuilt for Python 3.9 - -* Thu Jan 30 2020 Fedora Release Engineering - 1.3.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Wed Nov 13 2019 Steve Traylen - 1.3.0-1 -- Update to 1.3.0 - -* Thu Oct 03 2019 Miro Hrončok - 1.2.6-9 -- Rebuilt for Python 3.8.0rc1 (#1748018) - -* Mon Aug 19 2019 Miro Hrončok - 1.2.6-8 -- Rebuilt for Python 3.8 - -* Fri Jul 26 2019 Fedora Release Engineering - 1.2.6-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Sat Feb 02 2019 Fedora Release Engineering - 1.2.6-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Jan 04 2019 Igor Gnatenko - 1.2.6-5 -- Enable python dependency generator - -* Fri Jan 04 2019 Miro Hrončok - 1.2.6-4 -- Subpackage python2-httmock has been removed - See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal - -* Sat Jul 14 2018 Fedora Release Engineering - 1.2.6-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Tue Jun 19 2018 Miro Hrončok - 1.2.6-2 -- Rebuilt for Python 3.7 - -* Fri May 11 2018 Steve Traylen - 1.2.6-1 -- Initial package. +%autochangelog From 0a49c780e6fd35d3296b2555719669d92ddacae3 Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Sat, 15 Feb 2025 17:35:23 +0100 Subject: [PATCH 36/40] Add packit file [skip changelog] --- .packit.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .packit.yaml diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 0000000..1d68e68 --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,25 @@ +--- +# See the documentation for more information: +# https://packit.dev/docs/configuration/ + +upstream_project_url: https://github.com/patrys/httmock +copy_upstream_release_description: false +upstream_tag_include: '^\d+\.\d+\.\d+$' + +jobs: + - job: pull_from_upstream + trigger: release + dist_git_branches: + - fedora-rawhide + - epel10 + - job: koji_build + trigger: commit + allowed_committers: ['packit','all_admins'] + dist_git_branches: + - fedora-rawhide + - epel10 + - job: bodhi_update + trigger: commit + allowed_builders: ['packit','all_users'] + dist_git_branches: + - fedora-rawhide From 1783e513ccae99c684caac18a8c6f63bde50b552 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Tue, 3 Jun 2025 10:41:08 +0200 Subject: [PATCH 37/40] Rebuilt for Python 3.14 From de2ac30ee83c45d83cfaef140dbb01d74baaa108 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 08:15:51 +0000 Subject: [PATCH 38/40] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From 454c9f9e8cd1b166a91feac0fff699b383ddc1fe Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 15 Aug 2025 13:52:49 +0200 Subject: [PATCH 39/40] Rebuilt for Python 3.14.0rc2 bytecode From d0e6456bb471f54e151f9825a6d8e555e128f662 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 19 Sep 2025 13:26:34 +0200 Subject: [PATCH 40/40] Rebuilt for Python 3.14.0rc3 bytecode