Hello community,

here is the log from the commit of package python-social-auth-app-django for 
openSUSE:Factory checked in at 2020-07-03 00:12:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-social-auth-app-django (Old)
 and      /work/SRC/openSUSE:Factory/.python-social-auth-app-django.new.3060 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-social-auth-app-django"

Fri Jul  3 00:12:51 2020 rev:6 rq:818314 version:4.0.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-social-auth-app-django/python-social-auth-app-django.changes
      2020-06-02 14:43:30.148443800 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-social-auth-app-django.new.3060/python-social-auth-app-django.changes
    2020-07-03 00:16:12.568821118 +0200
@@ -1,0 +2,7 @@
+Wed Jul  1 12:27:13 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- Update to version 4.0.0
+  * Dropped support for older Django versions (1.8, 1.9, 1.10, 2.0)
+  * Fix `TypeError` when continuing a pipeline in Django 2.1
+
+-------------------------------------------------------------------

Old:
----
  social-auth-app-django-3.4.0.tar.gz

New:
----
  social-auth-app-django-4.0.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-social-auth-app-django.spec ++++++
--- /var/tmp/diff_new_pack.8iUhT7/_old  2020-07-03 00:16:19.836845225 +0200
+++ /var/tmp/diff_new_pack.8iUhT7/_new  2020-07-03 00:16:19.836845225 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-social-auth-app-django
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,21 +18,21 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-social-auth-app-django
-Version:        3.4.0
+Version:        4.0.0
 Release:        0
 Summary:        Python Social Authentication, Django integration
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
 URL:            https://github.com/python-social-auth/social-app-django
 Source:         
https://files.pythonhosted.org/packages/source/s/social-auth-app-django/social-auth-app-django-%{version}.tar.gz
-BuildRequires:  %{python_module Django >= 1.11}
+BuildRequires:  %{python_module Django >= 2.1}
 BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six}
 BuildRequires:  %{python_module social-auth-core >= 3.3.0}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-Requires:       python-Django >= 1.11
+Requires:       python-Django >= 2.1
 Requires:       python-six
 Requires:       python-social-auth-core >= 3.3.0
 BuildArch:      noarch

