#1 Use flit_core instead of flit to build wheel
Opened 3 months ago by gotmax23. Modified 3 months ago
rpms/ gotmax23/python-pyrpm flit-core  into  rawhide

@@ -0,0 +1,25 @@ 

+ From 66148b1db8202148d46836c183cd0765377186fa Mon Sep 17 00:00:00 2001

+ From: Maxwell G <maxwell@gtmx.me>

+ Date: Mon, 29 Jan 2024 23:58:02 +0000

+ Subject: [PATCH] use flit_core instead of flit to build wheel

+ 

+ ---

+  pyproject.toml | 4 ++--

+  1 file changed, 2 insertions(+), 2 deletions(-)

+ 

+ diff --git a/pyproject.toml b/pyproject.toml

+ index 02d9419..f723be9 100644

+ --- a/pyproject.toml

+ +++ b/pyproject.toml

+ @@ -1,6 +1,6 @@

+  [build-system]

+ -requires = ["flit"]

+ -build-backend = "flit.buildapi"

+ +requires = ["flit_core"]

+ +build-backend = "flit_core.buildapi"

+  

+  [tool.flit.metadata]

+  dist-name = "python-rpm-spec"

+ -- 

+ 2.43.0

+ 

file modified
+1
@@ -15,6 +15,7 @@ 

  License:        MIT

  URL:            https://github.com/bkircher/python-rpm-spec

  Source0:        %url/archive/v%{version}/%{srcname}-%{version}.tar.gz

+ Patch0:         0001-use-flit_core-instead-of-flit-to-build-wheel.patch

  

  BuildArch:      noarch

  BuildRequires:  python3-devel

flit_core.buildapi is the build backend and should be used instead of
flit.buildapi.