From 694a1289a29fd05fd8434717f72e630fb45b87514fb9ea6e10f1a6dbf578ce68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 2 Jun 2025 14:43:43 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ntfy?expand=0&rev=29 --- python-ntfy.changes | 5 +++++ python-ntfy.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-ntfy.changes b/python-ntfy.changes index 488761c..37b30d9 100644 --- a/python-ntfy.changes +++ b/python-ntfy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 2 14:43:25 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Mon May 20 09:46:03 UTC 2024 - Matthias Bach diff --git a/python-ntfy.spec b/python-ntfy.spec index db62ab6..9845b7e 100644 --- a/python-ntfy.spec +++ b/python-ntfy.spec @@ -1,7 +1,7 @@ # # spec file for package python-ntfy # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2020 Matthias Bach . # # All modifications and additions to the file contributed by third parties @@ -35,18 +35,20 @@ Patch4: python-312-compat.patch BuildRequires: %{python_module appdirs} # test requirements BuildRequires: %{python_module emoji >= 1.6.2} +BuildRequires: %{python_module pip} BuildRequires: %{python_module psutil} BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests} BuildRequires: %{python_module ruamel.yaml} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-appdirs Requires: python-requests Requires: python-ruamel.yaml -Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(post): alts +Requires(postun): alts Suggests: python-dnspython3 Suggests: python-emoji >= 1.6.2 Suggests: python-instapush @@ -75,10 +77,10 @@ Quickstart %autosetup -p1 -n ntfy-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/ntfy %python_expand %fdupes %{buildroot}%{$python_sitelib}/ntfy*