|
|
541142 |
# uv has many build dependencies, and will take some time to be available for
|
|
|
541142 |
# new EPEL major versions.
|
|
|
541142 |
%bcond uv %{undefined rhel}
|
|
|
541142 |
|
|
|
541142 |
%global pypi_name build
|
|
|
541142 |
|
|
|
541142 |
Name: python-%{pypi_name}
|
|
|
541142 |
Version: 1.2.1
|
|
|
541142 |
Release: %autorelease
|
|
|
541142 |
Summary: A simple, correct PEP517 package builder
|
|
|
541142 |
|
|
|
541142 |
License: MIT
|
|
|
541142 |
URL: https://github.com/pypa/build
|
|
|
541142 |
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
|
|
541142 |
|
|
|
541142 |
# downstream-only
|
|
|
541142 |
Patch: 0001-fedora-disable-some-build-requirements.patch
|
|
|
541142 |
# https://github.com/pypa/build/pull/807
|
|
|
541142 |
Patch: 0002-tests-optional-uv.patch
|
|
|
541142 |
# https://github.com/pypa/build/pull/808
|
|
|
541142 |
Patch: 0003-tests-mark-more-network-tests.patch
|
|
|
541142 |
|
|
|
541142 |
BuildArch: noarch
|
|
|
541142 |
|
|
|
541142 |
BuildRequires: python3-devel
|
|
|
541142 |
BuildRequires: pyproject-rpm-macros >= 0-41
|
|
|
541142 |
|
|
|
541142 |
%description
|
|
|
541142 |
A simple, correct PEP517 package builder.
|
|
|
541142 |
|
|
|
541142 |
|
|
|
541142 |
%package -n python3-%{pypi_name}
|
|
|
541142 |
Summary: %{summary}
|
|
|
541142 |
|
|
|
541142 |
%description -n python3-%{pypi_name}
|
|
|
541142 |
A simple, correct PEP517 package builder.
|
|
|
541142 |
|
|
|
541142 |
|
|
|
541142 |
%pyproject_extras_subpkg -n python3-%{pypi_name} virtualenv %{?with_uv:uv}
|
|
|
541142 |
|
|
|
541142 |
|
|
|
541142 |
%prep
|
|
|
541142 |
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
|
541142 |
|
|
|
541142 |
|
|
|
541142 |
%generate_buildrequires
|
|
|
541142 |
%pyproject_buildrequires -x test,virtualenv%{?with_uv:,uv}
|
|
|
541142 |
|
|
|
541142 |
%build
|
|
|
541142 |
%pyproject_wheel
|
|
|
541142 |
|
|
|
541142 |
%install
|
|
|
541142 |
%pyproject_install
|
|
|
541142 |
%pyproject_save_files %{pypi_name}
|
|
|
541142 |
|
|
|
541142 |
%check
|
|
|
541142 |
# Upstream has integration tests that can be run with the --run-integration
|
|
|
541142 |
# flag, but currently that only includes one network test and one test that is
|
|
|
541142 |
# xfail when flit-core is installed (which it will be during our package
|
|
|
541142 |
# build), so including that flag doesn't run any additional tests.
|
|
|
541142 |
%pytest -v -m "not network"
|
|
|
541142 |
|
|
|
541142 |
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
|
|
541142 |
%license LICENSE
|
|
|
541142 |
%doc README.md
|
|
|
541142 |
%{_bindir}/pyproject-build
|
|
|
541142 |
|
|
|
541142 |
%changelog
|
|
|
541142 |
%autochangelog
|