Add boostrap and check toggles to ease bootstrapping new EPEL releases
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
This commit is contained in:
parent
0af1faa7da
commit
d2cd8a620a
@ -1,6 +1,16 @@
|
|||||||
|
%bcond_with bootstrap
|
||||||
|
|
||||||
|
%if %{with bootstrap}
|
||||||
|
%bcond_with check
|
||||||
|
%else
|
||||||
|
%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: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: A Python library for writing TOML
|
Summary: A Python library for writing TOML
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -28,7 +38,11 @@ Summary: %{summary}
|
|||||||
|
|
||||||
|
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
|
%if %{with check}
|
||||||
%pyproject_buildrequires -t
|
%pyproject_buildrequires -t
|
||||||
|
%else
|
||||||
|
%pyproject_buildrequires
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -37,11 +51,16 @@ Summary: %{summary}
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
%pyproject_save_files tomli_w
|
%pyproject_save_files %{modname}
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if %{with check}
|
||||||
%tox
|
%tox
|
||||||
|
%else
|
||||||
|
# no %%pyproject_check_import on EL9
|
||||||
|
%py3_check_import %{modname}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-tomli-w -f %{pyproject_files}
|
%files -n python3-tomli-w -f %{pyproject_files}
|
||||||
@ -51,5 +70,8 @@ Summary: %{summary}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
||||||
|
|
||||||
* Wed Oct 27 2021 Tomáš Hrnčiar <thrnciar@redhat.com> - 0.4.0-1
|
* Wed Oct 27 2021 Tomáš Hrnčiar <thrnciar@redhat.com> - 0.4.0-1
|
||||||
- Initial package
|
- Initial package
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user