%global pypi_name build Name: python-%{pypi_name} Version: 0.7.0 Release: 3%{?dist} Summary: A simple, correct PEP517 package builder License: MIT URL: https://github.com/pypa/build Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch # env._find_executable_and_scripts(): Prefer the venv installation scheme if it exists # Fixes https://bugzilla.redhat.com/2059268 # Merged upstream in https://github.com/pypa/build/pull/434 Patch: 434.patch # Followup to fix a failing test, # rebased from https://github.com/pypa/build/pull/448 Patch: 448.patch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros >= 0-41 %description A simple, correct PEP517 package builder. %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} A simple, correct PEP517 package builder. %prep %autosetup -p1 -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires -x test %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} %check # The skipped tests require internet %pytest -k "not (test_build_package or \ test_build_package_via_sdist or \ test_output[via-sdist-isolation] or \ test_output[wheel-direct-isolation] or \ test_wheel_metadata[True] or \ test_wheel_metadata_isolation or \ test_with_get_requires)" %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.md %{_bindir}/pyproject-build %changelog * Fri Mar 18 2022 Miro Hrončok - 0.7.0-3 - Fix virtualenv creation by using the "venv" sysconfig installation scheme - Resolves: rhbz#2059268 * Fri Jan 21 2022 Fedora Release Engineering - 0.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Sep 20 2021 Lumír Balhar - 0.7.0-1 - Update to 0.7.0 Resolves: rhbz#2005146 * Wed Aug 04 2021 Lumír Balhar - 0.6.0-1 - Update to 0.6.0 Resolves: rhbz#1989297 * Fri Jul 23 2021 Fedora Release Engineering - 0.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Jun 24 2021 Lumír Balhar - 0.5.1-1 - Initial package.