Source

araldo-websocket / setup.py

Full commit
#!/usr/bin/env python

# Copyright 2012 Bernhard Biskup
#
# see LICENSE.txt


"""
Distutils setup script for araldo websocket module.
"""

from setuptools import setup, find_packages, Command

import araldo_websocket

print "VERSION", araldo_websocket.VERSION


with open("README.rst") as readme:
    long_description = readme.read()


class PyTest(Command):
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        import sys
        import subprocess

        # ignore generated runtest scripts (gives some pep8 warnings)
        errno = subprocess.call(
            [sys.executable, 'runtests.py',
             '--verbose', '--ignore', 'runtests.py'])
        raise SystemExit(errno)


setup(
    name='araldo-websocket',
    version=araldo_websocket.VERSION,
    author='Bernhard Biskup',
    author_email='araldo.python@gmail.com',
    url='https://bitbucket.org/ganymed/araldo-websocket',
    download_url=('https://bitbucket.org/'
                  'ganymed/araldo/downloads/araldo-websocket-latest.tar.gz'),
    description=('WebSocket client endpoint for araldo'
                 ' (Messaging via WebSockets)'),
    long_description=long_description,
    packages=find_packages(".", exclude=["test"]),
    #py_modules=['araldo_websocket.endpoints'],
    provides=['araldo_websocket'],
    install_requires=[
        "araldo == %s" % araldo_websocket.VERSION,
        "websocket-client >= 0.8.0"
    ],
    entry_points={
        "araldo.endpoints.endpoint": [
            ("websocketclient-endpoint "
             "= araldo_websocket.endpoints.websocket_endpoint")
        ]
    },
    cmdclass = {'test': PyTest},
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Environment :: Console',
        'Environment :: Web Environment',
        'Environment :: Handhelds/PDA\'s',
        'Environment :: Plugins',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Operating System :: POSIX :: Linux',
        'Programming Language :: Python',
        'Programming Language :: Python :: Implementation :: CPython',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 3',
        'Topic :: Communications',
        'Topic :: Software Development :: Libraries'
    ],
    keywords='websockets pubsub publish subscribe message queue push',
    license='The MIT License (MIT)',
)