Browse Source

downgrade to 0.25.0

Signed-off-by: Toshaan Bharvani <toshaan@powerel.org>
master
Toshaan Bharvani 2 years ago
parent
commit
bb2ec97ad1
  1. 6
      SOURCES/hatchling.1
  2. 82
      SPECS/python-hatchling.spec

6
SOURCES/hatchling.1

@ -1,11 +1,11 @@ @@ -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. @@ -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

82
SPECS/python-hatchling.spec

@ -1,5 +1,5 @@ @@ -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 @@ @@ -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 @@ -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} @@ -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}' <<EOF
from hatchling.ouroboros import CONFIG

deps = CONFIG['project']['dependencies']
with open('requirements.ouroboros.txt', 'w') as reqfile:
reqfile.writelines(f'{dep}\n' for dep in deps)
EOF
%pyproject_buildrequires -R requirements.ouroboros.txt


%build
@ -58,12 +75,14 @@ install -t '%{buildroot}/%{_mandir}/man1' -D -p -m 0644 '%{SOURCE1}' @@ -58,12 +75,14 @@ install -t '%{buildroot}/%{_mandir}/man1' -D -p -m 0644 '%{SOURCE1}'

%check
# It’s not yet clear how, or if, we can run the upstream tests.
# https://github.com/pypa/hatch/issues/120
# https://github.com/ofek/hatch/issues/120
%pyproject_check_import


%files -n python3-hatchling -f %{pyproject_files}
%license LICENSE.txt
# Workaround for RHBZ#1985340 required for pyproject-rpm-macros < 1.1.0.
%dir %{python3_sitelib}/hatchling-%{version}.dist-info/license_files
%license %{python3_sitelib}/hatchling-%{version}.dist-info/license_files/LICENSE.txt
%doc README.md

%{_bindir}/hatchling
@ -71,58 +90,15 @@ install -t '%{buildroot}/%{_mandir}/man1' -D -p -m 0644 '%{SOURCE1}' @@ -71,58 +90,15 @@ install -t '%{buildroot}/%{_mandir}/man1' -D -p -m 0644 '%{SOURCE1}'


%changelog
* Sat Sep 10 2022 Benjamin A. Beasley <code@musicinmybrain.net> 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 <code@musicinmybrain.net> 1.8.1-1
- Update to 1.8.1 (close RHBZ#2121312)

* Tue Aug 16 2022 Benjamin A. Beasley <code@musicinmybrain.net> 1.8.0-1
- Update to 1.8.0 (close RHBZ#2117979)

* Sun Jul 24 2022 Benjamin A. Beasley <code@musicinmybrain.net> 1.6.0-1
- Update to 1.6.0 (close RHBZ#2110167)

* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> 1.5.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

* Mon Jul 11 2022 Benjamin A. Beasley <code@musicinmybrain.net> 1.5.0-1
- Update to 1.5.0 (close RHBZ#2105880)

* Thu Jul 07 2022 Benjamin A. Beasley <code@musicinmybrain.net> 1.4.1-1
- Update to 1.4.1 (close RHBZ#2103496)

* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> 1.3.1-2
- Rebuilt for Python 3.11

* Mon May 30 2022 Benjamin A. Beasley <code@musicinmybrain.net> 1.3.1-1
- Update to 1.3.1 (close RHBZ#1609549)

* Mon May 23 2022 Benjamin A. Beasley <code@musicinmybrain.net> 1.3.0-1
- Update to 1.3.0 (close RHBZ#2089077)

* Sat May 21 2022 Benjamin A. Beasley <code@musicinmybrain.net> 1.2.0-1
- Update to 1.2.0 (close RHBZ#2088843)

* Fri May 20 2022 Benjamin A. Beasley <code@musicinmybrain.net> 1.1.0-1
- Update to 1.1.0 (close RHBZ#2088671)

* Wed May 18 2022 Benjamin A. Beasley <code@musicinmybrain.net> 1.0.0-1
- Update to 1.0.0 (close RHBZ#2087533)

* Mon May 16 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.25.0-1
- Update to 0.25.0 (close RHBZ#2086373)

* Fri May 06 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.24.0-2
- Use wheel-building support to generate BR’s
* Mon May 02 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.24.0-2
- Backport to EPEL9

* Sat Apr 30 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.24.0-1
- Update to 0.24.0 (close RHBZ#2079689)

* Tue Apr 12 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.22.0-2
- Adjust for pyproject-rpm-macros >= 1.1.0

* Sun Mar 27 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.22.0-1
- Update to 0.22.0 (close RHBZ#2068853)


Loading…
Cancel
Save