Permalink
Browse files

Eggify websockify

  • Loading branch information...
1 parent db17151 commit 301f3ae580557da47fa5ea2050aa671ce9c5a1a0 @desaintmartin desaintmartin committed Feb 18, 2012
Showing with 43 additions and 1 deletion.
  1. +8 −0 CHANGES.txt
  2. +1 −0 MANIFEST.in
  3. +30 −0 setup.py
  4. +4 −1 websockify
View
@@ -0,0 +1,8 @@
+Changes
+=======
+
+0.1 (not yet released)
+-----------------
+
+ * No change yet.
+
View
@@ -0,0 +1 @@
+include CHANGES.txt *.py README.md LICENSE.txt
View
@@ -0,0 +1,30 @@
+from setuptools import setup, find_packages
+
+version = '0.1-dev'
+name = 'websockify'
+long_description = open("README.md").read() + "\n" + \
+ open("CHANGES.txt").read() + "\n"
+
+setup(name=name,
+ version=version,
+ description="Websockify.",
+ long_description=long_description,
+ classifiers=[
+ "Programming Language :: Python",
+ ],
+ keywords='noVNC websockify',
+ license='LGPLv3',
+ url="https://github.com/kanaka/websockify",
+ author="Joel Martin",
+ author_email="github@martintribe.org",
+
+ packages=find_packages(),
+ include_package_data=True,
+ install_requires=['numpy'],
+ zip_safe=False,
+ entry_points={
+ 'console_scripts': [
+ 'websockify = websockify:websockify_init',
+ ]
+ },
+ )
View
@@ -213,7 +213,7 @@ Traffic Legend:
self.send_close()
raise self.EClose(closed)
-if __name__ == '__main__':
+def websockify_init():
usage = "\n %prog [options]"
usage += " [source_addr:]source_port target_addr:target_port"
usage += "\n %prog [options]"
@@ -280,3 +280,6 @@ if __name__ == '__main__':
# Create and start the WebSockets proxy
server = WebSocketProxy(**opts.__dict__)
server.start_server()
+
+if __name__ == '__main__':
+ websockify_init()

0 comments on commit 301f3ae

Please sign in to comment.