Группа :: Development/Python3
Пакет: python3-module-pep517
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%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: alt2
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(testpath)
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
…
Полный changelog можно просмотреть здесь
%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: alt2
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(testpath)
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
…
Полный changelog можно просмотреть здесь