Compare commits

2 Commits

3 changed files with 1 additions and 20 deletions

View File

@@ -1,12 +0,0 @@
Index: apns2-0.7.2/test/test_client.py
===================================================================
--- apns2-0.7.2.orig/test/test_client.py
+++ apns2-0.7.2/test/test_client.py
@@ -22,7 +22,6 @@ def notifications(tokens):
return [Notification(token=token, payload=payload) for token in tokens]
-@patch('apns2.credentials.init_context')
@pytest.fixture
def client(respx_mock, notifications):
return APNsClient(credentials=Credentials())

View File

@@ -1,8 +1,3 @@
-------------------------------------------------------------------
Mon Jan 19 17:13:46 UTC 2026 - Markéta Machová <mmachova@suse.com>
- Add pytest9.patch to fix build with pytest 9
-------------------------------------------------------------------
Tue May 13 13:43:11 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-apns2
#
# Copyright (c) 2026 SUSE LLC and contributors
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -27,8 +27,6 @@ Source0: https://files.pythonhosted.org/packages/source/a/apns2/apns2-%{v
Patch0: pr_122.patch
# PATCH-FIX-OPENSUSE Based on gh#Pr0Ger/PyAPNs2#149, is gross
Patch1: use-httpx.patch
# PATCH-FIX-UPSTREAM https://github.com/Pr0Ger/PyAPNs2/pull/163 Fix tests with pytest 9
Patch2: pytest9.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}