From 98a5c002c0bc3bbd6d2a4aef98e1f4e9b5b5639a445175b36d2e7df8fe9f5180 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Tue, 5 Mar 2024 18:26:32 +0000 Subject: [PATCH] - Clean specfile from bogus requirements - Build PEP517 wheel OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipython_genutils?expand=0&rev=8 --- python-ipython_genutils.changes | 6 ++++++ python-ipython_genutils.spec | 15 +++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/python-ipython_genutils.changes b/python-ipython_genutils.changes index a06f4e5..94452fd 100644 --- a/python-ipython_genutils.changes +++ b/python-ipython_genutils.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 5 18:26:09 UTC 2024 - Ben Greiner + +- Clean specfile from bogus requirements +- Build PEP517 wheel + ------------------------------------------------------------------- Mon Jan 11 21:15:13 UTC 2021 - Matej Cepl diff --git a/python-ipython_genutils.spec b/python-ipython_genutils.spec index 442969c..95912fd 100644 --- a/python-ipython_genutils.spec +++ b/python-ipython_genutils.spec @@ -1,7 +1,7 @@ # # spec file for package python-ipython_genutils # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2024 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-ipython_genutils Version: 0.2.0 Release: 0 @@ -28,13 +27,12 @@ Source: https://files.pythonhosted.org/packages/source/i/ipython_genutil # PATCH-FEATURE-UPSTREAM denose.patch gh#ipython/ipython_genutils#17 mcepl@suse.com # Replace dependency on nose with the one on pytest Patch0: denose.patch -BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python -Requires: python-pytest BuildArch: noarch %python_subpackages @@ -50,10 +48,10 @@ whatever packages need it %autosetup -p1 -n ipython_genutils-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -63,6 +61,7 @@ export LC_ALL=en_US.utf8 %files %{python_files} %license COPYING.md %doc CONTRIBUTING.md README.md -%{python_sitelib}/* +%{python_sitelib}/ipython_genutils +%{python_sitelib}/ipython_genutils-%{version}.dist-info %changelog