From 4ee3cf4f560564a883b5d565128f4864090cde9f Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: May 30 2022 20:42:56 +0000 Subject: Update to 6.1.0. Fixes rhbz#2052810 --- diff --git a/.gitignore b/.gitignore index 3b0022f..fd6903d 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /whitenoise-5.1.0.tar.gz /whitenoise-5.2.0.tar.gz /whitenoise-5.3.0.tar.gz +/6.1.0.tar.gz diff --git a/python-whitenoise.spec b/python-whitenoise.spec index c00fc46..075fe5f 100644 --- a/python-whitenoise.spec +++ b/python-whitenoise.spec @@ -5,14 +5,15 @@ %global owner evansd Name: python-%{srcname} -Version: 5.3.0 -Release: 2%{?dist} +Version: 6.1.0 +Release: 1%{?dist} Summary: Static file serving for Python web apps License: MIT URL: http://whitenoise.evans.io/ # pypi source does not contain tests -Source0: https://github.com/%{owner}/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz +Source0: https://github.com/evansd/whitenoise/archive/refs/tags/%{version}.tar.gz +Patch1: whitenoise-6.1.0-default-docs-theme.patch BuildArch: noarch @@ -62,7 +63,7 @@ Documentation for the Python Whitenoise module %prep -%autosetup -n %{srcname}-%{version} +%autosetup -n %{srcname}-%{version} -p1 # remove dangling doc symlink rm docs/changelog.rst # copy common doc files to top dir @@ -89,7 +90,7 @@ popd %if %{?with_check} %check export DJANGO_SETTINGS_MODULE=tests.django_settings -python3 -m unittest discover +%pytest %endif @@ -108,6 +109,9 @@ python3 -m unittest discover %changelog +* Mon May 30 2022 Kevin Fenzi - 6.1.0-1 +- Update to 6.1.0. Fixes rhbz#2052810 + * Fri Jan 21 2022 Fedora Release Engineering - 5.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/sources b/sources index 6597f42..490ecde 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (whitenoise-5.3.0.tar.gz) = 480098a4f4ad313f0346d72f1eca5ee2f571056077edcf07f40f37356043663fc1fa99c7a33f840c176c74ee9894a99e15828ecadae944dc0c9445034aef2cb4 +SHA512 (6.1.0.tar.gz) = 6474b04a581f698ae9555fc6096f0f33a63099d1581e561859c7f3644a03c6b6ada95b7604a8ff57f5d0d5de16cde50ed17716ec1e5b6fab43a59219ed43bd06 diff --git a/whitenoise-6.1.0-default-docs-theme.patch b/whitenoise-6.1.0-default-docs-theme.patch new file mode 100644 index 0000000..85b0a6e --- /dev/null +++ b/whitenoise-6.1.0-default-docs-theme.patch @@ -0,0 +1,18 @@ +diff --color -Nur whitenoise-6.1.0.orig/docs/conf.py whitenoise-6.1.0/docs/conf.py +--- whitenoise-6.1.0.orig/docs/conf.py 2022-05-10 08:56:16.000000000 -0700 ++++ whitenoise-6.1.0/docs/conf.py 2022-05-30 13:27:33.658859968 -0700 +@@ -122,7 +122,7 @@ + # The theme to use for HTML and HTML Help pages. See the documentation for + # a list of builtin themes. + +-html_theme = "furo" ++html_theme = "default" + + # Theme options are theme-specific and customize the look and feel of a theme + # further. For a list of options available for each theme, see the +diff --color -Nur whitenoise-6.1.0.orig/docs/requirements.txt whitenoise-6.1.0/docs/requirements.txt +--- whitenoise-6.1.0.orig/docs/requirements.txt 2022-05-10 08:56:16.000000000 -0700 ++++ whitenoise-6.1.0/docs/requirements.txt 2022-05-30 13:27:37.945843875 -0700 +@@ -1,2 +1 @@ +-furo + sphinx