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

Last change on this file since 10321 was 10321, checked in by uli, 11 years ago

Basic skeleton for WSGI-based CAS service.

File size: 2.1 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    ]
25
26tests_require = [
27    'pytest',
28    'pytest-cov',
29    'PasteDeploy',
30    ]
31
32docs_require = ['Sphinx', 'Pygments']
33
34setup(
35    name='waeup.cas',
36    version='0.1dev',
37    author='Uli Fouquet',
38    author_email='uli@gnufix.de',
39    packages=['waeup.cas',],
40    scripts=[],
41    url='http://pypi.python.org/pypi/waeup.cas/',
42    license='LICENSE.txt',
43    description='CAS Single Sign-On components for waeup.kofa.',
44    long_description=open('README.rst').read() + '\n\n' + open(
45        'CHANGES.txt').read() + '\n\n' + 'Download\n********\n',
46    classifiers=['Development Status :: 3 - Alpha',
47                 'Intended Audience :: Developers',
48                 'License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)',
49                 'Programming Language :: Python',
50                 'Topic :: Software Development :: Libraries :: Python Modules',
51                 'Programming Language :: Python :: 2.6',
52                 'Programming Language :: Python :: 2.7',
53                 'Programming Language :: Python :: 3.2',
54                 'Programming Language :: Python :: 3.3',
55                 ],
56    install_requires=install_requires,
57    tests_require=tests_require,
58    extras_require = dict(
59        tests = tests_require,
60        docs = docs_require,
61        ),
62    cmdclass = {'test': PyTest},
63    zip_safe = False,
64    entry_points="""[paste.app_factory]
65    server = waeup.cas:make_cas_server
66    """,
67)
Note: See TracBrowser for help on using the repository browser.