]> git.pld-linux.org Git - packages/python-dateutil.git/blobdiff - python-dateutil.spec
- release 4 (by relup.sh)
[packages/python-dateutil.git] / python-dateutil.spec
index 4fcdf673cb3401fc248eaa274d4e6205fac40cd4..98015ecc4ef4bc1d4b98267acbb13b7d0606e4aa 100644 (file)
@@ -9,17 +9,20 @@
 Summary:       Extensions to the standard Python datetime module
 Summary(pl.UTF-8):     Rozszerzenia modułu datetime języka Python
 Name:          python-dateutil
-Version:       2.7.3
-Release:       1
+Version:       2.8.1
+Release:       4
 License:       Apache v2.0 or BSD
 Group:         Libraries/Python
 # Source0Download: https://pypi.org/simple/python-dateutil/
-Source0:       https://files.pythonhosted.org/packages/source/p/python_dateutil/%{name}-%{version}.tar.gz
-# Source0-md5: 175b7c1a3cc0cb01151eced07c61c0b8
+Source0:       https://files.pythonhosted.org/packages/source/p/python-dateutil/%{name}-%{version}.tar.gz
+# Source0-md5: f2a1d4b680b297b367a974664ca3a4f6
 URL:           https://dateutil.readthedocs.org/
+%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
+BuildRequires: python-setuptools >= 24.3
 BuildRequires: python-setuptools_scm
 %if %{with tests}
 BuildRequires: python-freezegun
@@ -34,7 +37,7 @@ BuildRequires:        python-unittest2
 %endif
 %if %{with python3}
 BuildRequires: python3-modules >= 1:3.3
-BuildRequires: python3-setuptools
+BuildRequires: python3-setuptools >= 24.3
 BuildRequires: python3-setuptools_scm
 %if %{with tests}
 BuildRequires: python3-freezegun
@@ -147,8 +150,10 @@ aktualna w stosunku do systemowych danych zoneinfo.
 %py_build
 
 %if %{with tests}
+# python 2 pytest on builders seem to fail when passing exception containing non-ascii characters
+LC_ALL=C.UTF-8 PYTHONIOENCODING=utf8 \
 PYTHONPATH=$(pwd) \
-%{__python} -m pytest dateutil/test
+%{__python} -m pytest --deselect=dateutil/test/test_isoparser.py::test_iso_raises dateutil/test
 %endif
 %endif
 
This page took 0.07994 seconds and 4 git commands to generate.