diff --git a/base/comps/components.toml b/base/comps/components.toml index a9f322d1324..b0ea3625c37 100644 --- a/base/comps/components.toml +++ b/base/comps/components.toml @@ -3546,7 +3546,6 @@ includes = ["**/*.comp.toml", "component-check-disablement.toml", "component-min [components.python-botocore] [components.python-breathe] [components.python-bsddb3] -[components.python-build] [components.python-cached_property] [components.python-cachetools] [components.python-cairocffi] diff --git a/base/comps/python-build/python-build.comp.toml b/base/comps/python-build/python-build.comp.toml new file mode 100644 index 00000000000..aeab7d4a9e0 --- /dev/null +++ b/base/comps/python-build/python-build.comp.toml @@ -0,0 +1,11 @@ +# AZL does not ship python3-uv or python3-build+uv/+virtualenv extras subpackages. +# The extras bcond (default ON via %{undefined rhel}) pulls uv into BuildRequires +# via %pyproject_buildrequires -x virtualenv,uv, causing BR-unresolvable failures. +# +# Tests are disabled to align with RHEL — the spec notes "not all test dependencies +# are included in RHEL: filelock, pytest-mock". The dynamic test BRs (via -g test) +# create fragile ordering dependencies in the Koji nightly build tag, causing +# BR-unresolvable failures (task 2593995). +# %pyproject_check_import still runs as a basic sanity check. +[components.python-build] +build.without = ["extras", "tests"] diff --git a/locks/python-build.lock b/locks/python-build.lock index 988a6742109..d60f7f5ce88 100644 --- a/locks/python-build.lock +++ b/locks/python-build.lock @@ -2,5 +2,5 @@ version = 1 import-commit = '30b4e152e5d7c953489ac1ede1453523e1831387' upstream-commit = '30b4e152e5d7c953489ac1ede1453523e1831387' -input-fingerprint = 'sha256:ae84fee305eb05777ea00ff61f6f7c38f21311a598bebdffd49c6c0d7a5a7fb4' +input-fingerprint = 'sha256:2c924a7df146d698b268c844cfc23c2743f859ccade45b5b0e964aa781aa31d7' resolution-input-hash = 'sha256:466421704711c4fd3c71f0b2ed715a0e61d49e3e26f3a2637fee755795849c8e' diff --git a/specs/p/python-build/python-build.azl.macros b/specs/p/python-build/python-build.azl.macros new file mode 100644 index 00000000000..0dbb3f29698 --- /dev/null +++ b/specs/p/python-build/python-build.azl.macros @@ -0,0 +1,4 @@ +# Macros file automatically generated by azldev. +# Do not edit manually; changes will be overwritten. +%_without_extras 1 +%_without_tests 1 diff --git a/specs/p/python-build/python-build.spec b/specs/p/python-build/python-build.spec index 7fdea358e0b..a956ed311d7 100644 --- a/specs/p/python-build/python-build.spec +++ b/specs/p/python-build/python-build.spec @@ -2,7 +2,7 @@ ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: - release_number = 5; + release_number = 6; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} @@ -11,6 +11,9 @@ # This spec file has been modified by azldev to include build configuration overlays. # Do not edit manually; changes may be overwritten. +# All Azure Linux specs with overlays include this macro file, irrespective of whether new macros have been added. +%{load:%{_sourcedir}/python-build.azl.macros} + # not all test dependencies are included in RHEL: filelock, pytest-mock %bcond tests %{undefined rhel} # uv has many build dependencies which are not included in RHEL; @@ -27,6 +30,7 @@ Summary: A simple, correct PEP517 package builder License: MIT URL: https://github.com/pypa/build Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz +Source9999: python-build.azl.macros # downstream-only Patch: 0001-fedora-disable-some-build-requirements.patch @@ -92,6 +96,9 @@ A simple, correct PEP517 package builder. %changelog ## START: Generated by rpmautospec +* Fri May 29 2026 Autumn Nash - 1.3.0-6 +- python-build: disable tests bcond to fix BR-unresolvable nightly failure + * Thu Apr 30 2026 Daniel McIlvaney - 1.3.0-5 - feat: introduce deterministic commit resolution via Azure Linux lock file