Hello community,

here is the log from the commit of package python-django-registration for 
openSUSE:Factory checked in at 2019-05-28 09:42:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-registration (Old)
 and      /work/SRC/openSUSE:Factory/.python-django-registration.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-django-registration"

Tue May 28 09:42:50 2019 rev:14 rq:705619 version:3.0.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-django-registration/python-django-registration.changes
    2019-03-20 13:19:38.745338682 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-django-registration.new.5148/python-django-registration.changes
  2019-05-28 09:42:52.553852369 +0200
@@ -1,0 +2,6 @@
+Mon May 20 08:50:30 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 3.0.1:
+  * Support for django 2.2
+
+-------------------------------------------------------------------

Old:
----
  django-registration-3.0.tar.gz

New:
----
  django-registration-3.0.1.tar.gz

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

Other differences:
------------------
++++++ python-django-registration.spec ++++++
--- /var/tmp/diff_new_pack.FTEOVY/_old  2019-05-28 09:42:52.997852215 +0200
+++ /var/tmp/diff_new_pack.FTEOVY/_new  2019-05-28 09:42:52.997852215 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           python-django-registration
-Version:        3.0
+Version:        3.0.1
 Release:        0
 Summary:        An extensible user-registration application for Django
 License:        BSD-3-Clause

++++++ django-registration-3.0.tar.gz -> django-registration-3.0.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-registration-3.0/LICENSE 
new/django-registration-3.0.1/LICENSE
--- old/django-registration-3.0/LICENSE 2018-01-21 13:32:28.000000000 +0100
+++ new/django-registration-3.0.1/LICENSE       2019-05-07 21:04:34.000000000 
+0200
@@ -1,4 +1,4 @@
-Copyright (c) 2007-2018, James Bennett
+Copyright (c) 2007-2019, James Bennett
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-registration-3.0/PKG-INFO 
new/django-registration-3.0.1/PKG-INFO
--- old/django-registration-3.0/PKG-INFO        2018-09-04 09:29:32.000000000 
+0200
+++ new/django-registration-3.0.1/PKG-INFO      2019-05-07 21:23:34.000000000 
+0200
@@ -1,12 +1,24 @@
 Metadata-Version: 1.2
 Name: django-registration
-Version: 3.0
+Version: 3.0.1
 Summary: An extensible user-registration application for Django
 Home-page: https://github.com/ubernostrum/django-registration/
 Author: James Bennett
 Author-email: [email protected]
 License: UNKNOWN
-Description: UNKNOWN
+Description: .. -*-restructuredtext-*-
+        
+        .. image:: 
https://travis-ci.org/ubernostrum/django-registration.svg?branch=master
+            :target: https://travis-ci.org/ubernostrum/django-registration
+        
+        This is a user-registration application for `Django
+        <https://www.djangoproject.com/>`_. There are two registration
+        workflows (one-step, and two-step with activation) built in, and it's
+        designed to be extensible and support building additional workflows.
+        
+        Full documentation is `available online
+        <https://django-registration.readthedocs.io/>`_.
+        
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Environment :: Web Environment
@@ -14,6 +26,7 @@
 Classifier: Framework :: Django :: 1.11
 Classifier: Framework :: Django :: 2.0
 Classifier: Framework :: Django :: 2.1
+Classifier: Framework :: Django :: 2.2
 Classifier: Intended Audience :: Developers
 Classifier: License :: OSI Approved :: BSD License
 Classifier: Operating System :: OS Independent
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-registration-3.0/docs/activation-workflow.rst 
new/django-registration-3.0.1/docs/activation-workflow.rst
--- old/django-registration-3.0/docs/activation-workflow.rst    2018-09-04 
06:50:15.000000000 +0200
+++ new/django-registration-3.0.1/docs/activation-workflow.rst  2019-05-07 
20:50:20.000000000 +0200
@@ -134,7 +134,7 @@
 
       A string specifying the template to use for the body of the
       activation email. Default is
-      `"django_registration/activation_email.txt"`.
+      `"django_registration/activation_email_body.txt"`.
 
    .. attribute:: email_subject_template
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-registration-3.0/docs/conf.py 
new/django-registration-3.0.1/docs/conf.py
--- old/django-registration-3.0/docs/conf.py    2018-09-04 09:29:09.000000000 
+0200
+++ new/django-registration-3.0.1/docs/conf.py  2019-05-07 21:04:26.000000000 
+0200
@@ -9,9 +9,9 @@
 source_suffix = '.rst'
 master_doc = 'index'
 project = u'django-registration'
