%global pypi_name pep517 %global python3_pkgversion 3.11 Name: python-%{pypi_name} Version: 0.13.0 Release: 6.c.py3.11%{?dist} Summary: Wrappers to build Python packages using PEP 517 hooks #bcond_without tests # colorlog.py is "copied from Tornado", Apache licensed License: MIT and ASL 2.0 URL: https://github.com/pypa/pep517 Source0: %{pypi_source} BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: pyproject-rpm-macros %description This package contains wrappers around the hooks of standard API for systems which build Python packages, specified in PEP 517. %package -n python%{python3_pkgversion}-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} # colorlog.py is "copied from Tornado", Apache licensed Provides: bundled(python3dist(tornado)) %description -n python%{python3_pkgversion}-%{pypi_name} This package contains wrappers around the hooks of standard API for systems which build Python packages, specified in PEP 517. %prep %autosetup -p1 -n %{pypi_name}-%{version} # Don't run the linter as part of tests sed -i '/--flake8$/d' pytest.ini sed -i '/flake8/d' dev-requirements.txt %generate_buildrequires %pyproject_buildrequires %{?with_tests:-t} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} %if %{with tests} %check for b in $(find %{buildroot}%{_bindir}/ -type f) ; do mv "$b" $(sed -re "s/(.*)$/\1-%{python3_pkgversion}/"<<<"$b"); done for m in $(find %{buildroot}%{_mandir}/ -type f) ; do mv "$m" $(sed -re "s/(.*).([1-8]([^.]+)?)$/\1-%{python3_pkgversion}.\2/"<<<"$m"); done for m in $(find %{buildroot}%{_datadir}/locale/* -type f) ; do mv "$m" $(sed -re "s/(.*).mo$/\1-%{python3_pkgversion}.mo/"<<<"$m"); done # "test_meta" skipped as it creates a venv and tries # to install to it from PyPI %tox -- -- -v -k "not test_meta" %endif %files -n python%{python3_pkgversion}-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.rst %changelog * Tue Apr 09 2024 Ding-Yi Chen - 0.13.0-6.c.py3.11 - Cut corner packaging * Fri Jul 21 2023 Fedora Release Engineering - 0.13.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 04 2023 Python Maint - 0.13.0-4 - Rebuilt for Python 3.12 * Tue Jun 13 2023 Python Maint - 0.13.0-3 - Bootstrap for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.13.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Sep 13 2022 Lumír Balhar - 0.13.0-1 - Update to 0.13.0 Resolves: rhbz#2112398 * Fri Jul 22 2022 Fedora Release Engineering - 0.12.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.12.0-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.12.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Oct 26 2021 Lumír Balhar - 0.12.0-1 - Update to 0.12.0 Resolves: rhbz#2014930 * Fri Jul 23 2021 Petr Viktorin - 0.11.0-1 - Update to version 0.11.0 * Fri Jul 23 2021 Fedora Release Engineering - 0.10.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.10.0-2 - Rebuilt for Python 3.10 * Tue Mar 16 2021 Petr Viktorin - 0.10.0-1 - Update to version 0.10.0 * Wed Jan 27 2021 Fedora Release Engineering - 0.9.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Nov 13 2020 Petr Viktorin - 0.9.1-1 - Update to version 0.9.1 * Fri Oct 09 2020 Petr Viktorin - 0.8.2-1 - Update to version 0.8.2 * Mon Sep 21 2020 Miro Hrončok - 0.7.0-6 - Use %%pyproject_buildrequires to bring in all the needed tools (like pip) - Resolves rhbz#1880983 * Wed Jul 29 2020 Fedora Release Engineering - 0.7.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.7.0-4 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.7.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Nov 14 2019 Petr Viktorin - 0.7.0-2 - Don't pull in importlib_metadata & zipp backports for Python 3.8+ * Wed Oct 23 2019 Petr Viktorin - 0.7.0-1 - Update to version 0.7.0 - Change dependency from pytoml to toml * Thu Oct 03 2019 Miro Hrončok - 0.5.0-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.5.0-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jul 18 2019 Petr Viktorin - 0.5.0-1 - Initial package