Eggify websockify

This commit is contained in:
Cédric de Saint Martin 2012-02-18 09:43:12 +01:00
parent db17151941
commit 301f3ae580
4 changed files with 43 additions and 1 deletions

8
CHANGES.txt Normal file
View File

@ -0,0 +1,8 @@
Changes
=======
0.1 (not yet released)
-----------------
* No change yet.

1
MANIFEST.in Normal file
View File

@ -0,0 +1 @@
include CHANGES.txt *.py README.md LICENSE.txt

30
setup.py Normal file
View File

@ -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 File

@ -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()