From 4c842a1def398444b32e3ee3134087797dd02e97560ce5047c24ad2d154deaf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 21:55:11 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-pook revision 7cc00ca0ad594b97da4f692e94a17cec --- .gitattributes | 23 +++++++++++++ pook-1.1.1.tar.gz | 3 ++ python-pook.changes | 57 +++++++++++++++++++++++++++++++ python-pook.spec | 82 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 165 insertions(+) create mode 100644 .gitattributes create mode 100644 pook-1.1.1.tar.gz create mode 100644 python-pook.changes create mode 100644 python-pook.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/pook-1.1.1.tar.gz b/pook-1.1.1.tar.gz new file mode 100644 index 0000000..f9d16dc --- /dev/null +++ b/pook-1.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:53da04930616d94eeede77a39d6b5f0fac1f7bbd160d8f54bc468cd798b93956 +size 41904 diff --git a/python-pook.changes b/python-pook.changes new file mode 100644 index 0000000..8230fd8 --- /dev/null +++ b/python-pook.changes @@ -0,0 +1,57 @@ +------------------------------------------------------------------- +Fri Jan 13 06:33:49 UTC 2023 - Daniel Garcia + +- Remove py311-compat.patch, not needed anymore +- Update to 1.1.1: + * Fix Py3.11 compatibility (#85) + +------------------------------------------------------------------- +Thu Jan 12 11:04:56 UTC 2023 - Daniel Garcia + +- Add py311-compat.patch to fix python-3.11 compatibility +- Update to 1.1.0: + * chore(version): bump minor v1.1.0 + * Switch to Python >= 3.5 and fix latest aiohttp compatability (#83) + * fix: remove print call (#81) + +------------------------------------------------------------------- +Wed Apr 6 09:52:49 UTC 2022 - pgajdos@suse.com + +- python-mock not required for build + +------------------------------------------------------------------- +Mon Sep 20 02:54:50 UTC 2021 - Steve Kowalik + +- Update to 1.0.2: + * fix(urllib3): interceptor is never really disabled (#68) + * Closes #75 Re consider @fluent decorator (#76) + * fix(#69): use match keyword in pytest.raises + * fix(History): invalid rst syntax + * fix(aiohttp): compatible with non aiohttp projects (#67) + * feat(History): add release changes +- Drop pytest5.patch, no longer required. +- Drop nose BuildRequires, and its suite, the remainder covers it. + +------------------------------------------------------------------- +Wed May 6 06:59:43 UTC 2020 - Tomáš Chvátal + +- Add patch to work with pytest5: + * pytest5.patch + +------------------------------------------------------------------- +Tue Mar 24 09:20:50 UTC 2020 - pgajdos@suse.com + +- version update to 1.0.0 + * fix(aiohttp): use latest version, allow Python 3.5+ for async http client +- drop python2 support, python-aiohttp required + +------------------------------------------------------------------- +Wed Mar 18 08:39:21 UTC 2020 - Marketa Calabkova + +- Update to 0.2.8 + * fix collections import warning + +------------------------------------------------------------------- +Fri Apr 19 12:04:31 PM UTC 2019 - John Vandenberg + +- Initial spec for v0.2.6 diff --git a/python-pook.spec b/python-pook.spec new file mode 100644 index 0000000..0b211b3 --- /dev/null +++ b/python-pook.spec @@ -0,0 +1,82 @@ +# +# spec file for package python-pook +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +# requires python-aiohttp +%define skip_python2 1 +Name: python-pook +Version: 1.1.1 +Release: 0 +Summary: HTTP traffic mocking and expectations +License: MIT +URL: https://github.com/h2non/pook +Source: https://files.pythonhosted.org/packages/source/p/pook/pook-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-aiohttp +Requires: python-furl >= 0.5.6 +Requires: python-jsonschema >= 2.5.1 +Requires: python-xmltodict >= 0.11.0 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module aiohttp} +BuildRequires: %{python_module furl >= 0.5.6} +BuildRequires: %{python_module jsonschema >= 2.5.1} +BuildRequires: %{python_module mocket >= 1.6.0} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests >= 2.20.0} +BuildRequires: %{python_module urllib3 >= 1.19.1} +BuildRequires: %{python_module xmltodict >= 0.10.2} +# /SECTION +%python_subpackages + +%description +HTTP traffic mocking and expectations. + +%prep +%autosetup -p1 -n pook-%{version} +rm -f setup.cfg pytest.ini tox.ini + +# Assist unittest on Python 2 +touch tests/__init__.py + +%build +%python_build + +%install +%python_install +%{python_expand rm -r %{buildroot}%{$python_sitelib}/tests/ +%fdupes %{buildroot}%{$python_sitelib} +} + +%check +%{python_expand # +export PYTHONPATH=%{buildroot}%{$python_sitelib} +$python -m pytest -v tests/unit +$python -m pytest -v tests/integration/engines/pytest_suite.py +export PYTHONPATH=%{buildroot}%{$python_sitelib}:. +$python -m unittest tests.integration.engines.unittest_suite +} + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/pook +%{python_sitelib}/pook-%{version}*-info + +%changelog