[10321] | 1 | # from distutils.core import setup, Command |
---|
| 2 | import os |
---|
| 3 | from setuptools import setup, find_packages |
---|
| 4 | from setuptools.command.test import test as TestCommand |
---|
| 5 | import sys |
---|
| 6 | |
---|
| 7 | tests_path = os.path.join(os.path.dirname(__file__), 'tests') |
---|
| 8 | |
---|
| 9 | class 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 | |
---|
| 21 | install_requires = [ |
---|
| 22 | 'setuptools', |
---|
| 23 | 'webob', |
---|
[10394] | 24 | 'SQLAlchemy', |
---|
[10321] | 25 | ] |
---|
| 26 | |
---|
| 27 | tests_require = [ |
---|
| 28 | 'pytest', |
---|
| 29 | 'pytest-cov', |
---|
| 30 | 'PasteDeploy', |
---|
[10394] | 31 | 'WebTest', |
---|
[10321] | 32 | ] |
---|
| 33 | |
---|
| 34 | docs_require = ['Sphinx', 'Pygments'] |
---|
| 35 | |
---|
| 36 | setup( |
---|
| 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 |
---|
[10394] | 68 | [waeup.cas.authenticators] |
---|
| 69 | dummy = waeup.cas.authenticators:DummyAuthenticator |
---|
[10462] | 70 | kofa1 = waeup.cas.authenticators:KofaAuthenticator |
---|
[10321] | 71 | """, |
---|
| 72 | ) |
---|