Hello community,

here is the log from the commit of package python-django-auth-ldap for 
openSUSE:Factory checked in at 2020-01-07 23:54:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-auth-ldap (Old)
 and      /work/SRC/openSUSE:Factory/.python-django-auth-ldap.new.6675 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-django-auth-ldap"

Tue Jan  7 23:54:40 2020 rev:13 rq:761500 version:2.1.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-django-auth-ldap/python-django-auth-ldap.changes
  2019-09-17 13:38:45.685829922 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-django-auth-ldap.new.6675/python-django-auth-ldap.changes
        2020-01-07 23:54:53.680079312 +0100
@@ -1,0 +2,8 @@
+Tue Jan  7 09:58:21 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Update to 2.1.0:
+  - Reject authentication requests without a username.
+  - Added support for Django 3.0 and Python 3.8.
+  - Removed support for Django end of life Django 2.1.
+
+-------------------------------------------------------------------

Old:
----
  django-auth-ldap-2.0.0.tar.gz

New:
----
  django-auth-ldap-2.1.0.tar.gz

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

Other differences:
------------------
++++++ python-django-auth-ldap.spec ++++++
--- /var/tmp/diff_new_pack.SvpQV6/_old  2020-01-07 23:54:55.040080018 +0100
+++ /var/tmp/diff_new_pack.SvpQV6/_new  2020-01-07 23:54:55.088080043 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-django-auth-ldap
 #
-# Copyright (c) 2019 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
@@ -19,14 +19,13 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-django-auth-ldap
-Version:        2.0.0
+Version:        2.1.0
 Release:        0
 Summary:        Django LDAP authentication backend
 License:        BSD-2-Clause
-Group:          Development/Languages/Python
 URL:            https://github.com/django-auth-ldap/django-auth-ldap
 Source:         
https://files.pythonhosted.org/packages/source/d/django-auth-ldap/django-auth-ldap-%{version}.tar.gz
-BuildRequires:  %{python_module Django >= 1.11}
+BuildRequires:  %{python_module Django >= 2.2}
 BuildRequires:  %{python_module ldap >= 3.1}
 BuildRequires:  %{python_module mock >= 2.0.0}
 BuildRequires:  %{python_module setuptools}
@@ -35,7 +34,7 @@
 BuildRequires:  openldap2
 # needed for ldapadd binary in tests
 BuildRequires:  openldap2-client
-Requires:       python-Django >= 1.11
+Requires:       python-Django >= 2.2
 Requires:       python-ldap >= 3.1
 BuildArch:      noarch
 %python_subpackages

++++++ django-auth-ldap-2.0.0.tar.gz -> django-auth-ldap-2.1.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-auth-ldap-2.0.0/CHANGES 
new/django-auth-ldap-2.1.0/CHANGES
--- old/django-auth-ldap-2.0.0/CHANGES  2019-06-06 04:14:14.000000000 +0200
+++ new/django-auth-ldap-2.1.0/CHANGES  2019-12-04 05:06:11.000000000 +0100
@@ -1,3 +1,10 @@
+2.1.0 - 2019-12-03
+------------------
+
+- Reject authentication requests without a username.
+- Added support for Django 3.0 and Python 3.8.
+- Removed support for Django end of life Django 2.1.
+
 2.0.0 - 2019-06-05
 ------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-auth-ldap-2.0.0/PKG-INFO 
new/django-auth-ldap-2.1.0/PKG-INFO
--- old/django-auth-ldap-2.0.0/PKG-INFO 2019-06-06 04:15:55.000000000 +0200
+++ new/django-auth-ldap-2.1.0/PKG-INFO 2019-12-04 05:08:08.000000000 +0100
@@ -1,12 +1,10 @@
 Metadata-Version: 1.2
 Name: django-auth-ldap
-Version: 2.0.0
-Summary: Django LDAP authentication backend
+Version: 2.1.0
+Summary: Django LDAP authentication backend.
 Home-page: https://github.com/django-auth-ldap/django-auth-ldap
 Author: Peter Sagerson
 Author-email: [email protected]
-Maintainer: Jon Dufresne
-Maintainer-email: [email protected]
 License: BSD
 Project-URL: Documentation, https://django-auth-ldap.readthedocs.io/
 Project-URL: Source, https://github.com/django-auth-ldap/django-auth-ldap
@@ -38,8 +36,8 @@
         * Tests: http://travis-ci.org/django-auth-ldap/django-auth-ldap
         * License: BSD 2-Clause
         
-        This version is supported on Python 2.7 and 3.4+; and Django 1.11+. It 
requires
-        `python-ldap`_ >= 3.0.
+        This version is supported on Python 3.5+; and Django 1.11+. It requires
+        `python-ldap`_ >= 3.1.
         
         .. _`python-ldap`: https://pypi.org/project/python-ldap/
         
@@ -53,7 +51,7 @@
         
             $ pip install django-auth-ldap
         
-        It requires `python-ldap`_ >= 3.0. You'll need the `OpenLDAP`_ 
libraries and
+        It requires `python-ldap`_ >= 3.1. You'll need the `OpenLDAP`_ 
libraries and
         headers available on your system.
         
         To use the auth backend in a Django project, add
@@ -148,7 +146,7 @@
             # Use LDAP group membership to calculate group permissions.
             AUTH_LDAP_FIND_GROUP_PERMS = True
         
-            # Cache distinguised names and group memberships for an hour to 
minimize
+            # Cache distinguished names and group memberships for an hour to 
minimize
             # LDAP traffic.
             AUTH_LDAP_CACHE_TIMEOUT = 3600
         
@@ -176,23 +174,23 @@
         
         .. _`logging an issue`: 
https://github.com/django-auth-ldap/django-auth-ldap/issues
         
-Keywords: django,ldap,authentication,auth
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Environment :: Web Environment
 Classifier: Framework :: Django
 Classifier: Framework :: Django :: 1.11
-Classifier: Framework :: Django :: 2.1
 Classifier: Framework :: Django :: 2.2
+Classifier: Framework :: Django :: 3.0
 Classifier: Intended Audience :: Developers
 Classifier: Intended Audience :: System Administrators
 Classifier: License :: OSI Approved :: BSD License
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3 :: Only
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
-Classifier: Programming Language :: Python :: 3 :: Only
+Classifier: Programming Language :: Python :: 3.8
 Classifier: Topic :: Internet :: WWW/HTTP
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
 Classifier: Topic :: System :: Systems Administration :: 
Authentication/Directory :: LDAP
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-auth-ldap-2.0.0/README.rst 
new/django-auth-ldap-2.1.0/README.rst
--- old/django-auth-ldap-2.0.0/README.rst       2018-11-25 01:09:38.000000000 
+0100
+++ new/django-auth-ldap-2.1.0/README.rst       2019-11-25 04:03:55.000000000 
+0100
@@ -25,8 +25,8 @@
 * Tests: http://travis-ci.org/django-auth-ldap/django-auth-ldap
 * License: BSD 2-Clause
 
-This version is supported on Python 2.7 and 3.4+; and Django 1.11+. It requires
-`python-ldap`_ >= 3.0.
+This version is supported on Python 3.5+; and Django 1.11+. It requires
+`python-ldap`_ >= 3.1.
 
 .. _`python-ldap`: https://pypi.org/project/python-ldap/
 
@@ -40,7 +40,7 @@
 
     $ pip install django-auth-ldap
 
-It requires `python-ldap`_ >= 3.0. You'll need the `OpenLDAP`_ libraries and
+It requires `python-ldap`_ >= 3.1. You'll need the `OpenLDAP`_ libraries and
 headers available on your system.
 
 To use the auth backend in a Django project, add
@@ -135,7 +135,7 @@
     # Use LDAP group membership to calculate group permissions.
     AUTH_LDAP_FIND_GROUP_PERMS = True
 
-    # Cache distinguised names and group memberships for an hour to minimize
+    # Cache distinguished names and group memberships for an hour to minimize
     # LDAP traffic.
     AUTH_LDAP_CACHE_TIMEOUT = 3600
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-auth-ldap-2.0.0/django_auth_ldap/__init__.py 
new/django-auth-ldap-2.1.0/django_auth_ldap/__init__.py
--- old/django-auth-ldap-2.0.0/django_auth_ldap/__init__.py     2019-06-06 
03:55:39.000000000 +0200
+++ new/django-auth-ldap-2.1.0/django_auth_ldap/__init__.py     2019-12-04 
05:06:11.000000000 +0100
@@ -1,2 +1,6 @@
-version = (2, 0, 0)
-version_string = ".".join(map(str, version))
+VERSION = (2, 1, 0)
+__version__ = ".".join(str(i) for i in VERSION)
+
+# Deprecated. Use VERSION and __version__ instead.
+version = VERSION
+version_string = __version__
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-auth-ldap-2.0.0/django_auth_ldap/backend.py 
new/django-auth-ldap-2.1.0/django_auth_ldap/backend.py
--- old/django-auth-ldap-2.0.0/django_auth_ldap/backend.py      2019-05-04 
18:44:55.000000000 +0200
+++ new/django-auth-ldap-2.1.0/django_auth_ldap/backend.py      2019-12-04 
05:06:11.000000000 +0100
@@ -143,6 +143,9 @@
     #
 
     def authenticate(self, request, username=None, password=None, **kwargs):
+        if username is None:
+            return None
+
         if password or self.settings.PERMIT_EMPTY_PASSWORD:
             ldap_user = _LDAPUser(self, username=username.strip(), 
request=request)
             user = self.authenticate_ldap_user(ldap_user, password)
@@ -290,7 +293,7 @@
             raise Exception("Internal error: _LDAPUser improperly 
initialized.")
 
     def __deepcopy__(self, memo):
-        obj = object.__new__(self.__class__)
+        obj = object.__new__(type(self))
         obj.backend = self.backend
         obj._user = copy.deepcopy(self._user, memo)
 
@@ -354,7 +357,7 @@
             logger.debug("Authentication failed for {}: 
{}".format(self._username, e))
         except ldap.LDAPError as e:
             results = ldap_error.send(
-                self.backend.__class__,
+                type(self.backend),
                 context="authenticate",
                 user=self._user,
                 exception=e,
@@ -385,7 +388,7 @@
                         self._load_group_permissions()
                 except ldap.LDAPError as e:
                     results = ldap_error.send(
-                        self.backend.__class__,
+                        type(self.backend),
                         context="get_group_permissions",
                         user=self._user,
                         exception=e,
@@ -414,7 +417,7 @@
             user = self._user
         except ldap.LDAPError as e:
             results = ldap_error.send(
-                self.backend.__class__,
+                type(self.backend),
                 context="populate_user",
                 user=self._user,
                 exception=e,
@@ -621,7 +624,7 @@
 
             # Give the client a chance to finish populating the user just
             # before saving.
-            populate_user.send(self.backend.__class__, user=self._user, 
ldap_user=self)
+            populate_user.send(type(self.backend), user=self._user, 
ldap_user=self)
 
         if save_user:
             self._user.save()
@@ -982,7 +985,7 @@
         """
         dn = self._ldap_user.dn
         return valid_cache_key(
-            "auth_ldap.{}.{}.{}".format(self.__class__.__name__, attr_name, dn)
+            "auth_ldap.{}.{}.{}".format(type(self).__name__, attr_name, dn)
         )
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-auth-ldap-2.0.0/django_auth_ldap/config.py 
new/django-auth-ldap-2.1.0/django_auth_ldap/config.py
--- old/django-auth-ldap-2.0.0/django_auth_ldap/config.py       2019-05-04 
18:44:55.000000000 +0200
+++ new/django-auth-ldap-2.1.0/django_auth_ldap/config.py       2019-12-04 
05:06:11.000000000 +0100
@@ -100,7 +100,7 @@
         self.ldap = _LDAPConfig.get_ldap()
 
     def __repr__(self):
-        return "<{}: {}>".format(self.__class__.__name__, self.base_dn)
+        return "<{}: {}>".format(type(self).__name__, self.base_dn)
 
     def search_with_additional_terms(self, term_dict, escape=True):
         """
@@ -117,9 +117,7 @@
 
         filterstr = "(&{})".format("".join(term_strings))
 
-        return self.__class__(
-            self.base_dn, self.scope, filterstr, attrlist=self.attrlist
-        )
+        return type(self)(self.base_dn, self.scope, filterstr, 
attrlist=self.attrlist)
 
     def search_with_additional_term_string(self, filterstr):
         """
@@ -129,9 +127,7 @@
         """
         filterstr = "(&{}{})".format(self.filterstr, filterstr)
 
-        return self.__class__(
-            self.base_dn, self.scope, filterstr, attrlist=self.attrlist
-        )
+        return type(self)(self.base_dn, self.scope, filterstr, 
attrlist=self.attrlist)
 
     def execute(self, connection, filterargs=(), escape=True):
         """
@@ -265,14 +261,14 @@
             s.search_with_additional_terms(term_dict, escape) for s in 
self.searches
         ]
 
-        return self.__class__(*searches)
+        return type(self)(*searches)
 
     def search_with_additional_term_string(self, filterstr):
         searches = [
             s.search_with_additional_term_string(filterstr) for s in 
self.searches
         ]
 
-        return self.__class__(*searches)
+        return type(self)(*searches)
 
     def execute(self, connection, filterargs=()):
         msgids = [search._begin(connection, filterargs) for search in 
self.searches]
@@ -471,7 +467,7 @@
         super().__init__(name_attr)
 
     def __repr__(self):
-        return "<{}: {}>".format(self.__class__.__name__, self.member_attr)
+        return "<{}: {}>".format(type(self).__name__, self.member_attr)
 
     def user_groups(self, ldap_user, group_search):
         search = group_search.search_with_additional_terms(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/django-auth-ldap-2.0.0/django_auth_ldap.egg-info/PKG-INFO 
new/django-auth-ldap-2.1.0/django_auth_ldap.egg-info/PKG-INFO
--- old/django-auth-ldap-2.0.0/django_auth_ldap.egg-info/PKG-INFO       
2019-06-06 04:15:55.000000000 +0200
+++ new/django-auth-ldap-2.1.0/django_auth_ldap.egg-info/PKG-INFO       
2019-12-04 05:08:08.000000000 +0100
@@ -1,12 +1,10 @@
 Metadata-Version: 1.2
 Name: django-auth-ldap
-Version: 2.0.0
-Summary: Django LDAP authentication backend
+Version: 2.1.0
+Summary: Django LDAP authentication backend.
 Home-page: https://github.com/django-auth-ldap/django-auth-ldap
 Author: Peter Sagerson
 Author-email: [email protected]
-Maintainer: Jon Dufresne
-Maintainer-email: [email protected]
 License: BSD
 Project-URL: Documentation, https://django-auth-ldap.readthedocs.io/
 Project-URL: Source, https://github.com/django-auth-ldap/django-auth-ldap
@@ -38,8 +36,8 @@
         * Tests: http://travis-ci.org/django-auth-ldap/django-auth-ldap
         * License: BSD 2-Clause
         
-        This version is supported on Python 2.7 and 3.4+; and Django 1.11+. It 
requires
-        `python-ldap`_ >= 3.0.
+        This version is supported on Python 3.5+; and Django 1.11+. It requires
+        `python-ldap`_ >= 3.1.
         
         .. _`python-ldap`: https://pypi.org/project/python-ldap/
         
@@ -53,7 +51,7 @@
         
             $ pip install django-auth-ldap
         
-        It requires `python-ldap`_ >= 3.0. You'll need the `OpenLDAP`_ 
libraries and
+        It requires `python-ldap`_ >= 3.1. You'll need the `OpenLDAP`_ 
libraries and
         headers available on your system.
         
         To use the auth backend in a Django project, add
@@ -148,7 +146,7 @@
             # Use LDAP group membership to calculate group permissions.
             AUTH_LDAP_FIND_GROUP_PERMS = True
         
-            # Cache distinguised names and group memberships for an hour to 
minimize
+            # Cache distinguished names and group memberships for an hour to 
minimize
             # LDAP traffic.
             AUTH_LDAP_CACHE_TIMEOUT = 3600
         
@@ -176,23 +174,23 @@
         
         .. _`logging an issue`: 
https://github.com/django-auth-ldap/django-auth-ldap/issues
         
-Keywords: django,ldap,authentication,auth
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Environment :: Web Environment
 Classifier: Framework :: Django
 Classifier: Framework :: Django :: 1.11
-Classifier: Framework :: Django :: 2.1
 Classifier: Framework :: Django :: 2.2
+Classifier: Framework :: Django :: 3.0
 Classifier: Intended Audience :: Developers
 Classifier: Intended Audience :: System Administrators
 Classifier: License :: OSI Approved :: BSD License
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3 :: Only
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
-Classifier: Programming Language :: Python :: 3 :: Only
+Classifier: Programming Language :: Python :: 3.8
 Classifier: Topic :: Internet :: WWW/HTTP
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
 Classifier: Topic :: System :: Systems Administration :: 
Authentication/Directory :: LDAP
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-auth-ldap-2.0.0/docs/conf.py 
new/django-auth-ldap-2.1.0/docs/conf.py
--- old/django-auth-ldap-2.0.0/docs/conf.py     2019-06-06 03:55:39.000000000 
+0200
+++ new/django-auth-ldap-2.1.0/docs/conf.py     2019-12-04 05:06:11.000000000 
+0100
@@ -23,9 +23,9 @@
 author = "Peter Sagerson"
 
 # The short X.Y version
-version = "2.0"
+version = "2.1"
 # The full version, including alpha/beta/rc tags
-release = "2.0.0"
+release = "2.1.0"
 
 
 # -- General configuration ---------------------------------------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-auth-ldap-2.0.0/docs/custombehavior.rst 
new/django-auth-ldap-2.1.0/docs/custombehavior.rst
--- old/django-auth-ldap-2.0.0/docs/custombehavior.rst  2019-06-06 
04:14:14.000000000 +0200
+++ new/django-auth-ldap-2.1.0/docs/custombehavior.rst  2019-10-28 
00:55:24.000000000 +0100
@@ -16,7 +16,7 @@
   :class:`~django_auth_ldap.backend.LDAPBackend` subclass.
 
 
-Subclassing LDAPBAckend
+Subclassing LDAPBackend
 -----------------------
 
 You can implement your own :class:`~django_auth_ldap.backend.LDAPBackend` 
subclass
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-auth-ldap-2.0.0/docs/example.rst 
new/django-auth-ldap-2.1.0/docs/example.rst
--- old/django-auth-ldap-2.0.0/docs/example.rst 2019-06-06 04:14:14.000000000 
+0200
+++ new/django-auth-ldap-2.1.0/docs/example.rst 2019-10-28 00:55:24.000000000 
+0100
@@ -56,7 +56,7 @@
     # Use LDAP group membership to calculate group permissions.
     AUTH_LDAP_FIND_GROUP_PERMS = True
 
-    # Cache distinguised names and group memberships for an hour to minimize
+    # Cache distinguished names and group memberships for an hour to minimize
     # LDAP traffic.
     AUTH_LDAP_CACHE_TIMEOUT = 3600
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-auth-ldap-2.0.0/docs/index.rst 
new/django-auth-ldap-2.1.0/docs/index.rst
--- old/django-auth-ldap-2.0.0/docs/index.rst   2018-11-25 01:09:38.000000000 
+0100
+++ new/django-auth-ldap-2.1.0/docs/index.rst   2019-10-28 00:55:24.000000000 
+0100
@@ -13,8 +13,8 @@
 * Tests: http://travis-ci.org/django-auth-ldap/django-auth-ldap
 * License: BSD 2-Clause
 
-This version is supported on Python 2.7 and 3.4+; and Django 1.11+. It requires
-`python-ldap`_ >= 3.0.
+This version is supported on Python 3.5+; and Django 1.11+. It requires
+`python-ldap`_ >= 3.1.
 
 .. toctree::
     :maxdepth: 2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-auth-ldap-2.0.0/setup.cfg 
new/django-auth-ldap-2.1.0/setup.cfg
--- old/django-auth-ldap-2.0.0/setup.cfg        2019-06-06 04:15:55.000000000 
+0200
+++ new/django-auth-ldap-2.1.0/setup.cfg        2019-12-04 05:08:08.000000000 
+0100
@@ -1,3 +1,44 @@
+[metadata]
+name = django-auth-ldap
+version = attr: django_auth_ldap.__version__
+description = Django LDAP authentication backend.
+long_description = file: README.rst
+author = Peter Sagerson
+author_email = [email protected]
+url = https://github.com/django-auth-ldap/django-auth-ldap
+license = BSD
+classifiers = 
+       Development Status :: 5 - Production/Stable
+       Environment :: Web Environment
+       Framework :: Django
+       Framework :: Django :: 1.11
+       Framework :: Django :: 2.2
+       Framework :: Django :: 3.0
+       Intended Audience :: Developers
+       Intended Audience :: System Administrators
+       License :: OSI Approved :: BSD License
+       Programming Language :: Python
+       Programming Language :: Python :: 3
+       Programming Language :: Python :: 3 :: Only
+       Programming Language :: Python :: 3.5
+       Programming Language :: Python :: 3.6
+       Programming Language :: Python :: 3.7
+       Programming Language :: Python :: 3.8
+       Topic :: Internet :: WWW/HTTP
+       Topic :: Software Development :: Libraries :: Python Modules
+       Topic :: System :: Systems Administration :: Authentication/Directory 
:: LDAP
+project_urls = 
+       Documentation = https://django-auth-ldap.readthedocs.io/
+       Source = https://github.com/django-auth-ldap/django-auth-ldap
+       Tracker = https://github.com/django-auth-ldap/django-auth-ldap/issues
+
+[options]
+python_requires = >=3.5
+packages = django_auth_ldap
+install_requires = 
+       Django>=1.11
+       python-ldap>=3.1
+
 [flake8]
 ignore = 
        E501
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-auth-ldap-2.0.0/setup.py 
new/django-auth-ldap-2.1.0/setup.py
--- old/django-auth-ldap-2.0.0/setup.py 2019-06-06 04:14:14.000000000 +0200
+++ new/django-auth-ldap-2.1.0/setup.py 2019-11-25 04:03:55.000000000 +0100
@@ -1,51 +1,3 @@
-#!/usr/bin/env python
-
 from setuptools import setup
 
-import django_auth_ldap
-
-with open("README.rst") as fp:
-    readme = fp.read()
-
-setup(
-    name="django-auth-ldap",
-    version=django_auth_ldap.version_string,
-    description="Django LDAP authentication backend",
-    long_description=readme,
-    url="https://github.com/django-auth-ldap/django-auth-ldap";,
-    author="Peter Sagerson",
-    author_email="[email protected]",
-    maintainer="Jon Dufresne",
-    maintainer_email="[email protected]",
-    license="BSD",
-    packages=["django_auth_ldap"],
-    classifiers=[
-        "Development Status :: 5 - Production/Stable",
-        "Environment :: Web Environment",
-        "Framework :: Django",
-        "Framework :: Django :: 1.11",
-        "Framework :: Django :: 2.1",
-        "Framework :: Django :: 2.2",
-        "Intended Audience :: Developers",
-        "Intended Audience :: System Administrators",
-        "License :: OSI Approved :: BSD License",
-        "Programming Language :: Python",
-        "Programming Language :: Python :: 3",
-        "Programming Language :: Python :: 3.5",
-        "Programming Language :: Python :: 3.6",
-        "Programming Language :: Python :: 3.7",
-        "Programming Language :: Python :: 3 :: Only",
-        "Topic :: Internet :: WWW/HTTP",
-        "Topic :: Software Development :: Libraries :: Python Modules",
-        "Topic :: System :: Systems Administration :: Authentication/Directory 
:: LDAP",
-    ],
-    keywords=["django", "ldap", "authentication", "auth"],
-    project_urls={
-        "Documentation": "https://django-auth-ldap.readthedocs.io/";,
-        "Source": "https://github.com/django-auth-ldap/django-auth-ldap";,
-        "Tracker": 
"https://github.com/django-auth-ldap/django-auth-ldap/issues";,
-    },
-    python_requires=">=3.5",
-    install_requires=["Django >= 1.11", "python-ldap >= 3.1"],
-    tests_require=["mock >= 2.0.0"],
-)
+setup()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-auth-ldap-2.0.0/tests/tests.py 
new/django-auth-ldap-2.1.0/tests/tests.py
--- old/django-auth-ldap-2.0.0/tests/tests.py   2019-04-03 05:04:37.000000000 
+0200
+++ new/django-auth-ldap-2.1.0/tests/tests.py   2019-12-04 05:06:11.000000000 
+0100
@@ -1,5 +1,3 @@
-# coding: utf-8
-
 # Copyright (c) 2009, Peter Sagerson
 # All rights reserved.
 #
@@ -260,6 +258,11 @@
         user = authenticate(username="invalid", password="i_do_not_exist")
         self.assertIsNone(user)
 
+    def test_username_none(self):
+        self._init_settings()
+        user = authenticate(username=None, password="password")
+        self.assertIsNone(user)
+
     @spy_ldap("simple_bind_s")
     def test_simple_bind_escaped(self, mock):
         """ Bind with a username that requires escaping. """
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-auth-ldap-2.0.0/tox.ini 
new/django-auth-ldap-2.1.0/tox.ini
--- old/django-auth-ldap-2.0.0/tox.ini  2019-06-06 04:14:14.000000000 +0200
+++ new/django-auth-ldap-2.1.0/tox.ini  2019-12-04 05:06:11.000000000 +0100
@@ -5,17 +5,16 @@
     isort
     docs
     py{35,36,37}-django111
-    py{35,36,37}-django21
-    py{35,36,37}-django22
-    py{36,37}-djangomaster
+    py{35,36,37,38}-django22
+    py{36,37,38}-django30
+    py{36,37,38}-djangomaster
 
 [testenv]
 commands = {envpython} -Wa -b -m django test --settings tests.settings
 deps =
     django111: Django~=1.11.0
-    django20: Django~=2.0.0
-    django21: Django~=2.1.0
     django22: Django~=2.2.0
+    django30: Django>=3.0<3.1
     djangomaster: https://github.com/django/django/archive/master.tar.gz
     mock >= 2.0.0
 


Reply via email to