From d458aa6e3fe41558f65db05ba2248212c0441ee269f3a1407cb6cf3581b93b53 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 1 Mar 2024 20:16:59 +0000 Subject: [PATCH] Accepting request 1153597 from home:bnavigator:branches:devel:languages:python:mailman - Update to SLE15 python module - Build PEP517 wheel OBS-URL: https://build.opensuse.org/request/show/1153597 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-mailman3-fedmsg-plugin?expand=0&rev=4 --- python-mailman3-fedmsg-plugin.changes | 6 ++++++ python-mailman3-fedmsg-plugin.spec | 16 +++++++++------- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/python-mailman3-fedmsg-plugin.changes b/python-mailman3-fedmsg-plugin.changes index d4bbdca..e80ab77 100644 --- a/python-mailman3-fedmsg-plugin.changes +++ b/python-mailman3-fedmsg-plugin.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Feb 29 20:24:52 UTC 2024 - Ben Greiner + +- Update to SLE15 python module +- Build PEP517 wheel + ------------------------------------------------------------------- Mon Dec 2 10:47:14 UTC 2019 - pgajdos@suse.com diff --git a/python-mailman3-fedmsg-plugin.spec b/python-mailman3-fedmsg-plugin.spec index 346b96c..d18b79e 100644 --- a/python-mailman3-fedmsg-plugin.spec +++ b/python-mailman3-fedmsg-plugin.spec @@ -1,7 +1,7 @@ # # spec file for package python-mailman3-fedmsg-plugin # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2024 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,7 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 +%{sle15_python_module_pythons} Name: python-mailman3-fedmsg-plugin Version: 0.5 Release: 0 @@ -25,8 +24,9 @@ Summary: Emit fedmsg messages from mailman3 License: LGPL-2.0-only URL: https://github.com/fedora-infra/mailman3-fedmsg-plugin Source: https://files.pythonhosted.org/packages/source/m/mailman3-fedmsg-plugin/mailman3-fedmsg-plugin-%{version}.tar.gz -BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -39,10 +39,10 @@ Emit fedmsg messages from mailman3. %setup -q -n mailman3-fedmsg-plugin-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -51,6 +51,8 @@ Emit fedmsg messages from mailman3. %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/mailman3_fedmsg_plugin.py +%pycache_only %{python_sitelib}/__pycache__/mailman3_fedmsg_plugin*.pyc +%{python_sitelib}/mailman3_fedmsg_plugin-%{version}.dist-info %changelog