From 8a85c2c1faf6276e7d9bcd44264cc943e437d957 Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Nov 10 2022 20:18:07 +0000 Subject: Run tests during build - use %pytest, which is shorter and sets more things - don't run an empty %check when --without tests --- diff --git a/pytz.spec b/pytz.spec index 75cd32c..e71f615 100644 --- a/pytz.spec +++ b/pytz.spec @@ -1,9 +1,9 @@ # Allow build without test -%bcond_with tests +%bcond_without tests Name: pytz Version: 2022.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: World Timezone Definitions for Python License: MIT @@ -54,9 +54,9 @@ Requires: tzdata rm -r %{buildroot}%{python3_sitelib}/pytz/zoneinfo -%check %if %{with tests} -PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v +%check +%pytest -v %endif @@ -68,6 +68,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v %changelog +* Thu Nov 10 2022 Miro Hrončok - 2022.6-2 +- Run tests during build + * Tue Nov 01 2022 Gwyn Ciesla - 2022.6-1 - 2022.6