setup.py 2.75 KB
Newer Older
Valentin Samir's avatar
Valentin Samir committed
1
import os
2
import pkg_resources
Valentin Samir's avatar
Valentin Samir committed
3
from setuptools import setup
4
from cas_server import VERSION
Valentin Samir's avatar
Valentin Samir committed
5

Valentin Samir's avatar
Valentin Samir committed
6 7 8
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
    README = readme.read()

Valentin Samir's avatar
Valentin Samir committed
9 10 11
if __name__ == '__main__':
    # allow setup.py to be run from any path
    os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
Valentin Samir's avatar
Valentin Samir committed
12

Valentin Samir's avatar
Valentin Samir committed
13 14 15 16 17 18
    setup(
        name='django-cas-server',
        version=VERSION,
        packages=[
            'cas_server', 'cas_server.migrations',
            'cas_server.management', 'cas_server.management.commands',
19
            'cas_server.tests', 'cas_server.templatetags'
Valentin Samir's avatar
Valentin Samir committed
20 21 22 23 24 25 26 27 28 29 30 31
        ],
        include_package_data=True,
        license='GPLv3',
        description=(
            'A Django Central Authentication Service server '
            'implementing the CAS Protocol 3.0 Specification'
        ),
        long_description=README,
        author='Valentin Samir',
        author_email='valentin.samir@crans.org',
        classifiers=[
            'Environment :: Web Environment',
32
            'Development Status :: 5 - Production/Stable',
Valentin Samir's avatar
Valentin Samir committed
33
            'Framework :: Django',
34
            'Framework :: Django :: 1.11',
35
            'Framework :: Django :: 2.0',
Valentin Samir's avatar
Valentin Samir committed
36 37 38 39 40 41 42 43 44
            'Intended Audience :: Developers',
            'Intended Audience :: System Administrators',
            'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
            'Operating System :: OS Independent',
            'Programming Language :: Python',
            'Programming Language :: Python :: 2',
            'Programming Language :: Python :: 2.7',
            'Programming Language :: Python :: 3',
            'Programming Language :: Python :: 3.5',
45
            'Programming Language :: Python :: 3.6',
Valentin Samir's avatar
Valentin Samir committed
46 47 48 49 50 51 52 53 54 55 56 57 58 59
            'Topic :: Software Development :: Libraries :: Python Modules',
            'Topic :: Internet :: WWW/HTTP',
            'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
            'Topic :: System :: Systems Administration :: Authentication/Directory'
        ],
        package_data={
            'cas_server': [
                'templates/cas_server/*',
                'static/cas_server/*',
                'locale/*/LC_MESSAGES/*',
            ]
        },
        keywords=['django', 'cas', 'cas3', 'server', 'sso', 'single sign-on', 'authentication', 'auth'],
        install_requires=[
60
            'Django >= 1.11,<2.1', 'requests >= 2.4', 'requests_futures >= 0.9.5',
61
            'lxml >= 3.4', 'six >= 1'
Valentin Samir's avatar
Valentin Samir committed
62 63
        ],
        url="https://github.com/nitmir/django-cas-server",
64
        download_url="https://github.com/nitmir/django-cas-server/releases/latest",
Valentin Samir's avatar
Valentin Samir committed
65 66
        zip_safe=False,
        setup_requires=['pytest-runner'],
67
        tests_require=['pytest', 'pytest-django', 'pytest-pythonpath', 'pytest-warnings', 'mock>=1'],
Valentin Samir's avatar
Valentin Samir committed
68
    )