14
0
forked from pool/python-pook

- 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)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pook?expand=0&rev=12
This commit is contained in:
2023-01-12 11:12:31 +00:00
committed by Git OBS Bridge
parent ce3a119a3f
commit 1c268d0299
5 changed files with 57 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pook
#
# Copyright (c) 2022 SUSE LLC
# 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
@@ -16,16 +16,17 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# requires python-aiohttp
%define skip_python2 1
Name: python-pook
Version: 1.0.2
Version: 1.1.0
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
# PATCH-FIX-OPENSUSE py311-compat.patch gh#h2non/pook#83
Patch: py311-compat.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -50,7 +51,7 @@ BuildRequires: %{python_module xmltodict >= 0.10.2}
HTTP traffic mocking and expectations.
%prep
%setup -q -n pook-%{version}
%autosetup -p1 -n pook-%{version}
rm -f setup.cfg pytest.ini tox.ini
# Assist unittest on Python 2
@@ -77,6 +78,7 @@ $python -m unittest tests.integration.engines.unittest_suite
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/pook
%{python_sitelib}/pook-%{version}*-info
%changelog