From 4087f79df8f0ad96e6f0e4c4165f88ab1c9052d4 Mon Sep 17 00:00:00 2001 From: Gilver Date: Wed, 14 May 2025 07:45:34 -0500 Subject: [PATCH] [f41] chore: Update Python packages to the modern RPM Python build system (#4816) (#4826) * chore: Update Python packages to the modern RPM Python build system (#4816) * chore(shibuya): Update to modern Python macros, prep stuff for docs? Signed-off-by: Gilver * chore(lomiri-ui-toolkit): Update to modern Python macros Signed-off-by: Gilver * chore(spinxcontrib-moderncmakedomain): Follow guidelines for "canonical" name Signed-off-by: Gilver * Oops Signed-off-by: Gilver * fix(lomiri-ui-toolkit) More modern Python changes * Aaaa * chore(pillow-heif): Update to modern Python build systems * chore(protobuf): Update to modern Python build systems * refactor(sphinx-moderncmakedomain): Run tests with Nox instead * fix(shibuya): Oops Signed-off-by: Gilver --------- Signed-off-by: Gilver (cherry picked from commit b02f48f9c784c5c2d350cb3db9e0be0ac06f2626) Signed-off-by: RockGrub * Revert specs for packages Python is too old for --------- Signed-off-by: Gilver Signed-off-by: RockGrub --- .../python-sphinxcontrib-moderncmakedomain.spec | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/anda/langs/python/sphinxcontrib-moderncmakedomain/python-sphinxcontrib-moderncmakedomain.spec b/anda/langs/python/sphinxcontrib-moderncmakedomain/python-sphinxcontrib-moderncmakedomain.spec index ba94a02468..20e63a045a 100644 --- a/anda/langs/python/sphinxcontrib-moderncmakedomain/python-sphinxcontrib-moderncmakedomain.spec +++ b/anda/langs/python/sphinxcontrib-moderncmakedomain/python-sphinxcontrib-moderncmakedomain.spec @@ -5,13 +5,14 @@ Name: python-%{real_name} Version: 3.29.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Sphinx domain for modern CMake License: BSD-3-Clause URL: https://github.com/scikit-build/moderncmakedomain Source0: %{pypi_source} BuildRequires: python3-devel BuildRequires: python3dist(hatchling) +BuildRequires: python3dist(nox) BuildRequires: python3dist(pip) BuildRequires: python3dist(pytest) BuildRequires: python3dist(setuptools) @@ -22,13 +23,14 @@ Packager: Gilver E. %description Modern CMake domain entries, originally from Kitware. -%package -n python3-%{pypi_name} +%package -n python3-%{real_name} Summary: %{summary} Requires: python3dist(hatchling) Requires: python3dist(sphinx) -%{?python_provide:%python_provide python3-%{pypi_name}} +Obsoletes: python3-%{pypi_name} < 3.29.0-2 +%{?python_provide:%python_provide python3-%{real_name}} -%description -n python3-%{pypi_name} +%description -n python3-%{real_name} Modern CMake domain entries, originally from Kitware. %prep @@ -41,9 +43,9 @@ Modern CMake domain entries, originally from Kitware. %pyproject_install %check -%pytest tests/*.py +nox -s tests -%files -n python3-%{pypi_name} +%files -n python3-%{real_name} %doc PKG-INFO %doc README.md %license LICENSE