# uv has many build dependencies, and will take some time to be available for # new EPEL major versions. %bcond uv %{undefined rhel} %global pypi_name build Name: python-%{pypi_name} Version: 1.2.1 Release: 6%{?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 # downstream-only Patch: 0001-fedora-disable-some-build-requirements.patch # https://github.com/pypa/build/pull/807 Patch: 0002-tests-optional-uv.patch # https://github.com/pypa/build/pull/808 Patch: 0003-tests-mark-more-network-tests.patch BuildArch: noarch 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. %pyproject_extras_subpkg -n python3-%{pypi_name} virtualenv %{?with_uv:uv} %prep %autosetup -p1 -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires -x test,virtualenv%{?with_uv:,uv} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} %check # Upstream has integration tests that can be run with the --run-integration # flag, but currently that only includes one network test and one test that is # xfail when flit-core is installed (which it will be during our package # build), so including that flag doesn't run any additional tests. %pytest -v -m "not network" %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.md %{_bindir}/pyproject-build %changelog * Fri Aug 30 2024 Carl George - 1.2.1-6 - Reduce build requirements * Fri Aug 30 2024 Benjamin A. Beasley - 1.2.1-5 - Add a metapackage for the uv extra * Thu Aug 01 2024 Benjamin A. Beasley - 1.2.1-4 - Enable tests that require uv * Fri Jul 19 2024 Fedora Release Engineering - 1.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 1.2.1-2 - Rebuilt for Python 3.13 * Thu Mar 28 2024 Lumir Balhar - 1.2.1-1 - Update to 1.2.1 (rhbz#2271978) * Sun Mar 17 2024 Charalampos Stratakis - 1.1.1-1 - Update to 1.1.1 - Resolves: rhbz#2267099 * Tue Jan 23 2024 Karolina Surma - 1.0.3-3 - Fix build with setuptools v69.0.3+ * Sun Jan 21 2024 Fedora Release Engineering - 1.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Oct 05 2023 Lumir Balhar - 1.0.3-1 - Update to 1.0.3 (rhbz#2236861) * Fri Jul 21 2023 Fedora Release Engineering - 0.10.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 15 2023 Python Maint - 0.10.0-7 - Rebuilt for Python 3.12 * Thu Jun 15 2023 Tomáš Hrnčiar - 0.10.0-6 - Avoid fatal DeprecationWarnings on Python 3.12+ * Wed Jun 14 2023 Python Maint - 0.10.0-5 - Rebuilt for Python 3.12 * Tue Jun 06 2023 Miro Hrončok - 0.10.0-4 - Do not BuildRequire pytest-cov, it is discouraged and was not needed * Thu Mar 16 2023 Lumir Balhar - 0.10.0-3 - Use upstream patch to fix tests instead of sed * Wed Mar 15 2023 Lumir Balhar - 0.10.0-2 - Fix FTBFS by hotfixing tests * Fri Jan 20 2023 Lumir Balhar - 0.10.0-1 - Update to 0.10.0 (rhbz#2160265) * Fri Jan 20 2023 Fedora Release Engineering - 0.9.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Jan 16 2023 Miro Hrončok - 0.9.0-2 - Drop redundant BuildRequries for deprecated python3-toml - https://fedoraproject.org/wiki/Changes/DeprecatePythonToml * Sun Oct 30 2022 Lumír Balhar - 0.9.0-1 - Update to 0.9.0 Resolves: rhbz#2138145 * Fri Jul 22 2022 Fedora Release Engineering - 0.8.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 0.8.0-3 - Rebuilt for Python 3.11 * Tue May 24 2022 Miro Hrončok - 0.8.0-2 - Package the build[virtualenv] extra * Mon May 23 2022 Lumír Balhar - 0.8.0-1 - Update to 0.8.0 Resolves: rhbz#2089034 * 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.