From 9321eb7694298c35663353b84d6aaf4038217a991cbfab714d26ee359acd5566 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 11 Jun 2025 06:29:21 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytimeparse2?expand=0&rev=3 --- python-pytimeparse2.changes | 5 +++++ python-pytimeparse2.spec | 24 +++++++++++++----------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/python-pytimeparse2.changes b/python-pytimeparse2.changes index c099189..b878f2d 100644 --- a/python-pytimeparse2.changes +++ b/python-pytimeparse2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 11 05:49:35 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Fri Dec 29 15:25:15 UTC 2023 - Enno Gotthold diff --git a/python-pytimeparse2.spec b/python-pytimeparse2.spec index 2137757..65fa7f3 100644 --- a/python-pytimeparse2.spec +++ b/python-pytimeparse2.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytimeparse2 # -# Copyright (c) 2023 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 @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # + %{?sle15_python_module_pythons} %define short_name pytimeparse2 Name: python-%{short_name} @@ -22,14 +23,16 @@ Version: 1.7.1 Release: 0 Summary: A small Python module to parse various kinds of time expressions License: MIT -URL: https://github.com/onegreyonewhite/pytimeparse2 -Source: %{short_name}-%{version}.tar.gz -BuildRequires: python-rpm-macros -BuildRequires: %{python_module setuptools} +URL: https://github.com/onegreyonewhite/pytimeparse2 +Source: %{short_name}-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module python-dateutil} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros Requires: python3-base Recommends: python3-python-dateutil -BuildArch: noarch +BuildArch: noarch %python_subpackages %description @@ -39,10 +42,10 @@ A small Python module to parse various kinds of time expressions. Developed sepa %autosetup -n %{short_name}-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand sed -i '1d' %{buildroot}/%{$python_sitelib}/%{short_name}.py %check @@ -52,8 +55,7 @@ A small Python module to parse various kinds of time expressions. Developed sepa %license LICENSE.rst %doc README.rst %{python_sitelib}/%{short_name}.py -%{python_sitelib}/%{short_name}-%{version}*-info -%pycache_only %{python_sitelib}/__pycache__ +%{python_sitelib}/%{short_name}-%{version}.dist-info +%pycache_only %{python_sitelib}/__pycache__/%{short_name}.*.pyc %changelog -