python-hatchling/python-hatchling.spec
Benjamin A. Beasley c481a8b74a Update to 1.24.2
This is from https://src.fedoraproject.org/rpms/python-hatchling/pull-request/75

The Fedora update is blocked on hatch (which is blocked on packaging uv).
But there is no hatch in c10s and this gets rid of the dependency on python-editables.

If EPEL 10 wants to package hatch, they will need to backport the relevant change from
https://github.com/pypa/hatch/pull/1255
2024-06-11 16:26:49 +02:00

74 lines
1.5 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Name: python-hatchling
Version: 1.24.2
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
BuildArch: noarch
BuildRequires: python3-devel
%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}
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files -l hatchling
install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 \
'%{SOURCE100}' \
'%{SOURCE200}' \
'%{SOURCE300}' '%{SOURCE310}' \
'%{SOURCE400}' \
'%{SOURCE500}'
%check
# We cannot run the “downstream integration tests” included with the PyPI sdist
# in an offline build. The primary tests are Hatchs “backend” tests.
%pyproject_check_import
%files -n python3-hatchling -f %{pyproject_files}
%doc README.md
%{_bindir}/hatchling
%{_mandir}/man1/hatchling.1*
%{_mandir}/man1/hatchling-*.1*
%changelog
%autochangelog