Skip to content

Commit 68d6cc8

Browse files
committed
Added setup.py and restructured project.
This setup.py is a draft and some information might still be missing. A correct email address is missing in any case. Since python software should be strucuted in packages, I've moved websocket.py into a sub-folder. This also changes the import path. Changed import in server.py to the new import path.
1 parent db22457 commit 68d6cc8

File tree

5 files changed

+16
-1
lines changed

5 files changed

+16
-1
lines changed

python_websockets/__init__.py

Whitespace-only changes.

python_websockets/websocket.pyc

11.6 KB
Binary file not shown.

server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from websocket import WebSocketsServer
1+
from python_websockets.websocket import WebSocketsServer
22

33

44
# Called for every client connecting (after handshake)

setup.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from setuptools import setup, find_packages
2+
3+
setup(
4+
name='websocket_server',
5+
version='0.4',
6+
packages=find_packages("."),
7+
url='https://github.com/Pithikos/python-websockets-server',
8+
license='MIT',
9+
author='Johan Hanssen Seferidis',
10+
author_email='[email protected]',
11+
install_requires=[
12+
],
13+
description='A simple fully working WebsocketsServer in Python (with no dependencies)',
14+
platforms='any',
15+
)

0 commit comments

Comments
 (0)