From bb2ec97ad1633d31d3952ea98dda75f03012dbc3 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Fri, 30 Dec 2022 04:31:57 +0100 Subject: [PATCH] downgrade to 0.25.0 Signed-off-by: Toshaan Bharvani --- SOURCES/hatchling.1 | 6 +-- SPECS/python-hatchling.spec | 82 +++++++++++++------------------------ 2 files changed, 31 insertions(+), 57 deletions(-) diff --git a/SOURCES/hatchling.1 b/SOURCES/hatchling.1 index 87853f8..64f24ef 100644 --- a/SOURCES/hatchling.1 +++ b/SOURCES/hatchling.1 @@ -1,11 +1,11 @@ -.TH HATCHLING "1" "September 2022" "" "User Commands" +.TH HATCHLING "1" "February 2022" "" "User Commands" .SH NAME .B hatchling \(en the build backend used by Hatch .SH SYNOPSIS .B hatchling .RB [ \-h ] -.RB { build , dep , metadata , version }\ ... +.RB { build , dep , version }\ ... .SH DESCRIPTION This is the extensible, standards compliant build backend used by Hatch. .SH OPTIONS @@ -15,8 +15,6 @@ This is the extensible, standards compliant build backend used by Hatch. .TP .B dep .TP -.B metadata -.TP .B version .SS "OPTIONAL\ ARGUMENTS" .TP diff --git a/SPECS/python-hatchling.spec b/SPECS/python-hatchling.spec index 0b580b5..3e93d91 100644 --- a/SPECS/python-hatchling.spec +++ b/SPECS/python-hatchling.spec @@ -1,5 +1,5 @@ ## START: Set by rpmautospec -## (rpmautospec version 0.2.6) +## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); @@ -8,11 +8,10 @@ ## END: Set by rpmautospec Name: python-hatchling -Version: 1.9.0 +Version: 0.25.0 Release: %autorelease Summary: The build backend used by Hatch -# SPDX License: MIT URL: https://pypi.org/project/hatchling Source0: %{pypi_source hatchling} @@ -23,8 +22,6 @@ Source1: hatchling.1 BuildArch: noarch BuildRequires: python3-devel -# RHBZ#1985340, RHBZ#2076994 -BuildRequires: pyproject-rpm-macros >= 1.2.0 %global common_description %{expand: This is the extensible, standards compliant build backend used by Hatch.} @@ -41,9 +38,29 @@ Summary: %{summary} %prep %autosetup -n hatchling-%{version} +# F35, EPEL9, and older: +# The changes between pluggy 0.13.1 and 1.0.0 should not be significant, so we +# loosen the minimum version. +sed -r -i 's/(pluggy>=)1\.0\.0/\10.13.1/' src/hatchling/ouroboros.py +# EPEL9: +# Since hatchling uses packaging 20.9 for Python 2, we hope and expect it can +# work for Python 3 as well. +sed -r -i 's/(packaging>=)21\.3/\120.9/' src/hatchling/ouroboros.py + %generate_buildrequires -%pyproject_buildrequires +# Cannot use -r (the default) with hatchling: “ValueError: build backend cannot +# provide build metadata (incl. runtime requirements) before build”. We work +# around this by writing the dependencies from src/hatchling/ourobororos.py +# into a text file. +PYTHONPATH="${PWD}/src" '%{python3}' < 1.9.0-1 -- Update to 1.9.0 (close RHBZ#2125746) -- Use new “prepare_metadata_…” hooks for BuildRequires - -* Thu Aug 25 2022 Benjamin A. Beasley 1.8.1-1 -- Update to 1.8.1 (close RHBZ#2121312) - -* Tue Aug 16 2022 Benjamin A. Beasley 1.8.0-1 -- Update to 1.8.0 (close RHBZ#2117979) - -* Sun Jul 24 2022 Benjamin A. Beasley 1.6.0-1 -- Update to 1.6.0 (close RHBZ#2110167) - -* Fri Jul 22 2022 Fedora Release Engineering 1.5.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Mon Jul 11 2022 Benjamin A. Beasley 1.5.0-1 -- Update to 1.5.0 (close RHBZ#2105880) - -* Thu Jul 07 2022 Benjamin A. Beasley 1.4.1-1 -- Update to 1.4.1 (close RHBZ#2103496) - -* Mon Jun 13 2022 Python Maint 1.3.1-2 -- Rebuilt for Python 3.11 - -* Mon May 30 2022 Benjamin A. Beasley 1.3.1-1 -- Update to 1.3.1 (close RHBZ#1609549) - -* Mon May 23 2022 Benjamin A. Beasley 1.3.0-1 -- Update to 1.3.0 (close RHBZ#2089077) - -* Sat May 21 2022 Benjamin A. Beasley 1.2.0-1 -- Update to 1.2.0 (close RHBZ#2088843) - -* Fri May 20 2022 Benjamin A. Beasley 1.1.0-1 -- Update to 1.1.0 (close RHBZ#2088671) - -* Wed May 18 2022 Benjamin A. Beasley 1.0.0-1 -- Update to 1.0.0 (close RHBZ#2087533) - * Mon May 16 2022 Benjamin A. Beasley 0.25.0-1 - Update to 0.25.0 (close RHBZ#2086373) -* Fri May 06 2022 Benjamin A. Beasley 0.24.0-2 -- Use wheel-building support to generate BR’s +* Mon May 02 2022 Benjamin A. Beasley 0.24.0-2 +- Backport to EPEL9 * Sat Apr 30 2022 Benjamin A. Beasley 0.24.0-1 - Update to 0.24.0 (close RHBZ#2079689) -* Tue Apr 12 2022 Benjamin A. Beasley 0.22.0-2 -- Adjust for pyproject-rpm-macros >= 1.1.0 - * Sun Mar 27 2022 Benjamin A. Beasley 0.22.0-1 - Update to 0.22.0 (close RHBZ#2068853)