Merge branch 'rawhide' into epel9

epel9 imports/epel9/python-tomli-w-0.4.0-3.el9
Michel Alexandre Salim 3 years ago committed by Miro Hrončok
commit 76d1a0efdb

@ -1,16 +1,8 @@
%bcond_with bootstrap
%if %{with bootstrap}
%bcond_with check
%else
%bcond_without check %bcond_without check
%endif
%global modname tomli_w
Name: python-tomli-w Name: python-tomli-w
Version: 0.4.0 Version: 0.4.0
Release: 2%{?dist} Release: 3%{?dist}
Summary: A Python library for writing TOML Summary: A Python library for writing TOML
License: MIT License: MIT
@ -35,14 +27,17 @@ Summary: %{summary}
%prep %prep
%autosetup -p1 -n tomli-w-%{version} %autosetup -p1 -n tomli-w-%{version}
# Measuring coverage is discouraged in Python packaging guidelines:
sed -i '/pytest-cov/d' tests/requirements.txt
# This testing dependency is optional and we don't have it in (EP)EL,
# it has many missing transitive dependencies that we don't want to maintain
%if 0%{?rhel}
sed -i '/pytest-randomly/d' tests/requirements.txt
%endif
%generate_buildrequires %generate_buildrequires
%if %{with check} %pyproject_buildrequires %{?with_check:-t}
%pyproject_buildrequires -t
%else
%pyproject_buildrequires
%endif
%build %build
@ -51,15 +46,13 @@ Summary: %{summary}
%install %install
%pyproject_install %pyproject_install
%pyproject_save_files %{modname} %pyproject_save_files tomli_w
%check %check
%pyproject_check_import tomli_w
%if %{with check} %if %{with check}
%tox %tox
%else
# no %%pyproject_check_import on EL9
%py3_check_import %{modname}
%endif %endif
@ -70,6 +63,9 @@ Summary: %{summary}
%changelog %changelog
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jan 20 2022 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.4.0-2 * Thu Jan 20 2022 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.4.0-2
- Add boostrap and check toggles to ease bootstrapping new EPEL releases - Add boostrap and check toggles to ease bootstrapping new EPEL releases

Loading…
Cancel
Save