]> git.pld-linux.org Git - packages/python-dateutil.git/blobdiff - python-dateutil.spec
rebuild with tests and docs
[packages/python-dateutil.git] / python-dateutil.spec
index 4fd9cef7a6b1dc872b5d03218259a0c82d30fd73..95bfb9825891f4023539c538287b50624171ec20 100644 (file)
@@ -9,26 +9,28 @@
 Summary:       Extensions to the standard Python datetime module
 Summary(pl.UTF-8):     Rozszerzenia modułu datetime języka Python
 Name:          python-dateutil
-Version:       2.8.1
-Release:       1
+Version:       2.8.2
+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: f2a1d4b680b297b367a974664ca3a4f6
+# Source0-md5: 5970010bb72452344df3d76a10281b65
 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 >= 24.3
+BuildRequires: python-setuptools >= 1:24.3
 BuildRequires: python-setuptools_scm
 %if %{with tests}
+BuildRequires: python-attrs >= 21.2.0
 BuildRequires: python-freezegun
 BuildRequires: python-hypothesis >= 3.30
 BuildRequires: python-mock
 BuildRequires: python-pytest >= 3.0
+BuildRequires: python-pytest-cov >= 2.0.0
 BuildRequires: python-six >= 1.5
 %if "%{py_ver}" < "2.7"
 BuildRequires: python-unittest2
@@ -37,12 +39,14 @@ BuildRequires:      python-unittest2
 %endif
 %if %{with python3}
 BuildRequires: python3-modules >= 1:3.3
-BuildRequires: python3-setuptools >= 24.3
+BuildRequires: python3-setuptools >= 1:24.3
 BuildRequires: python3-setuptools_scm
 %if %{with tests}
+BuildRequires: python3-attrs >= 21.2.0
 BuildRequires: python3-freezegun
 BuildRequires: python3-hypothesis >= 3.30
 BuildRequires: python3-pytest >= 3.0
+BuildRequires: python3-pytest-cov >= 2.0.0
 BuildRequires: python3-six >= 1.5
 %endif
 %endif
@@ -150,9 +154,15 @@ 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
+# test_tz_prop.py fails with non-UTC timezone
 LC_ALL=C.UTF-8 \
+PYTHONIOENCODING=utf8 \
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_cov.plugin \
 PYTHONPATH=$(pwd) \
-%{__python} -m pytest dateutil/test
+TZ=UTC \
+%{__python} -m pytest --deselect=dateutil/test/test_isoparser.py::test_iso_raises dateutil/test
 %endif
 %endif
 
@@ -160,7 +170,10 @@ PYTHONPATH=$(pwd) \
 %py3_build
 
 %if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_cov.plugin \
 PYTHONPATH=$(pwd) \
+TZ=UTC \
 %{__python3} -m pytest dateutil/test
 %endif
 %endif
This page took 0.048957 seconds and 4 git commands to generate.