[packages/python-babel] - versioned Obsoletes, run tests in UTC tz
qboosh
qboosh at pld-linux.org
Fri Mar 4 17:46:47 CET 2022
commit 14b5b172d5ad53daad56473830dd27703b30b1b3
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Mar 4 17:48:43 2022 +0100
- versioned Obsoletes, run tests in UTC tz
python-babel.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/python-babel.spec b/python-babel.spec
index 333f51a..1241fd0 100644
--- a/python-babel.spec
+++ b/python-babel.spec
@@ -46,7 +46,7 @@ BuildRequires: python3-pytest-cov
%endif
%{?with_doc:BuildRequires: sphinx-pdg}
Requires: python-modules >= 1:2.7
-Obsoletes: python-Babel
+Obsoletes: python-Babel < 0.9.5-2
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -95,6 +95,8 @@ Dokumentacja API biblioteki Pythona Babel.
%py_build
%if %{with tests}
+# few frontend tests have some (DST-related?) issues with local timezones
+TZ=UTC \
%{__python} -m pytest tests
%endif
%endif
@@ -103,6 +105,7 @@ Dokumentacja API biblioteki Pythona Babel.
%py3_build
%if %{with tests}
+TZ=UTC \
%{__python3} -m pytest tests
%endif
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-babel.git/commitdiff/14b5b172d5ad53daad56473830dd27703b30b1b3
More information about the pld-cvs-commit
mailing list