From 469a70f77e839ab6b13fd1e2ce0b13d78c094396 Mon Sep 17 00:00:00 2001 From: Piotr Date: Mar 19 2018 09:52:17 +0000 Subject: Update to 3.3.1 Disable checks on python3 until we have support for Django2 --- diff --git a/.gitignore b/.gitignore index 7dbdceb..7a21598 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /whitenoise-9fafc38.tar.gz /whitenoise-a1bb363.tar.gz +/whitenoise-9238341.tar.gz diff --git a/python-whitenoise.spec b/python-whitenoise.spec index 7ecf8da..61de8a5 100644 --- a/python-whitenoise.spec +++ b/python-whitenoise.spec @@ -8,19 +8,22 @@ %global with_check 1 %endif +# Python 3 check fails on Django2, disable until we update tot whitenoise 4 +%global with_python3_check 0 + # Python3 is currently only available on Fedora %if 0%{?fedora} %global with_python3 1 %endif %global srcname whitenoise -%global commit0 a1bb363faeb2ea864b82bde0b9290b9fd72c1032 +%global commit0 9238341a348c57e20a0f4bab34fb93b86c7d59be %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global owner evansd Name: python-%{srcname} -Version: 3.1 -Release: 6%{?dist} +Version: 3.3.1 +Release: 1%{?dist} Summary: Static file serving for Python web apps License: MIT @@ -123,6 +126,7 @@ Documentation for the Python Whitenoise module rm docs/changelog.rst # copy common doc files to top dir cp -pr docs/ README.rst LICENSE ../ +sed -i "1iSTATIC_ROOT='.'" -i tests/django_settings.py %build @@ -137,7 +141,6 @@ rm -f build/html/.buildinfo rm -f build/html/objects.inv popd %endif # with_docs -#popd %if 0%{?with_python3} %py3_build @@ -165,10 +168,11 @@ popd %if %{?with_check} %check export DJANGO_SETTINGS_MODULE=tests.django_settings -py.test +export LANG=en_US.UTF-8 +python2 setup.py test -%if 0%{?with_python3} -py.test-3 +%if 0%{?with_python3_check} +python3 setup.py test %endif # with_python3 %endif # with_check @@ -204,6 +208,10 @@ py.test-3 %changelog +* Mon Mar 19 2018 Piotr Popieluch - 3.3.1-2 +- Update to 3.3.1 +- Disable checks on python3 until we have support for Django2 + * Fri Feb 09 2018 Fedora Release Engineering - 3.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild diff --git a/sources b/sources index c395124..44f0f61 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -032fb3a1d8628eaafca941319a194808 whitenoise-a1bb363.tar.gz +SHA512 (whitenoise-9238341.tar.gz) = a6531e0f02473e0743e25115a173a18bff80c95b9df410c555f7e95a4f28e527b0a7a4d58883a38eb893b55ae786b2bc9e4ac602762f389b39e351207c656031