From db60bd6def29ef918122ceb044f6a202f703eed632129e2c94d874b93a957d7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 13 May 2025 15:15:45 +0000 Subject: [PATCH] Accepting request 1277162 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1277162 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-apns2?expand=0&rev=9 --- python-apns2.changes | 5 +++++ python-apns2.spec | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-apns2.changes b/python-apns2.changes index 6a0901c..28ca9a6 100644 --- a/python-apns2.changes +++ b/python-apns2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 13 13:43:11 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Nov 25 07:09:30 UTC 2022 - Steve Kowalik diff --git a/python-apns2.spec b/python-apns2.spec index bc0eda6..ee9afa4 100644 --- a/python-apns2.spec +++ b/python-apns2.spec @@ -1,7 +1,7 @@ # # spec file for package python-apns2 # -# Copyright (c) 2022 SUSE LLC +# 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 @@ -16,8 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-apns2 Version: 0.7.2 Release: 0 @@ -29,7 +27,9 @@ 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 +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-PyJWT >= 1.4.0 @@ -56,10 +56,10 @@ via HTTP/2 protocol. %autosetup -p1 -n apns2-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -68,6 +68,7 @@ via HTTP/2 protocol. %files %{python_files} %license LICENSE %doc README.md -%{python_sitelib}/* +%{python_sitelib}/apns2 +%{python_sitelib}/apns2-%{version}*-info %changelog