forked from pool/python-apns2
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| a06560766c | |||
| c8b4758b95 | |||
| 836c64884a | |||
| ca632fd7e6 |
12
pytest9.patch
Normal file
12
pytest9.patch
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
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())
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
Tue May 13 13:43:11 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-apns2
|
# spec file for package python-apns2
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC
|
# Copyright (c) 2026 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -27,6 +27,8 @@ Source0: https://files.pythonhosted.org/packages/source/a/apns2/apns2-%{v
|
|||||||
Patch0: pr_122.patch
|
Patch0: pr_122.patch
|
||||||
# PATCH-FIX-OPENSUSE Based on gh#Pr0Ger/PyAPNs2#149, is gross
|
# PATCH-FIX-OPENSUSE Based on gh#Pr0Ger/PyAPNs2#149, is gross
|
||||||
Patch1: use-httpx.patch
|
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 pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
|
|||||||
Reference in New Issue
Block a user