Blame SPECS/python-re-assert.spec

bef529
%global srcname  re-assert
bef529
%global slugname re_assert
bef529
%global forgeurl https://github.com/asottile/re-assert
bef529
bef529
%global common_description %{expand:
bef529
Show where your regex match assertion failed!}
bef529
bef529
%bcond_without tests
bef529
bef529
Name:           python-%{srcname}
bef529
Version:        1.1.0
bef529
%forgemeta
bef529
Release:        %autorelease
bef529
Summary:        Show where your regex match assertion failed!
bef529
URL:            %{forgeurl}
bef529
Source:         %{forgesource}
bef529
Patch:          0001_adding_pytest_to_the_testing_dependencies.patch
bef529
# SPDX
bef529
License:        MIT
bef529
BuildArch:      noarch
bef529
BuildRequires:  python3-devel
bef529
bef529
%description %{common_description}
bef529
bef529
%package -n python3-%{srcname}
bef529
Summary: %{summary}
bef529
%description -n python3-%{srcname} %{common_description}
bef529
bef529
%prep
bef529
%forgeautosetup -p1
bef529
bef529
%generate_buildrequires
bef529
%pyproject_buildrequires %{?with_tests:-x test}
bef529
bef529
%build
bef529
%pyproject_wheel
bef529
bef529
%install
bef529
%pyproject_install
bef529
%pyproject_save_files -l %{slugname}
bef529
bef529
%if %{with tests}
bef529
%check
bef529
%pytest
bef529
%endif
bef529
bef529
%files -n python3-%{srcname} -f %{pyproject_files}
bef529
bef529
%changelog
bef529
%autochangelog