commit b9b0f45fc69a7a59c4e1b624a483550e95a98bee
Author: Jakub Bogusz <[email protected]>
Date: Sun Sep 22 08:25:58 2019 +0200
- py2 tests require UTF-8 locale somewhere; release 6
python-traitlets.spec | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/python-traitlets.spec b/python-traitlets.spec
index 534b732..20d6531 100644
--- a/python-traitlets.spec
+++ b/python-traitlets.spec
@@ -10,7 +10,7 @@ Summary: A configuration system for Python applications
Summary(pl.UTF-8): System konfiguracji dla aplikacji w Pythonie
Name: python-%{module}
Version: 4.3.2
-Release: 5
+Release: 6
License: BSD
Group: Libraries/Python
#Source0Download: https://github.com/ipython/traitlets/releases
@@ -19,6 +19,9 @@ Source0:
https://github.com/ipython/traitlets/archive/%{version}.tar.gz
# Source0-md5: 0b5b7986aef676d12f31a16cbbe3ed92
Patch0: %{name}-use-setuptools.patch
URL: https://traitlets.readthedocs.io/en/stable/
+%if %(locale -a | grep -q '^C\.utf8$'; echo $?)
+BuildRequires: glibc-localedb-all
+%endif
%if %{with python2}
BuildRequires: python-modules >= 1:2.7
BuildRequires: python-setuptools
@@ -101,6 +104,7 @@ Dokumentacja API moduĊu traitlets.
%py_build
%if %{with tests}
+LC_ALL=C.UTF-8 \
%{__python} -m pytest traitlets
%endif
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-traitlets.git/commitdiff/b9b0f45fc69a7a59c4e1b624a483550e95a98bee
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit