django-allauth-ens/setup.py
Aurélien Delobelle ce1e7d1099 Complete !1
- Force python-ldap >= 3 to get proper bytes/string management.
- Replace common['name'] with common['first_name'] because the name is
  already broken by get_names. Actually, allauth breaks down
  common['name'] in 'first_name + last_name'.
- Decrease timeout of LDAP requests to 5s.
- Fix get_names in case the LDAP returned a string without any space
  character.
- Fix get_names in case the LDAP doesn't return any cn, which was
  failing with Py3.
- Add tests about populating user data from LDAP.
2018-09-29 22:28:21 +02:00

52 lines
1.6 KiB
Python

import os
from setuptools import find_packages, setup
from allauth_ens import __version__
BASE_DIR = os.path.dirname(__file__)
with open(os.path.join(BASE_DIR, 'README.rst')) as readme:
README = readme.read()
setup(
name='django-allauth-ens',
version=__version__,
description=(
"Providers for django-allauth allowing using the ENS' auth-systems."
),
author='cof-geek',
author_email='cof-geek@ens.fr',
keywords='django allauth cas authentication',
long_description=README,
url='https://git.eleves.ens.fr/cof-geek/django-allauth-ens',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Framework :: Django :: 1.10',
'Framework :: Django :: 1.11',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Internet :: WWW/HTTP',
],
license='MIT',
packages=find_packages(exclude=['tests']),
include_package_data=True,
install_requires=[
'django-allauth',
'django-allauth-cas>=1.0.0b2,<1.1',
'django-widget-tweaks',
'python-ldap>=3.0',
],
)