commit 6a9909ed8f2457a042401b6bc16aa81b0e9c7d71 Author: Sergey Cherevko Date: Wed Aug 23 17:42:42 2023 +0300 import python-hatchling-1.18.0-1.el9 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..533e91c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/hatchling-1.18.0.tar.gz diff --git a/.python-hatchling.metadata b/.python-hatchling.metadata new file mode 100644 index 0000000..6dfede6 --- /dev/null +++ b/.python-hatchling.metadata @@ -0,0 +1 @@ +f3db8639e9bee89e2e2420d1bc7a048a910622c9 SOURCES/hatchling-1.18.0.tar.gz diff --git a/SOURCES/0001-Downstream-only-loosen-dependency-versions-for-EPEL9.patch b/SOURCES/0001-Downstream-only-loosen-dependency-versions-for-EPEL9.patch new file mode 100644 index 0000000..4fed590 --- /dev/null +++ b/SOURCES/0001-Downstream-only-loosen-dependency-versions-for-EPEL9.patch @@ -0,0 +1,29 @@ +From 434141ae48b911d3b56675a34f38f9ffbb49b641 Mon Sep 17 00:00:00 2001 +From: "Benjamin A. Beasley" +Date: Mon, 24 Jul 2023 11:30:02 -0400 +Subject: [PATCH] Downstream-only: loosen dependency versions for EPEL9 + +See discussion in https://bugzilla.redhat.com/show_bug.cgi?id=2158497. +--- + backend/pyproject.toml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/backend/pyproject.toml b/backend/pyproject.toml +index 8e4e5ffc..2655b7d6 100644 +--- a/backend/pyproject.toml ++++ b/backend/pyproject.toml +@@ -35,9 +35,9 @@ classifiers = [ + ] + dependencies = [ + "editables>=0.3", +- "packaging>=21.3", ++ "packaging>=20.9", + "pathspec>=0.10.1", +- "pluggy>=1.0.0", ++ "pluggy>=0.13.1", + "tomli>=1.2.2; python_version < '3.11'", + "trove-classifiers", + ] +-- +2.41.0 + diff --git a/SOURCES/hatchling-build.1 b/SOURCES/hatchling-build.1 new file mode 100644 index 0000000..943805f --- /dev/null +++ b/SOURCES/hatchling-build.1 @@ -0,0 +1,40 @@ +.TH HATCHLING\-BUILD "1" "October 2022" "" "User Commands" +.SH NAME +.B hatchling\ build +.SH SYNOPSIS +.B hatchling\ build +.RB [ \-h ] +.RB [ \-d ] +.RB [ \-t ] +.RB [ \-\-hooks\-only ] +.RB [ \-\-no\-hooks ] +.RB [ \-c ] +.RB [ \-\-clean\-hooks\-after ] +.RB [ \-\-clean\-only ] +.SH OPTIONS +.SS "OPTIONAL\ ARGUMENTS" +.TP +.B \-h\fR,\ \fB\-\-help +Show a help message and exit +.TP +.B \-d\fR,\ \fB\-\-directory +The directory in which to build artifacts +.TP +.B \-t\fR,\ \fB\-\-targets +Comma-separated list of targets to build, overriding project defaults +.TP +.B \-\-hooks\-only +.TP +.B \-\-no\-hooks +.TP +.B \-c\fR,\ \fB\-\-clean +.TP +.B \-\-clean\-hooks\-after +.TP +.B \-\-clean\-only +.SH "SEE\ ALSO" +.BR hatchling\-dep (1), +.BR hatchling\-metadata (1), +.BR hatchling\-version (1) +.P +.BR hatchling (1) diff --git a/SOURCES/hatchling-dep-synced.1 b/SOURCES/hatchling-dep-synced.1 new file mode 100644 index 0000000..7199db2 --- /dev/null +++ b/SOURCES/hatchling-dep-synced.1 @@ -0,0 +1,22 @@ +.TH HATCHLING\-DEP\-SYNCED "1" "October 2022" "" "User Commands" +.SH NAME +.B hatchling\ dep\ synced +.SH SYNOPSIS +.B hatchling\ dep\ synced +.RB [ \-h ] +.RB [ \-p ] +.I dependencies +.RI [ dependencies \ ...] +.SH OPTIONS +.SS "POSITIONAL\ ARGUMENTS" +.TP +.I dependencies +.SS "OPTIONAL\ ARGUMENTS" +.TP +.B \-h\fR,\ \fB\-\-help +Show a help message and exit +.TP +.B \-p\fR,\ \fB\-\-python +.SH "SEE\ ALSO" +.BR hatchling\-dep (1), +.BR hatchling (1) diff --git a/SOURCES/hatchling-dep.1 b/SOURCES/hatchling-dep.1 new file mode 100644 index 0000000..419824f --- /dev/null +++ b/SOURCES/hatchling-dep.1 @@ -0,0 +1,25 @@ +.TH HATCHLING\-DEP "1" "October 2022" "" "User Commands" +.SH NAME +.B hatchling\ dep +.SH SYNOPSIS +.B hatchling\ dep +.RB [ \-h ] +.RB { synced }\ ... +.SH OPTIONS +.SS "COMMANDS" +.TP +.B synced +See +.BR hatchling\-dep\-synced (1). +.SS "OPTIONAL\ ARGUMENTS" +.TP +.B \-h\fR,\ \fB\-\-help +Show a help message and exit +.SH "SEE\ ALSO" +.BR hatchling\-dep\-synced (1) +.P +.BR hatchling\-build (1), +.BR hatchling\-metadata (1), +.BR hatchling\-version (1) +.P +.BR hatchling (1) diff --git a/SOURCES/hatchling-metadata.1 b/SOURCES/hatchling-metadata.1 new file mode 100644 index 0000000..bdd98a1 --- /dev/null +++ b/SOURCES/hatchling-metadata.1 @@ -0,0 +1,24 @@ +.TH HATCHLING\-METADATA "1" "October 2022" "" "User Commands" +.SH NAME +.B hatchling\ metadata +.SH SYNOPSIS +.B hatchling\ metadata +.RB [ \-h ] +.RB [ \-c ] +.RI [ field ] +.SH OPTIONS +.SS "POSITIONAL\ ARGUMENTS" +.TP +.I field +.SS "OPTIONAL\ ARGUMENTS" +.TP +.B \-h\fR,\ \fB\-\-help +Show a help message and exit +.TP +.B \-c\fR,\ \fB\-\-compact +.SH "SEE\ ALSO" +.BR hatchling\-build (1), +.BR hatchling\-dep (1), +.BR hatchling\-version (1) +.P +.BR hatchling (1) diff --git a/SOURCES/hatchling-version.1 b/SOURCES/hatchling-version.1 new file mode 100644 index 0000000..df0607e --- /dev/null +++ b/SOURCES/hatchling-version.1 @@ -0,0 +1,18 @@ +.TH HATCHLING\-VERSION "1" "October 2022" "" "User Commands" +.SH NAME +.B hatchling\ version +.SH SYNOPSIS +.B hatchling\ version +.RB [ \-h ] +.SH OPTIONS +.\" .SS "POSITIONAL\ ARGUMENTS" +.SS "OPTIONAL\ ARGUMENTS" +.TP +.B \-h\fR,\ \fB\-\-help +Show a help message and exit +.SH "SEE\ ALSO" +.BR hatchling\-build (1), +.BR hatchling\-dep (1), +.BR hatchling\-metadata (1) +.P +.BR hatchling (1) diff --git a/SOURCES/hatchling.1 b/SOURCES/hatchling.1 new file mode 100644 index 0000000..91c5d25 --- /dev/null +++ b/SOURCES/hatchling.1 @@ -0,0 +1,39 @@ +.TH HATCHLING "1" "October 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 }\ ... +.SH DESCRIPTION +This is the extensible, standards compliant build backend used by Hatch. +.SH OPTIONS +.SS "COMMANDS" +.TP +.B build +See +.BR hatchling\-build (1). +.TP +.B dep +See +.BR hatchling\-dep (1). +.TP +.B metadata +See +.BR hatchling\-metadata (1). +.TP +.B version +See +.BR hatchling\-version (1). +.SS "OPTIONAL\ ARGUMENTS" +.TP +.B \-h\fR,\ \fB\-\-help +Show a help message and exit +.SH "SEE\ ALSO" +.BR hatchling\-build (1), +.BR hatchling\-dep (1), +.BR hatchling\-metadata (1), +.BR hatchling\-version (1) +.P +.BR hatch (1) diff --git a/SPECS/python-hatchling.spec b/SPECS/python-hatchling.spec new file mode 100644 index 0000000..7208168 --- /dev/null +++ b/SPECS/python-hatchling.spec @@ -0,0 +1,114 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec +Name: python-hatchling +Version: 1.18.0 +Release: %autorelease +Summary: The build backend used by Hatch + +# SPDX +License: MIT +URL: https://pypi.org/project/hatchling +Source0: %{pypi_source hatchling} +# Written for Fedora in groff_man(7) format based on --help output +Source100: hatchling.1 +Source200: hatchling-build.1 +Source300: hatchling-dep.1 +Source310: hatchling-dep-synced.1 +Source400: hatchling-metadata.1 +Source500: hatchling-version.1 + +Patch: 0001-Downstream-only-loosen-dependency-versions-for-EPEL9.patch + +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.} + +%description %{common_description} + + +%package -n python3-hatchling +Summary: %{summary} + +%description -n python3-hatchling %{common_description} + + +%prep +%autosetup -n hatchling-%{version} -p2 + + +%generate_buildrequires +%pyproject_buildrequires + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files hatchling + +install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 \ + '%{SOURCE100}' \ + '%{SOURCE200}' \ + '%{SOURCE300}' '%{SOURCE310}' \ + '%{SOURCE400}' \ + '%{SOURCE500}' + + +%check +# It’s not yet clear how, or if, we can run the upstream tests. +# https://github.com/pypa/hatch/issues/120 +%pyproject_check_import + + +%files -n python3-hatchling -f %{pyproject_files} +%doc README.md + +%{_bindir}/hatchling +%{_mandir}/man1/hatchling.1* +%{_mandir}/man1/hatchling-*.1* + + +%changelog +* Thu Aug 24 2023 Sergey Cherevko - 1.18.0-1 +- Rebuilt for MSVSphere 9.2 + +* Thu Jul 27 2023 Benjamin A. Beasley - 1.18.0-1 +- Update to 1.18.0 (close RHBZ#2214286) + +* Thu Jul 27 2023 Benjamin A. Beasley - 1.17.1-1 +- Update to 1.17.1 (close RHBZ#2212081) + +* Thu Jul 27 2023 Benjamin A. Beasley - 1.17.0-1 +- Update to 1.17.0 (close RHBZ#2203351) + +* Thu Jul 27 2023 Benjamin A. Beasley - 1.16.1-1 +- Update to 1.16.1 (close RHBZ#2203227) + +* Thu Jul 27 2023 Benjamin A. Beasley - 1.16.0-1 +- Update to 1.16 (close RHBZ#2196940) + +* Thu Jul 27 2023 Benjamin A. Beasley - 1.15.0-1 +- Update to 1.15.0 (close RHBZ#2196648) + +* Thu Jul 27 2023 Benjamin A. Beasley - 1.14.1-1 +- Update to 1.14.1 (close RHBZ#2188977) + +* Thu Jul 27 2023 Benjamin A. Beasley - 1.14.0-1 +- Update to 1.14.0 (close RHBZ#21838751) + +* Mon Jul 24 2023 Benjamin A. Beasley - 1.13.0-2 +- RPMAUTOSPEC: unresolvable merge