2023-01-23 14:08:27 +00:00
|
|
|
# Needed for Python bootstrap
|
|
|
|
%bcond_without tests
|
|
|
|
|
2023-01-17 09:20:18 +00:00
|
|
|
Name: python-pyproject-hooks
|
|
|
|
Version: 1.0.0
|
2023-01-17 09:37:13 +00:00
|
|
|
Release: %autorelease
|
2023-01-17 09:20:18 +00:00
|
|
|
Summary: Wrappers to call pyproject.toml-based build backend hooks
|
|
|
|
|
2023-10-09 13:06:25 +00:00
|
|
|
# SPDX
|
2023-01-17 09:20:18 +00:00
|
|
|
License: MIT
|
|
|
|
URL: https://pypi.org/project/pyproject_hooks/
|
|
|
|
Source: %{pypi_source pyproject_hooks}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
This is a low-level library for calling build-backends in
|
|
|
|
pyproject.toml-based project. It provides the basic functionality
|
|
|
|
to help write tooling that generates distribution files from
|
|
|
|
Python projects.}
|
|
|
|
|
|
|
|
|
|
|
|
%description %_description
|
|
|
|
|
|
|
|
%package -n python3-pyproject-hooks
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
%description -n python3-pyproject-hooks %_description
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n pyproject_hooks-%{version}
|
|
|
|
sed -i "/flake8/d" dev-requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
2023-06-06 16:53:34 +00:00
|
|
|
%pyproject_buildrequires %{?with_tests:dev-requirements.txt}
|
2023-01-17 09:20:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%pyproject_install
|
|
|
|
%pyproject_save_files pyproject_hooks
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
2023-06-06 16:55:35 +00:00
|
|
|
%pyproject_check_import
|
|
|
|
%if %{with tests}
|
2023-06-06 16:53:34 +00:00
|
|
|
%pytest
|
2023-01-23 14:08:27 +00:00
|
|
|
%endif
|
2023-01-17 09:20:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-pyproject-hooks -f %{pyproject_files}
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2023-01-17 09:37:13 +00:00
|
|
|
%autochangelog
|