source: main/waeup.cas/trunk/setup.py @ 14561

Last change on this file since 14561 was 10509, checked in by Henrik Bettermann, 11 years ago

Add authenticator which authenticate against a running Kofa instance and transfer data to Moodle. No test available. sample4.ini serves as an example configuration file and isn't used by any test.

File size: 2.3 KB
Line 
1# from distutils.core import setup, Command
2import os
3from setuptools import setup, find_packages
4from setuptools.command.test import test as TestCommand
5import sys
6
7tests_path = os.path.join(os.path.dirname(__file__), 'tests')
8
9class PyTest(TestCommand):
10    def finalize_options(self):
11        TestCommand.finalize_options(self)
12        args = sys.argv[sys.argv.index('test')+1:]
13        self.test_args = args
14        self.test_suite = True
15    def run_tests(self):
16        #import here, cause outside the eggs aren't loaded
17        import pytest
18        errno = pytest.main(self.test_args)
19        sys.exit(errno)
20
21install_requires = [
22    'setuptools',
23    'webob',
24    'SQLAlchemy',
25    ]
26
27tests_require = [
28    'pytest',
29    'pytest-cov',
30    'PasteDeploy',
31    'WebTest',
32    ]
33
34docs_require = ['Sphinx', 'Pygments']
35
36setup(
37    name='waeup.cas',
38    version='0.1dev',
39    author='Uli Fouquet',
40    author_email='uli@gnufix.de',
41    packages=['waeup.cas',],
42    scripts=[],
43    url='http://pypi.python.org/pypi/waeup.cas/',
44    license='LICENSE.txt',
45    description='CAS Single Sign-On components for waeup.kofa.',
46    long_description=open('README.rst').read() + '\n\n' + open(
47        'CHANGES.txt').read() + '\n\n' + 'Download\n********\n',
48    classifiers=['Development Status :: 3 - Alpha',
49                 'Intended Audience :: Developers',
50                 'License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)',
51                 'Programming Language :: Python',
52                 'Topic :: Software Development :: Libraries :: Python Modules',
53                 'Programming Language :: Python :: 2.6',
54                 'Programming Language :: Python :: 2.7',
55                 'Programming Language :: Python :: 3.2',
56                 'Programming Language :: Python :: 3.3',
57                 ],
58    install_requires=install_requires,
59    tests_require=tests_require,
60    extras_require = dict(
61        tests = tests_require,
62        docs = docs_require,
63        ),
64    cmdclass = {'test': PyTest},
65    zip_safe = False,
66    entry_points="""[paste.app_factory]
67    server = waeup.cas:make_cas_server
68    [waeup.cas.authenticators]
69    dummy = waeup.cas.authenticators:DummyAuthenticator
70    kofa1 = waeup.cas.authenticators:KofaAuthenticator
71    kofa_moodle1 = waeup.cas.authenticators:KofaMoodleAuthenticator
72    """,
73)
Note: See TracBrowser for help on using the repository browser.