django-cas-server/setup.py

80 lines
2.9 KiB
Python
Raw Normal View History

2015-05-22 19:14:33 +00:00
import os
import pkg_resources
2015-05-22 19:14:33 +00:00
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
# if we have Django 1.8 available, use last version of django-boostrap3
try:
pkg_resources.require('Django >= 1.8')
django_bootstrap3 = 'django-bootstrap3 >= 5.4'
django = 'Django >= 1.8,<1.10'
except pkg_resources.VersionConflict:
# Else if we have django 1.7, we need django-boostrap3 < 7.0.0
try:
pkg_resources.require('Django >= 1.7')
django_bootstrap3 = 'django-bootstrap3 >= 5.4,<7.0.0'
django = 'Django >= 1.7,<1.8'
2016-03-18 12:15:03 +00:00
except (pkg_resources.VersionConflict, pkg_resources.DistributionNotFound):
# Else we need to install Django, assume version will be >= 1.8
django_bootstrap3 = 'django-bootstrap3 >= 5.4'
django = 'Django >= 1.8,<1.10'
2016-03-18 12:15:03 +00:00
# No version of django installed, assume version will be >= 1.8
except pkg_resources.DistributionNotFound:
django_bootstrap3 = 'django-bootstrap3 >= 5.4'
django = 'Django >= 1.8,<1.10'
2015-05-22 19:14:33 +00:00
setup(
name='django-cas-server',
2016-07-06 12:20:48 +00:00
version='0.6.0',
2015-12-12 17:02:51 +00:00
packages=[
'cas_server', 'cas_server.migrations',
'cas_server.management', 'cas_server.management.commands',
'cas_server.tests'
2015-12-12 17:02:51 +00:00
],
2015-05-22 19:14:33 +00:00
include_package_data=True,
license='GPLv3',
2015-12-12 17:02:51 +00:00
description=(
'A Django Central Authentication Service server '
2016-03-18 12:03:07 +00:00
'implementing the CAS Protocol 3.0 Specification'
2015-12-12 17:02:51 +00:00
),
2015-05-22 19:14:33 +00:00
long_description=README,
author='Valentin Samir',
author_email='valentin.samir@crans.org',
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
2015-12-12 12:07:36 +00:00
'Programming Language :: Python :: 3',
2015-05-22 19:14:33 +00:00
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
2015-12-12 12:07:36 +00:00
package_data={
'cas_server': [
'templates/cas_server/*',
'static/cas_server/*',
'locale/*/LC_MESSAGES/*',
]
},
keywords=['django', 'cas', 'cas3', 'server', 'sso', 'single sign-on', 'authentication', 'auth'],
2015-12-12 17:02:51 +00:00
install_requires=[
django, 'requests >= 2.4', 'requests_futures >= 0.9.5',
2016-06-30 23:56:48 +00:00
'django-picklefield >= 0.3.1', django_bootstrap3, 'lxml >= 3.4',
'six >= 1'
2015-12-12 17:02:51 +00:00
],
2015-12-12 12:07:36 +00:00
url="https://github.com/nitmir/django-cas-server",
download_url="https://github.com/nitmir/django-cas-server/releases",
zip_safe=False,
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-django', 'pytest-pythonpath'],
2015-05-22 19:14:33 +00:00
)