Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-django-braces for
openSUSE:Factory checked in at 2021-03-19 16:43:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-braces (Old)
and /work/SRC/openSUSE:Factory/.python-django-braces.new.2401 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django-braces"
Fri Mar 19 16:43:29 2021 rev:3 rq:880063 version:1.14.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-django-braces/python-django-braces.changes
2020-01-07 23:54:51.672078270 +0100
+++
/work/SRC/openSUSE:Factory/.python-django-braces.new.2401/python-django-braces.changes
2021-03-19 16:43:30.542142569 +0100
@@ -1,0 +2,7 @@
+Fri Mar 19 09:30:32 UTC 2021 - Mark??ta Machov?? <[email protected]>
+
+- Add upstream remove-py2-add-django3.patch to make the package
+ compatible with Django 3.1 and testhack.patch to run tests
+ on Django 3.1 (upstream sleeps)
+
+-------------------------------------------------------------------
New:
----
remove-py2-add-django3.patch
testhack.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-django-braces.spec ++++++
--- /var/tmp/diff_new_pack.DYUVhN/_old 2021-03-19 16:43:31.202143460 +0100
+++ /var/tmp/diff_new_pack.DYUVhN/_new 2021-03-19 16:43:31.206143466 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-django-braces
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,6 +17,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define skip_python2 1
Name: python-django-braces
Version: 1.14.0
Release: 0
@@ -25,16 +26,17 @@
Group: Development/Languages/Python
URL: https://github.com/brack3t/django-braces/
Source:
https://files.pythonhosted.org/packages/source/d/django-braces/django-braces-%{version}.tar.gz
-BuildRequires: %{python_module Django >= 1.11.0}
+# PATCH-FIX-UPSTREAM https://github.com/brack3t/django-braces/pull/265 feat:
remove support for python 2.7 and add support for Django 3.1
+Patch0: remove-py2-add-django3.patch
+Patch1: testhack.patch
+BuildRequires: %{python_module Django >= 2.2}
BuildRequires: %{python_module factory_boy}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest-django}
BuildRequires: %{python_module setuptools}
-BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
-Requires: python-Django >= 1.11.0
-Requires: python-six
+Requires: python-Django >= 2.2
BuildArch: noarch
%python_subpackages
@@ -43,6 +45,7 @@
%prep
%setup -q -n django-braces-%{version}
+%autopatch -p1
# do not mess with the test setup and rely on pytest defaults
rm tox.ini
rm conftest.py
@@ -56,6 +59,7 @@
%check
export DJANGO_SETTINGS_MODULE=tests.settings
+PYTHONPATH=.
%pytest --nomigrations
%files %{python_files}
++++++ remove-py2-add-django3.patch ++++++
++++ 831 lines (skipped)
++++++ testhack.patch ++++++
Index: django-braces-1.14.0/tests/settings.py
===================================================================
--- django-braces-1.14.0.orig/tests/settings.py
+++ django-braces-1.14.0/tests/settings.py
@@ -1,5 +1,3 @@
-from django.conf.global_settings import *
-
DEBUG = False
TEMPLATE_DEBUG = DEBUG