From 7a17e5558a1e441de1c600c3c7878bcd64fce6bc Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: May 15 2023 12:31:58 +0000 Subject: Use flit-core to build this package, instead of flit --- diff --git a/1869c4845e.patch b/1869c4845e.patch new file mode 100644 index 0000000..6580d18 --- /dev/null +++ b/1869c4845e.patch @@ -0,0 +1,22 @@ +From 1869c4845ea052a90835318749b3662acd44e7db Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= +Date: Sat, 29 Jan 2022 15:50:14 +0100 +Subject: [PATCH] Switch build-backend to flit_core + +--- + pyproject.toml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index d652fe0..cdea9de 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] + module = "entrypoints" diff --git a/python-entrypoints.spec b/python-entrypoints.spec index 7c4275c..f28d6ea 100644 --- a/python-entrypoints.spec +++ b/python-entrypoints.spec @@ -6,7 +6,7 @@ Name: python-%{srcname} # WARNING: Check if an update does not break flake8! Version: 0.3 -Release: 15%{?dist} +Release: 16%{?dist} Summary: %{sum} # license clarification issue opened upstream @@ -17,6 +17,9 @@ License: MIT URL: https://entrypoints.readthedocs.io/ Source0: https://github.com/takluyver/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz +# Switch build-backend to flit_core, from upstream version 0.4 +Patch: https://github.com/takluyver/entrypoints/commit/1869c4845e.patch + BuildArch: noarch BuildRequires: make BuildRequires: python3-devel @@ -46,7 +49,7 @@ Summary: Documentation for python-entrypoints Documentation files for python-entrypoints %prep -%autosetup -n %{srcname}-%{version} +%autosetup -n %{srcname}-%{version} -p1 %generate_buildrequires @@ -81,6 +84,9 @@ popd %changelog +* Mon May 15 2023 Miro Hrončok - 0.3-16 +- Use flit-core to build this package, instead of flit + * Mon Feb 13 2023 Miro Hrončok - Convert to pyproject-rpm-macros - The INSTALLER file now says "rpm" instead of "pip"