-copyright = u'2007-2018, James Bennett'
-version = '3.0'
-release = '3.0'
+copyright = u'2007-2019, James Bennett'
+version = '3.0.1'
+release = '3.0.1'
 exclude_trees = ['_build']
 pygments_style = 'sphinx'
 html_static_path = ['_static']
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-registration-3.0/docs/faq.rst 
new/django-registration-3.0.1/docs/faq.rst
--- old/django-registration-3.0/docs/faq.rst    2018-09-04 07:53:22.000000000 
+0200
+++ new/django-registration-3.0.1/docs/faq.rst  2019-05-07 21:08:48.000000000 
+0200
@@ -38,9 +38,9 @@
 What versions of Django and Python are supported?
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-As of django-registration |release|, Django 1.11, 2.0 and 2.1 are
-supported, on Python 2.7, (Django 1.11 only), 3.4 (Django 1.11 and 2.0
-only), 3.5, 3.6 and 3.7 (Django 2.0 and 2.1 only).
+As of django-registration |release|, Django 1.11, 2.0, 2.1, and 2.2
+are supported, on Python 2.7 (Django 1.11 only), 3.4 (Django 1.11 and
+2.0 only), 3.5, 3.6 and 3.7 (Django 2.0, 2.1, and 2.2 only).
 
 I found a bug or want to make an improvement!
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-registration-3.0/docs/install.rst 
new/django-registration-3.0.1/docs/install.rst
--- old/django-registration-3.0/docs/install.rst        2018-09-04 
03:49:19.000000000 +0200
+++ new/django-registration-3.0.1/docs/install.rst      2019-05-07 
21:08:04.000000000 +0200
@@ -5,7 +5,7 @@
 ==================
 
 The |release| release of django-registration supports Django 1.11,
-2.0 and 2.1 on the following Python versions:
+2.0, 2.1, and 2.2 on the following Python versions:
 
 * Django 1.11 supports Python 2.7, 3.4, 3.5 and 3.6.
 
@@ -13,6 +13,8 @@
 
 * Django 2.1 supports Python 3.5, 3.6 and 3.7.
 
+* Django 2.2 supports Python 3.5, 3.6, and 3.7.
+
 
 Normal installation
 -------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-registration-3.0/docs/one-step-workflow.rst 
new/django-registration-3.0.1/docs/one-step-workflow.rst
--- old/django-registration-3.0/docs/one-step-workflow.rst      2018-09-04 
06:53:21.000000000 +0200
+++ new/django-registration-3.0.1/docs/one-step-workflow.rst    2018-10-06 
12:52:50.000000000 +0200
@@ -52,7 +52,7 @@
 
    from django.conf.urls import include, url
 
-   from django_registration.backends.one_step import RegistrationView
+   from django_registration.backends.one_step.views import RegistrationView
 
    urlpatterns = [
        # Other URL patterns ...
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-registration-3.0/docs/security.rst 
new/django-registration-3.0.1/docs/security.rst
--- old/django-registration-3.0/docs/security.rst       2018-09-04 
07:50:37.000000000 +0200
+++ new/django-registration-3.0.1/docs/security.rst     2018-10-06 
12:52:50.000000000 +0200
@@ -155,7 +155,7 @@
   which uses a list of twenty thousand common passwords. A more
   comprehensive option is the password validator and other utilities
   from `pwned-passwords-django
-  <https://pwned-passwords-django.readthedocs.io/en/1.2.1/>`_, which
+  <https://pwned-passwords-django.readthedocs.io/en/stable/>`_, which
   checks against a database containing (as of mid-2018) over half a
   billion passwords found in data breaches.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-registration-3.0/docs/upgrade.rst 
new/django-registration-3.0.1/docs/upgrade.rst
--- old/django-registration-3.0/docs/upgrade.rst        2018-09-04 
07:51:20.000000000 +0200
+++ new/django-registration-3.0.1/docs/upgrade.rst      2019-05-07 
21:07:35.000000000 +0200
@@ -9,6 +9,22 @@
 release series.
 
 
+Changes within the 3.x series
+-----------------------------
+
+Within the 3.x release series, there have been several minor changes
+and improvements, documented here along with the version in which they
+occurred.
+
+django-registration 3.0.1
+~~~~~~~~~~~~~~~~~~~~~~~~~
+
+* The :ref:`custom validators <validators>` are now serializable.
+
+* Although no code changes were required, this release officially
+  marks itself compatible with Python 3.7 and with django 2.2.
+
+
 Changes between django-registration 2.x and 3.x
 -----------------------------------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-registration-3.0/setup.py 
new/django-registration-3.0.1/setup.py
--- old/django-registration-3.0/setup.py        2018-09-04 09:29:16.000000000 
+0200
+++ new/django-registration-3.0.1/setup.py      2019-05-07 21:17:06.000000000 
+0200
@@ -1,10 +1,14 @@
+import os
+
 from setuptools import find_packages, setup
 
 
 setup(name='django-registration',
       zip_safe=False,  # eggs are the devil.
-      version='3.0',
+      version='3.0.1',
       description='An extensible user-registration application for Django',
+      long_description=open(os.path.join(os.path.dirname(__file__),
+                                         'README.rst')).read(),
       author='James Bennett',
       author_email='[email protected]',
       url='https://github.com/ubernostrum/django-registration/',
@@ -18,6 +22,7 @@
           'Framework :: Django :: 1.11',
           'Framework :: Django :: 2.0',
           'Framework :: Django :: 2.1',
+          'Framework :: Django :: 2.2',
           'Intended Audience :: Developers',
           'License :: OSI Approved :: BSD License',
           'Operating System :: OS Independent',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/django-registration-3.0/src/django_registration/validators.py 
new/django-registration-3.0.1/src/django_registration/validators.py
--- old/django-registration-3.0/src/django_registration/validators.py   
2018-09-03 14:35:06.000000000 +0200
+++ new/django-registration-3.0.1/src/django_registration/validators.py 
2019-05-07 21:02:19.000000000 +0200
@@ -6,9 +6,9 @@
 import unicodedata
 
 from confusable_homoglyphs import confusables
-from django.contrib.auth import get_user_model
 from django.core.exceptions import ValidationError
 from django.utils import six
+from django.utils.deconstruct import deconstructible
 from django.utils.translation import ugettext_lazy as _
 
 
@@ -25,9 +25,6 @@
 TOS_REQUIRED = _(u"You must agree to the terms to register")
 
 
-User = get_user_model()
-
-
 # Below we construct a large but non-exhaustive list of names which
 # users probably should not be able to register with, due to various
 # risks:
@@ -190,6 +187,7 @@
 )
 
 
+@deconstructible
 class ReservedNameValidator(object):
     """
     Validator which disallows many reserved names as form field
@@ -210,7 +208,11 @@
                 RESERVED_NAME, code='invalid'
             )
 
+    def __eq__(self, other):
+        return self.reserved_names == other.reserved_names
 
+
+@deconstructible
 class CaseInsensitiveUnique(object):
     """
     Validator which performs a case-insensitive uniqueness check.
@@ -233,6 +235,11 @@
         }).exists():
             raise ValidationError(self.error_message, code='unique')
 
