From b75c3edae62b99616c4ebfc3c288dc4030b39cd38f20d3492558d4ab86a27e4f Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 14 Aug 2024 15:03:57 +0000 Subject: [PATCH] - use modern python on sle15 - switch to PEP517 build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bytecode?expand=0&rev=19 --- python-bytecode.changes | 6 ++++++ python-bytecode.spec | 13 +++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/python-bytecode.changes b/python-bytecode.changes index 516fe74..6ae3bc8 100644 --- a/python-bytecode.changes +++ b/python-bytecode.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Aug 14 15:03:42 UTC 2024 - Dirk Müller + +- use modern python on sle15 +- switch to PEP517 build + ------------------------------------------------------------------- Tue Nov 14 15:47:28 UTC 2023 - Dirk Müller diff --git a/python-bytecode.spec b/python-bytecode.spec index 2166282..eab765f 100644 --- a/python-bytecode.spec +++ b/python-bytecode.spec @@ -1,7 +1,7 @@ # # spec file for package python-bytecode # -# Copyright (c) 2023 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,6 +16,7 @@ # +%{?sle15_python_module_pythons} Name: python-bytecode Version: 0.15.1 Release: 0 @@ -25,12 +26,12 @@ Group: Development/Languages/Python URL: https://github.com/vstinner/bytecode Source: https://files.pythonhosted.org/packages/source/b/bytecode/bytecode-%{version}.tar.gz BuildRequires: %{python_module base >= 3.8} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module typing_extensions if %python-base < 3.10} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: (python-typing-extensions if python-base < 3.10) BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module pytest} @@ -44,10 +45,10 @@ Python module to generate and modify bytecode %setup -q -n bytecode-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -57,6 +58,6 @@ Python module to generate and modify bytecode %doc README.rst %license COPYING %{python_sitelib}/bytecode -%{python_sitelib}/bytecode-%{version}*-info +%{python_sitelib}/bytecode-%{version}.dist-info %changelog