From c73079e2e47efd5ea3a64a25858c9704fe6afdd5f9235d433320c8e04683a689 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 12 May 2025 05:58:25 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-translation-finder?expand=0&rev=36 --- python-translation-finder.changes | 5 +++++ python-translation-finder.spec | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/python-translation-finder.changes b/python-translation-finder.changes index fbae39b..1ed404a 100644 --- a/python-translation-finder.changes +++ b/python-translation-finder.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 12 05:57:57 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Wed Nov 20 17:49:09 UTC 2024 - Dirk Müller diff --git a/python-translation-finder.spec b/python-translation-finder.spec index cd3df23..b96ebb7 100644 --- a/python-translation-finder.spec +++ b/python-translation-finder.spec @@ -1,7 +1,7 @@ # # spec file for package python-translation-finder # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2019-2021 Matthias Fehring # # All modifications and additions to the file contributed by third parties @@ -27,11 +27,13 @@ URL: https://github.com/WeblateOrg/translation-finder # test_data/linked has to be symlink, hance using github tar ball Source: https://github.com/WeblateOrg/translation-finder/archive/%{version}.tar.gz#/%{modname}-%{version}.tar.gz BuildRequires: %{python_module charset-normalizer} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module ruamel.yaml} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module twine} BuildRequires: %{python_module weblate-language-data >= 2021.2} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-charset-normalizer @@ -50,10 +52,10 @@ A translation file finder for Weblate, translation tool with tight version contr sed -i -e '/pytest-runner/d' setup.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/weblate-discover %python_expand %fdupes %{buildroot}%{$python_sitelib} # remove test data @@ -73,6 +75,6 @@ sed -i -e '/pytest-runner/d' setup.py %license LICENSE %python_alternative %{_bindir}/weblate-discover %{python_sitelib}/translation_finder -%{python_sitelib}/translation_finder-%{version}*info +%{python_sitelib}/translation_finder-%{version}.dist-info %changelog