Пакет python3-module-pep517: Specfile
%define _unpackaged_files_terminate_build 1 %define pypi_name pep517 %define tomli %(%__python3 -c 'import sys;print(int(sys.version_info < (3, 11)))') %def_with check Name: python3-module-%pypi_name Version: 0.13.0 Release: alt1 Summary: API to call PEP 517 hooks for building Python packages Group: Development/Python3 License: MIT Url: https://github.com/pypa/pep517 BuildArch: noarch Source: %name-%version.tar Patch0: %name-%version-alt.patch BuildRequires(pre): rpm-build-python3 # build backend and its deps BuildRequires: python3(flit_core) %if_with check # install_requires: # tomllib since Python 3.11+ %if %tomli BuildRequires: python3(tomli) %endif # tests BuildRequires: python3(pytest) %endif %if %tomli # rebuild against Python 3.11 is required to get rid of old dependency %py3_requires tomli %endif %description PEP 517 specifies a standard API for systems which build Python packages. %prep %setup %autopatch -p1 %build %pyproject_build %install %pyproject_install %check %tox_check_pyproject %files %doc README.rst %python3_sitelibdir/pep517/ %python3_sitelibdir/%{pyproject_distinfo %pypi_name}/ %changelog * Wed Aug 10 2022 Stanislav Levin <slev@altlinux.org> 0.13.0-alt1 - 0.12.0 -> 0.13.0. * Tue Jan 11 2022 Stanislav Levin <slev@altlinux.org> 0.12.0-alt1 - 0.10.0 -> 0.12.0. * Thu Apr 22 2021 Vitaly Lipatov <lav@altlinux.ru> 0.10.0-alt2 - initial build for ALT Sisyphus * Tue Apr 20 2021 Pablo Soldatoff <soldatoff@etersoft.ru> 0.10.0-alt1 - new version (0.10.0) with rpmgs script |