++++++ social-auth-app-django-3.4.0.tar.gz -> 
social-auth-app-django-4.0.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/social-auth-app-django-3.4.0/CHANGELOG.md 
new/social-auth-app-django-4.0.0/CHANGELOG.md
--- old/social-auth-app-django-3.4.0/CHANGELOG.md       2020-05-30 
06:22:43.000000000 +0200
+++ new/social-auth-app-django-4.0.0/CHANGELOG.md       2020-06-21 
06:52:10.000000000 +0200
@@ -5,6 +5,12 @@
 The format is based on [Keep a Changelog](http://keepachangelog.com/)
 and this project adheres to [Semantic Versioning](http://semver.org/).
 
+## 
[4.0.0](https://github.com/python-social-auth/social-app-django/releases/tag/3.4.0)
 - 2020-05-30
+
+### Changed
+- Dropped support for older Django versions (1.8, 1.9, 1.10, 2.0)
+- Fix `TypeError` when continuing a pipeline in Django 2.1
+
 ## 
[3.4.0](https://github.com/python-social-auth/social-app-django/releases/tag/3.4.0)
 - 2020-05-30
 
 ### Changed
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/social-auth-app-django-3.4.0/PKG-INFO 
new/social-auth-app-django-4.0.0/PKG-INFO
--- old/social-auth-app-django-3.4.0/PKG-INFO   2020-05-30 06:24:03.871906500 
+0200
+++ new/social-auth-app-django-4.0.0/PKG-INFO   2020-06-21 06:56:08.670946100 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: social-auth-app-django
-Version: 3.4.0
+Version: 4.0.0
 Summary: Python Social Authentication, Django integration.
 Home-page: https://github.com/python-social-auth/social-app-django
 Author: Matias Aguirre
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/social-auth-app-django-3.4.0/social_auth_app_django.egg-info/PKG-INFO 
new/social-auth-app-django-4.0.0/social_auth_app_django.egg-info/PKG-INFO
--- old/social-auth-app-django-3.4.0/social_auth_app_django.egg-info/PKG-INFO   
2020-05-30 06:24:03.000000000 +0200
+++ new/social-auth-app-django-4.0.0/social_auth_app_django.egg-info/PKG-INFO   
2020-06-21 06:56:08.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: social-auth-app-django
-Version: 3.4.0
+Version: 4.0.0
 Summary: Python Social Authentication, Django integration.
 Home-page: https://github.com/python-social-auth/social-app-django
 Author: Matias Aguirre
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/social-auth-app-django-3.4.0/social_django/__init__.py 
new/social-auth-app-django-4.0.0/social_django/__init__.py
--- old/social-auth-app-django-3.4.0/social_django/__init__.py  2020-05-30 
06:23:00.000000000 +0200
+++ new/social-auth-app-django-4.0.0/social_django/__init__.py  2020-06-21 
06:52:06.000000000 +0200
@@ -1,4 +1,4 @@
-__version__ = '3.4.0'
+__version__ = '4.0.0'
 
 
 from social_core.backends.base import BaseAuth
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/social-auth-app-django-3.4.0/social_django/strategy.py 
new/social-auth-app-django-4.0.0/social_django/strategy.py
--- old/social-auth-app-django-3.4.0/social_django/strategy.py  2020-05-30 
04:10:23.000000000 +0200
+++ new/social-auth-app-django-4.0.0/social_django/strategy.py  2020-06-21 
06:42:24.000000000 +0200
@@ -106,11 +106,9 @@
         kwargs['backend'] = backend
         return authenticate(*args, **kwargs)
 
-    def clean_authenticate_args(self, *args, **kwargs):
-        """Cleanup request argument if present, which is passed to
-        authenticate as for Django 1.11"""
-        if len(args) > 0 and isinstance(args[0], HttpRequest):
-            kwargs['request'], args = args[0], args[1:]
+    def clean_authenticate_args(self, request, *args, **kwargs):
+        # pipelines don't want a positional request argument
+        kwargs['request'] = request
         return args, kwargs
 
     def session_get(self, name, default=None):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/social-auth-app-django-3.4.0/tests/settings.py 
new/social-auth-app-django-4.0.0/tests/settings.py
--- old/social-auth-app-django-3.4.0/tests/settings.py  2020-02-09 
06:08:08.000000000 +0100
+++ new/social-auth-app-django-4.0.0/tests/settings.py  2020-06-21 
06:42:24.000000000 +0200
@@ -29,7 +29,7 @@
 
 SITE_ID = 1
 
-MIDDLEWARE = MIDDLEWARE_CLASSES = (
+MIDDLEWARE = (
     'django.contrib.sessions.middleware.SessionMiddleware',
     'django.contrib.auth.middleware.AuthenticationMiddleware',
     'django.contrib.messages.middleware.MessageMiddleware',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/social-auth-app-django-3.4.0/tests/test_strategy.py 
new/social-auth-app-django-4.0.0/tests/test_strategy.py
--- old/social-auth-app-django-3.4.0/tests/test_strategy.py     2020-02-09 
06:08:08.000000000 +0100
+++ new/social-auth-app-django-4.0.0/tests/test_strategy.py     2020-06-21 
06:42:24.000000000 +0200
@@ -104,3 +104,9 @@
         args, kwargs = self.strategy.clean_authenticate_args(self.request)
         self.assertEqual(args, ())
         self.assertEqual(kwargs, {'request': self.request})
+
+    def test_clean_authenticate_args_none(self):
+        # When called from continue_pipeline(), request is None. Issue #222
+        args, kwargs = self.strategy.clean_authenticate_args(None)
+        self.assertEqual(args, ())
+        self.assertEqual(kwargs, {'request': None})


Reply via email to