Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37746837
en ru br
Репозитории ALT

Группа :: 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 можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin