Skip to content

Commit

Permalink
Merge pull request #60 from a-detiste/master
Browse files Browse the repository at this point in the history
remove dependency on deprecated python3-six
  • Loading branch information
rroemhild authored Oct 29, 2023
2 parents d2f7fd4 + 756c900 commit d92edea
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 24 deletions.
1 change: 0 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ name = "pypi"

[packages]
ldap3 = ">=2.3"
six = ">=1.10"
Flask = ">=0.12"

[dev-packages]
Expand Down
18 changes: 0 additions & 18 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions flask_ldapconn/entry.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
import json
from flask import current_app
from six import add_metaclass
from ldap3.utils.dn import safe_dn
from ldap3.utils.conv import check_json_dict, format_json
from ldap3.core.exceptions import LDAPAttributeError
Expand Down Expand Up @@ -33,8 +32,7 @@ def query(cls):
return BaseQuery(cls)


@add_metaclass(LDAPEntryMeta)
class LDAPEntry(object):
class LDAPEntry(object, metaclass=LDAPEntryMeta):

base_dn = None
entry_rdn = ['cn']
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
six>=1.10
Flask>=0.12
ldap3>=2.3
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
install_requires=[
'Flask>=0.12',
'ldap3>=2.3',
'six>=1.10'
],
classifiers=[
'Development Status :: 5 - Production/Stable',
Expand Down

0 comments on commit d92edea

Please sign in to comment.