Commits

Anonymous committed 83a8285

initial

Comments (0)

Files changed (6)

+# NOT: pylint needs to be installed in the virtualenv regardless of whether
+# it is available in system-wide; otherwise imports will fail
+PACKAGE=araldo_websocket
+BUILD_DEPS='mock >= 1.0.0' 'Sphinx >= 1.1.3' 'nose >= 1.2.1' 'yolk >= 0.4.3'\
+		   'pylint'  'pyflakes >= 0.5.0'  'pep8' 'nose-cov >= 1.6'\
+		   'pytest >= 2.3.2' 'pytest-cov >= 1.6' 'pytest-xdist >= 1.8'
+
+
+
+develop: setup-develop ensure-build-deps
+
+ensure-build-deps:
+	pip install ${BUILD_DEPS}
+
+upgrade-build-deps:
+	pip install --upgrade ${BUILD_DEPS}
+
+#create-virtualenv:
+#	virtualenv virtualenv
+
+#activate-virtualenv:
+#	. virtualenv/bin/activate
+
+setup-develop:
+	python setup.py develop
+
+check: check-pylint-errors check-pep8 check-pyflakes
+
+check-pylint:
+	pylint setup.py ${PACKAGE} test
+
+check-pylint-errors:
+	pylint --errors-only setup.py ${PACKAGE} test
+
+check-pep8:
+	pep8 setup.py ${PACKAGE} test
+
+check-pyflakes:
+	pyflakes setup.py ${PACKAGE}
+
+clean:
+	rm -rf build dist virtualenv
+
+documentation:
+	(cd doc && make html)
+
+on-commit:                                                                     
+	${MAKE} test-pytest-quick  
+
+test-pytest-full:
+	py.test --verbose --doctest-modules  --cov ${PACKAGE} --cov-report=html ${PACKAGE}/ test/
+
+test-pytest-quick:
+	py.test --verbose --doctest-modules  test/ 
+
+test-pytest-quick-loop:
+	py.test  --looponfail  test/
+
+test-quick:
+	nosetests --with-doctest  ${PACKAGE}
+
+test-full:
+	nosetests --with-doctest --with-coverage --cover-html ${PACKAGE}
+
+install-deps-debian:
+	sudo apt-get install libevent-dev

araldo_websocket/__init__.py

+""" Top-level application package
+"""
+
+VERSION = "0.0.1"
+
+
+def _setup_logging():
+    """ Configure logging system
+    """
+    import logging
+    logger = logging.getLogger("araldo_websocket")
+    logger.setLevel(logging.DEBUG)
+    logger.addHandler(logging.StreamHandler())
+
+_setup_logging()
+
+__all__ = ["VERSION"]

araldo_websocket/endpoints/__init__.py

Empty file added.

araldo_websocket/endpoints/websocket_endpoint.py

Empty file added.
+#!/usr/bin/env python
+
+# Copyright 2012 Bernhard Biskup
+#
+# see LICENSE.txt
+
+
+"""
+Distutils setup script for araldo websocket module.
+"""
+
+from setuptools import setup, find_packages
+
+import araldo_websocket
+
+print "VERSION", araldo_websocket.VERSION
+
+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=araldo_websocket.__doc__,
+    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.inbound": [
+            ("websocketclient-inbound "
+             "= araldo_websocket.endpoints.websocketlclient_endpoint")
+        ],
+        "araldo.endpoints.outbound": [
+            ("websocketclient-outbound "
+             "= araldo_websocket.endpoints.websocketclient_endpoint")
+        ]
+    },
+    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)',
+)

test/__init__.py

Empty file added.