From eb2b44879ee9e8f10705dc45a7c999cd7c403bc11c3bd995d966bea218354d87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 28 May 2025 12:45:31 +0000 Subject: [PATCH 1/3] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ipy?expand=0&rev=16 --- python-ipy.changes | 5 +++++ python-ipy.spec | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-ipy.changes b/python-ipy.changes index e9082fa..47cb6e7 100644 --- a/python-ipy.changes +++ b/python-ipy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 28 12:45:10 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu Jan 28 22:53:39 UTC 2021 - Dirk Müller diff --git a/python-ipy.spec b/python-ipy.spec index a002e20..5d15929 100644 --- a/python-ipy.spec +++ b/python-ipy.spec @@ -1,7 +1,7 @@ # # spec file for package python-ipy # -# Copyright (c) 2021 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-ipy Version: 1.01 Release: 0 @@ -25,11 +24,12 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/autocracy/python-ipy Source: https://files.pythonhosted.org/packages/source/I/IPy/IPy-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch - %python_subpackages %description @@ -43,14 +43,15 @@ so funky stuff like a netmask of 0xffffff0f can't be done here. %setup -q -n IPy-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} -%{python_sitelib}/* +%{python_sitelib}/ipy +%{python_sitelib}/ipy-%{version}*-info %license COPYING %check From 0a2426f58e24874fa6a62ad8ff92360e4c0407d3188d644ccd30b4f79e10ec7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 28 May 2025 12:56:46 +0000 Subject: [PATCH 2/3] Accepting request 1280877 from home:mcalabkova:branches:devel:languages:python fix files OBS-URL: https://build.opensuse.org/request/show/1280877 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ipy?expand=0&rev=17 --- python-ipy.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python-ipy.spec b/python-ipy.spec index 5d15929..12ee5ad 100644 --- a/python-ipy.spec +++ b/python-ipy.spec @@ -16,6 +16,7 @@ # +%define pkg_version 1.1 Name: python-ipy Version: 1.01 Release: 0 @@ -50,8 +51,10 @@ so funky stuff like a netmask of 0xffffff0f can't be done here. %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} -%{python_sitelib}/ipy -%{python_sitelib}/ipy-%{version}*-info +%{python_sitelib}/IPy.py +%{python_sitelib}/ipy-%{pkg_version}*-info +%pycache_only %{python_sitelib}/__pycache__/IPy* +%doc README.rst %license COPYING %check From 0c30e19ea9f08cc60336ba4f6df301c24cc115732b0dd8b0ad608cbab32be835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 30 May 2025 08:30:25 +0000 Subject: [PATCH 3/3] files case-insensitive OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ipy?expand=0&rev=18 --- python-ipy.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-ipy.spec b/python-ipy.spec index 12ee5ad..d1f5561 100644 --- a/python-ipy.spec +++ b/python-ipy.spec @@ -52,7 +52,7 @@ so funky stuff like a netmask of 0xffffff0f can't be done here. %files %{python_files} %{python_sitelib}/IPy.py -%{python_sitelib}/ipy-%{pkg_version}*-info +%{python_sitelib}/[Ii][Pp]y-%{pkg_version}*-info %pycache_only %{python_sitelib}/__pycache__/IPy* %doc README.rst %license COPYING