aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-09-23 14:14:45 -0400
committerJesse Luehrs <doy@tozt.net>2014-09-23 14:14:45 -0400
commita7e6b8683c1989f3a9b155336e8a4d314fe7bb8b (patch)
tree90a79aec508f503456c5fc6c418ad7de70659260
parent70cd632270083acc2bb835069d6e00f07a728cb3 (diff)
downloadpython-termcast-server-a7e6b8683c1989f3a9b155336e8a4d314fe7bb8b.tar.gz
python-termcast-server-a7e6b8683c1989f3a9b155336e8a4d314fe7bb8b.zip
packaging
-rw-r--r--.gitignore5
-rw-r--r--Changes4
-rw-r--r--LICENSE32
-rw-r--r--MANIFEST.in2
-rw-r--r--README.md10
-rw-r--r--setup.py23
-rw-r--r--termcast_server/__init__.py4
-rw-r--r--termcast_server/__main__.py4
8 files changed, 81 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index bee8a64..85d9ce7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,6 @@
__pycache__
+/build/
+/MANIFEST
+/dist/
+*.pyc
+/*.egg-info/
diff --git a/Changes b/Changes
new file mode 100644
index 0000000..b16e64c
--- /dev/null
+++ b/Changes
@@ -0,0 +1,4 @@
+Revision history for termcast_server
+
+0.1.0 2014-09-23
+ - Initial revision
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..39fe9ef
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,32 @@
+This software is Copyright (c) 2014 by Jesse Luehrs.
+
+This is free software, licensed under:
+
+ The MIT (X11) License
+
+The MIT License
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the Software
+without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense,
+and/or sell copies of the Software, and to permit persons to
+whom the Software is furnished to do so, subject to the
+following conditions:
+
+The above copyright notice and this permission notice shall
+be included in all copies or substantial portions of the
+Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT
+WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR
+PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..838a427
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,2 @@
+include LICENSE
+include Changes
diff --git a/README.md b/README.md
index 494ccd2..efc9b93 100644
--- a/README.md
+++ b/README.md
@@ -7,3 +7,13 @@ goal of adding features like a web viewer and better authentication options.
* [paramiko](https://pypi.python.org/pypi/paramiko/)
* [vt100](https://pypi.python.org/pypi/vt100)
+
+# Client
+
+You can download a standalone client
+[here](https://raw.githubusercontent.com/doy/python-termcast-client/master/termcast).
+Alternatively, several other clients exist:
+
+* [termcast_client](https://pypi.python.org/pypi/termcast_client)
+* [App::Termcast](https://metacpan.org/release/App-Termcast)
+* [ttrtail](http://noway.ratry.ru/jsn/termcast/)
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..04b3fcc
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,23 @@
+from setuptools import setup, find_packages
+
+setup(
+ name="termcast_server",
+ version="0.1.0",
+ description="allow users to broadcast their terminals for others to watch",
+ url="https://github.com/doy/python-termcast-server",
+ author="Jesse Luehrs",
+ author_email="doy@tozt.net",
+ license="MIT",
+ classifiers=[
+ "Development Status :: 3 - Alpha",
+ "Environment :: Console",
+ "License :: OSI Approved :: MIT License",
+ "Topic :: Terminals :: Terminal Emulators/X Terminals",
+ ],
+ packages=find_packages(),
+ entry_points={
+ "console_scripts": [
+ "termcast_server=termcast_server:main",
+ ],
+ },
+)
diff --git a/termcast_server/__init__.py b/termcast_server/__init__.py
index 3a8dfee..6896b04 100644
--- a/termcast_server/__init__.py
+++ b/termcast_server/__init__.py
@@ -76,3 +76,7 @@ class Server(object):
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
sock.bind(('', port))
return sock
+
+def main():
+ server = Server(sys.argv[1])
+ server.listen()
diff --git a/termcast_server/__main__.py b/termcast_server/__main__.py
index d842d0a..b4a831a 100644
--- a/termcast_server/__main__.py
+++ b/termcast_server/__main__.py
@@ -1,5 +1,3 @@
-import sys
import termcast_server
-server = termcast_server.Server(sys.argv[1])
-server.listen()
+termcast_server.main()