Name: python3-module-extension_helpers
Version: 1.1.1
Release: alt1
Group: Development/Python3
License: BSD-3-Clause
Summary: Utilities for building and installing packages with compiled extensions
URL: https://github.com/astropy/extension-helpers
Packager: Alexander Lubyagin <dfpl@altlinux.org>
Source: %name-%version.tar

BuildRequires(pre): rpm-macros-pyproject
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-setuptools_scm
BuildRequires: python3-module-tox
BuildRequires: python3-module-setuptools-wheel
BuildRequires: python3-module-pytest
BuildRequires: python3-module-pytest-cov
BuildRequires: python3-module-sphinx
BuildRequires: python3-module-sphinx-automodapi
Requires: python3-module-setuptools
Requires: python3-module-pytest
Provides: python3(extension_helpers.version)

%description
Helpers to assist with building Python packages with compiled C/Cython extensions.

%prep
%setup

%build
export SETUPTOOLS_SCM_PRETEND_VERSION=%version
%pyproject_build

%install
export SETUPTOOLS_SCM_PRETEND_VERSION=%version
%pyproject_install
mkdir -p %buildroot%python3_sitelibdir_noarch/extension_helpers/src
cp -a extension_helpers/src/compiler.c %buildroot%python3_sitelibdir_noarch/extension_helpers/src/

%check
%tox_check_pyproject

# --no-sisyphus-check
%files
%python3_sitelibdir_noarch/extension_helpers/
%python3_sitelibdir_noarch/extension_helpers/src/compiler.c
%exclude %python3_sitelibdir_noarch/extension_helpers-*.dist-info/

%changelog
* Thu Jul 25 2024 Alexander Lubyagin <dfpl@altlinux.org> 1.1.1-alt1
- 1.1.1
