araldo / setup.py

#!/usr/bin/env python

# Copyright 2012 Bernhard Biskup
#
# see LICENSE.txt


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

from __future__ import print_function
from setuptools import setup, find_packages, Command
import araldo

print("VERSION %s" % araldo.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',
    version=araldo.VERSION,
    author='Bernhard Biskup',
    author_email='araldo.python@gmail.com',
    url='https://bitbucket.org/ganymed/araldo',
    download_url=('https://bitbucket.org/'
                  'ganymed/araldo/downloads/araldo-latest.tar.gz'),
    description='Message-oriented communication relay for pluggable backends',
    long_description=long_description,
    #package_dir={'': 'araldo'},
    packages=find_packages(".", exclude=["test"]),
    #py_modules=['araldo'],
    provides=['araldo'],
    install_requires=[
        'gevent >= 0.13.8',
        'gevent-websocket >= 0.3.6',
        'websocket_client >= 0.8.0',
        'pyYAML >= 3.10',
        'voluptuous >= 0.4',
        'jsonpickle >= 0.4.0'
    ],
    entry_points={
        "console_scripts": [
            "araldo = araldo.server:main"
        ],
        "araldo.endpoints.endpoint": [
            "mock-endpoint = araldo.endpoints.mock_endpoint"
        ],
        "araldo.marshalling": [
            "default-marshalling = araldo.marshalling.json_marshalling",
            "raw-marshalling = araldo.marshalling.raw"
        ]
    },
    cmdclass = {'test': PyTest},
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Environment :: Console',
        'Environment :: Web Environment',
        'Environment :: Handhelds/PDA\'s',
        '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',
        'Programming Language :: JavaScript',
        'Topic :: Communications',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware',
        'Topic :: Software Development :: Libraries'
    ],
    keywords=('websockets pubsub publish subscribe message '
              'queue push notification'),
    license='The MIT License (MIT)',
)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.