From 4f0b07152ab77c22df74eec5bd4577e58814df0aeab42a4e9150969b49e3d644 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 1 Sep 2023 05:21:04 +0000 Subject: [PATCH] - Switch to pyproject macros. - Actually run the testsuite. - Drop unneeded future requirement. - Stop using greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sievelib?expand=0&rev=11 --- python-sievelib.changes | 8 ++++++++ python-sievelib.spec | 21 +++++++++++---------- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/python-sievelib.changes b/python-sievelib.changes index db78b14..9bb37a4 100644 --- a/python-sievelib.changes +++ b/python-sievelib.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Sep 1 05:20:43 UTC 2023 - Steve Kowalik + +- Switch to pyproject macros. +- Actually run the testsuite. +- Drop unneeded future requirement. +- Stop using greedy globs in %files. + ------------------------------------------------------------------- Mon Jan 25 08:00:46 UTC 2021 - Dirk Müller diff --git a/python-sievelib.spec b/python-sievelib.spec index 6f734e2..0a3cf67 100644 --- a/python-sievelib.spec +++ b/python-sievelib.spec @@ -1,7 +1,7 @@ # -# spec file for package python-sievelib +# spec file # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # Copyright (c) 2016 Aeneas Jaissle # # All modifications and additions to the file contributed by third parties @@ -18,19 +18,17 @@ %define modname sievelib -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-%{modname} Version: 1.2.1 Release: 0 Summary: Client-side Sieve and Managesieve library written in Python License: MIT -Group: Development/Languages/Python URL: https://pypi.python.org/pypi/sievelib Source: https://files.pythonhosted.org/packages/source/s/sievelib/%{modname}-%{version}.tar.gz -BuildRequires: %{python_module future} BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -47,16 +45,19 @@ sed -i -e '/^#!\/usr\/bin.*python/d' sievelib/parser.py chmod -x sievelib/parser.py %build -%python_build +%pyproject_wheel %install -%python_install - +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%pytest + %files %{python_files} %license COPYING %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/sievelib +%{python_sitelib}/sievelib-%{version}.dist-info %changelog