14
0
forked from pool/python-ntfy

Accepting request 1281969 from devel:languages:python

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1281969
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ntfy?expand=0&rev=13
This commit is contained in:
2025-06-02 20:01:33 +00:00
committed by Git OBS Bridge
2 changed files with 12 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 2 14:43:25 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Mon May 20 09:46:03 UTC 2024 - Matthias Bach <marix@marix.org>

View File

@@ -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 <marix@marix.org>.
#
# 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*