From 667fcb4340f1c04129b4edaf3326d2c8eaa6c78bf12a5a014b5c0e793b7172b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 13 May 2025 07:01:46 +0000 Subject: [PATCH] Accepting request 1276905 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1276905 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Trololio?expand=0&rev=8 --- python-Trololio.changes | 5 +++++ python-Trololio.spec | 13 ++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-Trololio.changes b/python-Trololio.changes index d1b4aee..ee51a66 100644 --- a/python-Trololio.changes +++ b/python-Trololio.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 12 15:03:24 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu Nov 7 16:01:22 UTC 2019 - Matej Cepl diff --git a/python-Trololio.spec b/python-Trololio.spec index 36b7487..079e323 100644 --- a/python-Trololio.spec +++ b/python-Trololio.spec @@ -1,7 +1,7 @@ # # spec file for package python-Trololio # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2018 Neal Gompa . # # All modifications and additions to the file contributed by third parties @@ -17,7 +17,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Trololio Version: 1.0 Release: 0 @@ -27,7 +26,9 @@ URL: https://github.com/ThinkChaos/Trololio Source: https://files.pythonhosted.org/packages/source/T/Trololio/Trololio-%{version}.zip # License file from source repository Source1: https://raw.githubusercontent.com/ThinkChaos/Trololio/master/LICENSE +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip @@ -52,14 +53,16 @@ It addresses the differences listed in Trollius and Tulip: cp %{SOURCE1} LICENSE %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} -%{python_sitelib}/* +%{python_sitelib}/trololio.py +%{python_sitelib}/[Tt]rololio-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__/trololio* %doc README.rst %license LICENSE