Hello community,

here is the log from the commit of package python-social-auth-app-django for 
openSUSE:Factory checked in at 2020-06-02 14:42:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-social-auth-app-django (Old)
 and      /work/SRC/openSUSE:Factory/.python-social-auth-app-django.new.3606 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

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

Tue Jun  2 14:42:31 2020 rev:5 rq:810766 version:3.4.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-social-auth-app-django/python-social-auth-app-django.changes
      2019-04-30 12:57:20.034175710 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-social-auth-app-django.new.3606/python-social-auth-app-django.changes
    2020-06-02 14:43:30.148443800 +0200
@@ -1,0 +2,13 @@
+Tue Jun  2 03:13:01 UTC 2020 - John Vandenberg <jay...@gmail.com>
+
+- Remove merged pr_197.patch
+- Update to version 3.4.0
+  *  Correct release mechanism
+- from v3.3.0
+  *Updated release and tests mechanism
+- from v3.2.0
+  * Increase social-core dependency version to 3.3.0
+  * Implement `get` and `delete` class methods for `DjangoNonceMixin`
+  * Added `created` and `modified` fields to `UserSocialAuth` model
+
+-------------------------------------------------------------------

Old:
----
  pr_197.patch
  social-auth-app-django-3.1.0.tar.gz

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

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

Other differences:
------------------
++++++ python-social-auth-app-django.spec ++++++
--- /var/tmp/diff_new_pack.1s854U/_old  2020-06-02 14:43:32.096449958 +0200
+++ /var/tmp/diff_new_pack.1s854U/_new  2020-06-02 14:43:32.100449971 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-social-auth-app-django
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,24 +18,23 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-social-auth-app-django
-Version:        3.1.0
+Version:        3.4.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
-Patch0:         
https://github.com/python-social-auth/social-app-django/commit/f8d674d.patch#/pr_197.patch
 BuildRequires:  %{python_module Django >= 1.11}
 BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six}
-BuildRequires:  %{python_module social-auth-core >= 1.2.0}
+BuildRequires:  %{python_module social-auth-core >= 3.3.0}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-Django >= 1.11
 Requires:       python-six
-Requires:       python-social-auth-core >= 1.2.0
+Requires:       python-social-auth-core >= 3.3.0
 BuildArch:      noarch
 %python_subpackages
 
@@ -46,7 +45,6 @@
 
 %prep
 %setup -q -n social-auth-app-django-%{version}
-%patch0 -p1
 
 %build
 %python_build

++++++ social-auth-app-django-3.1.0.tar.gz -> 
social-auth-app-django-3.4.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/social-auth-app-django-3.1.0/CHANGELOG.md 
new/social-auth-app-django-3.4.0/CHANGELOG.md
--- old/social-auth-app-django-3.1.0/CHANGELOG.md       2018-10-31 
15:43:54.000000000 +0100
+++ new/social-auth-app-django-3.4.0/CHANGELOG.md       2020-05-30 
06:22:43.000000000 +0200
@@ -5,6 +5,25 @@
 The format is based on [Keep a Changelog](http://keepachangelog.com/)
 and this project adheres to [Semantic Versioning](http://semver.org/).
 
+## 
[3.4.0](https://github.com/python-social-auth/social-app-django/releases/tag/3.4.0)
 - 2020-05-30
+
+### Changed
+- Correct release mechanism
+
+## 
[3.3.0](https://github.com/python-social-auth/social-app-django/releases/tag/3.3.0)
 - 2020-05-30
+
+### Changed
+- Updated release and tests mechanism
+
+## 
[3.2.0](https://github.com/python-social-auth/social-app-django/releases/tag/3.2.0)
 - 2020-05-30
+
+### Changed
+- Increase social-core dependency version
+
+### Added
+- Implement `get` and `delete` class methods for `DjangoNonceMixin`
+- Added `created` and `modified` fields to `UserSocialAuth` model
+
 ## 
[3.1.0](https://github.com/python-social-auth/social-app-django/releases/tag/3.1.0)
 - 2018-10-31
 
 ### Changed
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/social-auth-app-django-3.1.0/MANIFEST.in 
new/social-auth-app-django-3.4.0/MANIFEST.in
--- old/social-auth-app-django-3.1.0/MANIFEST.in        2018-08-20 
15:43:51.000000000 +0200
+++ new/social-auth-app-django-3.4.0/MANIFEST.in        2020-05-30 
06:13:40.000000000 +0200
@@ -1,3 +1,4 @@
 global-include *.py
 include *.txt CHANGELOG.md LICENSE README.md
 recursive-exclude social_django *.pyc
+exclude .tox .git
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/social-auth-app-django-3.1.0/PKG-INFO 
new/social-auth-app-django-3.4.0/PKG-INFO
--- old/social-auth-app-django-3.1.0/PKG-INFO   2018-10-31 15:46:24.000000000 
+0100
+++ new/social-auth-app-django-3.4.0/PKG-INFO   2020-05-30 06:24:03.871906500 
+0200
@@ -1,6 +1,6 @@
-Metadata-Version: 1.1
+Metadata-Version: 2.1
 Name: social-auth-app-django
-Version: 3.1.0
+Version: 3.4.0
 Summary: Python Social Authentication, Django integration.
 Home-page: https://github.com/python-social-auth/social-app-django
 Author: Matias Aguirre
@@ -69,3 +69,4 @@
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
+Description-Content-Type: text/markdown
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/social-auth-app-django-3.1.0/requirements.txt 
new/social-auth-app-django-3.4.0/requirements.txt
--- old/social-auth-app-django-3.1.0/requirements.txt   2018-08-20 
15:43:51.000000000 +0200
+++ new/social-auth-app-django-3.4.0/requirements.txt   2020-05-30 
04:55:07.000000000 +0200
@@ -1,2 +1,2 @@
 six
-social-auth-core >= 1.2.0
+social-auth-core >= 3.3.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/social-auth-app-django-3.1.0/setup.py 
new/social-auth-app-django-3.4.0/setup.py
--- old/social-auth-app-django-3.1.0/setup.py   2018-08-20 15:43:51.000000000 
+0200
+++ new/social-auth-app-django-3.4.0/setup.py   2020-05-30 04:10:23.000000000 
+0200
@@ -39,6 +39,7 @@
         'social_django.management.commands',
     ],
     long_description=long_description(),
+    long_description_content_type='text/markdown',
     install_requires=load_requirements(),
     classifiers=[
         'Development Status :: 4 - Beta',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/social-auth-app-django-3.1.0/social_auth_app_django.egg-info/PKG-INFO 
new/social-auth-app-django-3.4.0/social_auth_app_django.egg-info/PKG-INFO
--- old/social-auth-app-django-3.1.0/social_auth_app_django.egg-info/PKG-INFO   
2018-10-31 15:46:24.000000000 +0100
+++ new/social-auth-app-django-3.4.0/social_auth_app_django.egg-info/PKG-INFO   
2020-05-30 06:24:03.000000000 +0200
@@ -1,6 +1,6 @@
-Metadata-Version: 1.1
+Metadata-Version: 2.1
 Name: social-auth-app-django
-Version: 3.1.0
+Version: 3.4.0
 Summary: Python Social Authentication, Django integration.
 Home-page: https://github.com/python-social-auth/social-app-django
 Author: Matias Aguirre
@@ -69,3 +69,4 @@
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
+Description-Content-Type: text/markdown
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/social-auth-app-django-3.1.0/social_auth_app_django.egg-info/SOURCES.txt 
new/social-auth-app-django-3.4.0/social_auth_app_django.egg-info/SOURCES.txt
--- 
old/social-auth-app-django-3.1.0/social_auth_app_django.egg-info/SOURCES.txt    
    2018-10-31 15:46:24.000000000 +0100
+++ 
new/social-auth-app-django-3.4.0/social_auth_app_django.egg-info/SOURCES.txt    
    2020-05-30 06:24:03.000000000 +0200
@@ -38,6 +38,8 @@
 social_django/migrations/0006_partial.py
 social_django/migrations/0007_code_timestamp.py
 social_django/migrations/0008_partial_timestamp.py
+social_django/migrations/0009_auto_20191118_0520.py
+social_django/migrations/0010_uid_db_index.py
 social_django/migrations/__init__.py
 tests/__init__.py
 tests/compat.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/social-auth-app-django-3.1.0/social_auth_app_django.egg-info/requires.txt 
new/social-auth-app-django-3.4.0/social_auth_app_django.egg-info/requires.txt
--- 
old/social-auth-app-django-3.1.0/social_auth_app_django.egg-info/requires.txt   
    2018-10-31 15:46:24.000000000 +0100
+++ 
new/social-auth-app-django-3.4.0/social_auth_app_django.egg-info/requires.txt   
    2020-05-30 06:24:03.000000000 +0200
@@ -1,2 +1,2 @@
 six
-social-auth-core>=1.2.0
+social-auth-core>=3.3.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/social-auth-app-django-3.1.0/social_django/__init__.py 
new/social-auth-app-django-3.4.0/social_django/__init__.py
--- old/social-auth-app-django-3.1.0/social_django/__init__.py  2018-10-31 
15:45:18.000000000 +0100
+++ new/social-auth-app-django-3.4.0/social_django/__init__.py  2020-05-30 
06:23:00.000000000 +0200
@@ -1,4 +1,4 @@
-__version__ = '3.1.0'
+__version__ = '3.4.0'
 
 
 from social_core.backends.base import BaseAuth
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/social-auth-app-django-3.1.0/social_django/migrations/0009_auto_20191118_0520.py
 
new/social-auth-app-django-3.4.0/social_django/migrations/0009_auto_20191118_0520.py
--- 
old/social-auth-app-django-3.1.0/social_django/migrations/0009_auto_20191118_0520.py
        1970-01-01 01:00:00.000000000 +0100
+++ 
new/social-auth-app-django-3.4.0/social_django/migrations/0009_auto_20191118_0520.py
        2020-05-30 05:14:21.000000000 +0200
@@ -0,0 +1,25 @@
+# Generated by Django 2.2.7 on 2019-11-18 05:20
+
+from django.db import migrations, models
+import django.utils.timezone
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('social_django', '0008_partial_timestamp'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='usersocialauth',
+            name='created',
+            field=models.DateTimeField(auto_now_add=True, 
default=django.utils.timezone.now),
+            preserve_default=False,
+        ),
+        migrations.AddField(
+            model_name='usersocialauth',
+            name='modified',
+            field=models.DateTimeField(auto_now=True),
+        ),
+    ]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/social-auth-app-django-3.1.0/social_django/migrations/0010_uid_db_index.py 
new/social-auth-app-django-3.4.0/social_django/migrations/0010_uid_db_index.py
--- 
old/social-auth-app-django-3.1.0/social_django/migrations/0010_uid_db_index.py  
    1970-01-01 01:00:00.000000000 +0100
+++ 
new/social-auth-app-django-3.4.0/social_django/migrations/0010_uid_db_index.py  
    2020-05-30 05:19:26.000000000 +0200
@@ -0,0 +1,23 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.conf import settings
+from django.db import models, migrations
+
+from social_core.utils import setting_name
+
+UID_LENGTH = getattr(settings, setting_name('UID_LENGTH'), 255)
+
+
+class Migration(migrations.Migration):
+    dependencies = [
+        ('social_django', '0009_auto_20191118_0520'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='usersocialauth',
+            name='uid',
+            field=models.CharField(max_length=UID_LENGTH, db_index=True),
+        ),
+    ]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/social-auth-app-django-3.1.0/social_django/models.py 
new/social-auth-app-django-3.4.0/social_django/models.py
--- old/social-auth-app-django-3.1.0/social_django/models.py    2018-08-20 
15:43:51.000000000 +0200
+++ new/social-auth-app-django-3.4.0/social_django/models.py    2020-05-30 
05:19:26.000000000 +0200
@@ -33,8 +33,10 @@
     user = models.ForeignKey(USER_MODEL, related_name='social_auth',
                              on_delete=models.CASCADE)
     provider = models.CharField(max_length=32)
-    uid = models.CharField(max_length=UID_LENGTH)
+    uid = models.CharField(max_length=UID_LENGTH, db_index=True)
     extra_data = JSONField()
+    created = models.DateTimeField(auto_now_add=True)
+    modified = models.DateTimeField(auto_now=True)
     objects = UserSocialAuthManager()
 
     def __str__(self):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/social-auth-app-django-3.1.0/social_django/storage.py 
new/social-auth-app-django-3.4.0/social_django/storage.py
--- old/social-auth-app-django-3.1.0/social_django/storage.py   2018-10-28 
21:44:39.000000000 +0100
+++ new/social-auth-app-django-3.4.0/social_django/storage.py   2020-05-30 
04:58:43.000000000 +0200
@@ -3,7 +3,7 @@
 import six
 import sys
 from django.core.exceptions import FieldDoesNotExist
-from django.db import transaction
+from django.db import transaction, router
 from django.db.utils import IntegrityError
 
 from social_core.storage import UserMixin, AssociationMixin, NonceMixin, \
@@ -75,7 +75,8 @@
                 # manager, there's a transaction wrapped around this call.
                 # If the create fails below due to an IntegrityError, ensure 
that the transaction
                 # stays undamaged by wrapping the create in an atomic.
-                with transaction.atomic():
+                using = router.db_for_write(cls.user_model())
+                with transaction.atomic(using=using):
                     user = cls.user_model().objects.create_user(*args, 
**kwargs)
             else:
                 user = cls.user_model().objects.create_user(*args, **kwargs)
@@ -136,7 +137,8 @@
             # manager, there's a transaction wrapped around this call.
             # If the create fails below due to an IntegrityError, ensure that 
the transaction
             # stays undamaged by wrapping the create in an atomic.
-            with transaction.atomic():
+            using = router.db_for_write(cls)
+            with transaction.atomic(using=using):
                 social_auth = cls.objects.create(user=user, uid=uid, 
provider=provider)
         else:
             social_auth = cls.objects.create(user=user, uid=uid, 
provider=provider)
@@ -150,6 +152,17 @@
                                          timestamp=timestamp,
                                          salt=salt)[1]
 
+    @classmethod
+    def get(cls, server_url, salt):
+        return cls.objects.get(
+            server_url=server_url,
+            salt=salt,
+        )
+
+    @classmethod
+    def delete(cls, nonce):
+        nonce.delete()
+
 
 class DjangoAssociationMixin(AssociationMixin):
     @classmethod
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/social-auth-app-django-3.1.0/social_django/strategy.py 
new/social-auth-app-django-3.4.0/social_django/strategy.py
--- old/social-auth-app-django-3.1.0/social_django/strategy.py  2018-08-20 
15:43:51.000000000 +0200
+++ new/social-auth-app-django-3.4.0/social_django/strategy.py  2020-05-30 
04:10:23.000000000 +0200
@@ -97,7 +97,7 @@
         try:
             template = loader.get_template(tpl)
             return template.render(context=context, request=self.request)
-        except TemplateDoesNotExist:
+        except (TypeError, TemplateDoesNotExist):
             return render_template_string(self.request, html, context)
 
     def authenticate(self, backend, *args, **kwargs):


Reply via email to