+    def __eq__(self, other):
+        return self.model == other.model and \
+               self.field_name == other.field_name and \
+               self.error_message == other.error_message
+
 
 def validate_confusables(value):
     """
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/django-registration-3.0/src/django_registration.egg-info/PKG-INFO 
new/django-registration-3.0.1/src/django_registration.egg-info/PKG-INFO
--- old/django-registration-3.0/src/django_registration.egg-info/PKG-INFO       
2018-09-04 09:29:32.000000000 +0200
+++ new/django-registration-3.0.1/src/django_registration.egg-info/PKG-INFO     
2019-05-07 21:23:34.000000000 +0200
@@ -1,12 +1,24 @@
 Metadata-Version: 1.2
 Name: django-registration
-Version: 3.0
+Version: 3.0.1
 Summary: An extensible user-registration application for Django
 Home-page: https://github.com/ubernostrum/django-registration/
 Author: James Bennett
 Author-email: [email protected]
 License: UNKNOWN
-Description: UNKNOWN
+Description: .. -*-restructuredtext-*-
+        
+        .. image:: 
https://travis-ci.org/ubernostrum/django-registration.svg?branch=master
+            :target: https://travis-ci.org/ubernostrum/django-registration
+        
+        This is a user-registration application for `Django
+        <https://www.djangoproject.com/>`_. There are two registration
+        workflows (one-step, and two-step with activation) built in, and it's
+        designed to be extensible and support building additional workflows.
+        
+        Full documentation is `available online
+        <https://django-registration.readthedocs.io/>`_.
+        
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Environment :: Web Environment
@@ -14,6 +26,7 @@
 Classifier: Framework :: Django :: 1.11
 Classifier: Framework :: Django :: 2.0
 Classifier: Framework :: Django :: 2.1
+Classifier: Framework :: Django :: 2.2
 Classifier: Intended Audience :: Developers
 Classifier: License :: OSI Approved :: BSD License
 Classifier: Operating System :: OS Independent
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-registration-3.0/tests/test_forms.py 
new/django-registration-3.0.1/tests/test_forms.py
--- old/django-registration-3.0/tests/test_forms.py     2018-09-03 
14:39:21.000000000 +0200
+++ new/django-registration-3.0.1/tests/test_forms.py   2019-05-07 
21:02:19.000000000 +0200
@@ -148,6 +148,22 @@
         for value in (123456, 1.7, uuid.uuid4()):
             self.assertTrue(validator(value) is None)
 
+    def test_reserved_name_validator_eq(self):
+        """
+        Test ReservedNameValidator __eq__ method.
+        __eq__ is necessary for serializing custom user models that use
+        the validator.
+
+        """
+        validator = validators.ReservedNameValidator()
+        validator_same = validators.ReservedNameValidator()
+        self.assertTrue(validator.__eq__(validator_same))
+
+        validator_different = validators.ReservedNameValidator(
+            reserved_names=[]
+        )
+        self.assertFalse(validator.__eq__(validator_different))
+
     def test_case_insensitive_validator(self):
         """
         Test the case-insensitive username validator.
@@ -187,6 +203,29 @@
                 validator(conflict)
             existing_user.delete()
 
+    def test_case_insensitive_validator_eq(self):
+        """
+        Test CaseInsensitiveUnique __eq__ method.
+        __eq__ is necessary for serializing custom user models that use
+        the validator.
+
+        """
+        validator = validators.CaseInsensitiveUnique(
+            self.user_model, self.user_model.USERNAME_FIELD,
+            validators.DUPLICATE_USERNAME
+        )
+        validator_same = validators.CaseInsensitiveUnique(
+            self.user_model, self.user_model.USERNAME_FIELD,
+            validators.DUPLICATE_USERNAME
+        )
+        self.assertTrue(validator.__eq__(validator_same))
+
+        validator_different = validators.CaseInsensitiveUnique(
+            self.user_model, 'not username field',
+            validators.DUPLICATE_USERNAME
+        )
+        self.assertFalse(validator.__eq__(validator_different))
+
     def test_case_insensitive_form(self):
         """
         Test the case-insensitive registration form.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-registration-3.0/tox.ini 
new/django-registration-3.0.1/tox.ini
--- old/django-registration-3.0/tox.ini 2018-09-02 15:00:29.000000000 +0200
+++ new/django-registration-3.0.1/tox.ini       2019-05-07 20:53:27.000000000 
+0200
@@ -7,8 +7,8 @@
 envlist =
   {py27}-django{111}
   {py34}-django{111,20}
-  {py35,py36}-django{111,20,21}
-  {py37}-django{20,21}
+  {py35,py36}-django{111,20,21,22}
+  {py37}-django{20,21,22}
   docs
   spelling
   flake8
@@ -72,10 +72,12 @@
   django111: Django>=1.11,<2.0
   django20: Django>=2.0,<2.1
   django21: Django>=2.1,<2.2
+  django22: Django>=2.2,<3.0
 
 [travis]
 python =
   2.7: py27
   3.4: py34
   3.5: py35
-  3.6: py36, docs, flake8, isort, spelling
+  3.6: py36
+  3.7: py37, docs, flake8, isort, spelling
\ No newline at end of file


Reply via email to