~lmc/repoze.who.plugins.ldap/enable-nosetests

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# -*- coding: utf-8 -*-
#
# repoze.who.plugins.ldap, LDAP authentication for WSGI applications.
# Copyright (C) 2008-2010 by Gustavo Narea <http://gustavonarea.net/>
#
# This file is part of repoze.who.plugins.ldap
# <http://code.gustavonarea.net/repoze.who.plugins.ldap/>
#
# This software is subject to the provisions of the BSD-like license at
# http://www.repoze.org/LICENSE.txt.  A copy of the license should accompany
# this distribution.  THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL
# EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO,
# THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND
# FITNESS FOR A PARTICULAR PURPOSE.

import os

from setuptools import setup, find_packages

here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README')).read()
CHANGELOG = open(os.path.join(here, 'CHANGELOG')).read()
version = open(os.path.join(here, 'VERSION')).readline().rstrip()

setup(
    name='repoze.who.plugins.ldap',
    version=version,
    description="LDAP plugin for repoze.who",
    long_description='\n\n'.join([README, CHANGELOG]),
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "Natural Language :: English",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware",
        "Topic :: System :: Systems Administration :: Authentication/Directory :: LDAP"
    ],
    keywords='ldap web application server wsgi repoze repoze.who',
    author="Gustavo Narea",
    author_email="me@gustavonarea.net",
    url="http://code.gustavonarea.net/repoze.who.plugins.ldap/",
    download_url="https://launchpad.net/repoze.who.plugins.ldap/+download",
    license="BSD-derived (http://www.repoze.org/LICENSE.txt)",
    include_package_data=True,
    packages=find_packages(exclude=["*.tests", "demo", "demo.*"]),
    namespace_packages=['repoze', 'repoze.who', 'repoze.who.plugins'],
    zip_safe=False,
    tests_require = ['dataflake.ldapconnection==0.3'],
    install_requires=[
        'repoze.who >= 1.0.6, < 2.0dev',
        'python-ldap>=2.3.5',
        'setuptools',
        'zope.interface'
        ],
    test_suite="repoze.who.plugins.ldap.tests.suite"
    )