<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/websockify.git/run, branch master</title>
<subtitle>github.com: kanaka/websockify.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/websockify.git/'/>
<entry>
<title>Explicitly request Python 3</title>
<updated>2020-12-15T15:10:43+00:00</updated>
<author>
<name>Pierre Ossman</name>
<email>ossman@cendio.se</email>
</author>
<published>2020-12-15T15:10:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/websockify.git/commit/?id=108f993eb387d10fbc6ebb632f4fb92c8c44a15b'/>
<id>108f993eb387d10fbc6ebb632f4fb92c8c44a15b</id>
<content type='text'>
It varies between systems if /usr/bin/python is Python 2.x or Python
3.x. Since we now only work with Python 3.x we should be more explicit
in our scripts and documentation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It varies between systems if /usr/bin/python is Python 2.x or Python
3.x. Since we now only work with Python 3.x we should be more explicit
in our scripts and documentation.
</pre>
</div>
</content>
</entry>
<entry>
<title>run: Fix shell scripting bugs</title>
<updated>2019-08-17T18:39:46+00:00</updated>
<author>
<name>Anders Kaseorg</name>
<email>andersk@mit.edu</email>
</author>
<published>2019-08-17T18:25:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/websockify.git/commit/?id=5052f823d74241d099688c3a8ceb0de57541e968'/>
<id>5052f823d74241d099688c3a8ceb0de57541e968</id>
<content type='text'>
* Use double quotes around `"$@"` to fix invocation with arguments
  including spaces.
* Use double quotes around `"$(dirname "$0")"` to fix invocation
  inside a directory path including spaces.
* Use `set -e` to abort in case `cd` fails.
* Use `exec` to avoid forking an unnecessary wrapper process.
* Skip an unnecessary `cd` → `pwd` → `cd` dance, just use `cd`.

Signed-off-by: Anders Kaseorg &lt;andersk@mit.edu&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Use double quotes around `"$@"` to fix invocation with arguments
  including spaces.
* Use double quotes around `"$(dirname "$0")"` to fix invocation
  inside a directory path including spaces.
* Use `set -e` to abort in case `cd` fails.
* Use `exec` to avoid forking an unnecessary wrapper process.
* Skip an unnecessary `cd` → `pwd` → `cd` dance, just use `cd`.

Signed-off-by: Anders Kaseorg &lt;andersk@mit.edu&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Use safer method to get base directory</title>
<updated>2019-06-24T13:38:52+00:00</updated>
<author>
<name>Pierre Ossman</name>
<email>ossman@cendio.se</email>
</author>
<published>2019-06-24T13:38:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/websockify.git/commit/?id=6a268a09b668915d6b0e2cd2df1b5425fce1ab92'/>
<id>6a268a09b668915d6b0e2cd2df1b5425fce1ab92</id>
<content type='text'>
realpath isn't available on older systems, so use a safer approach
using just very basic commands.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
realpath isn't available on older systems, so use a safer approach
using just very basic commands.
</pre>
</div>
</content>
</entry>
<entry>
<title>run: invoke websockify through 'python -m'</title>
<updated>2019-06-17T13:04:43+00:00</updated>
<author>
<name>Skia</name>
<email>skia@libskia.so</email>
</author>
<published>2019-06-13T15:16:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/websockify.git/commit/?id=4f6a82159ce42299c8666e04f4a4c3d0fe829803'/>
<id>4f6a82159ce42299c8666e04f4a4c3d0fe829803</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow main script to be imported</title>
<updated>2019-04-02T15:02:08+00:00</updated>
<author>
<name>Pierre Ossman</name>
<email>ossman@cendio.se</email>
</author>
<published>2019-04-02T15:02:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/websockify.git/commit/?id=d751ec44a89302fad7e8c7ff33a5c18c45ad893f'/>
<id>d751ec44a89302fad7e8c7ff33a5c18c45ad893f</id>
<content type='text'>
We should only start the server if we are the main module, and not
imported some other way. This is important for multiprocessing to
work correctly on Windows.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We should only start the server if we are the main module, and not
imported some other way. This is important for multiprocessing to
work correctly on Windows.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make `run` respect virtualenv configuration</title>
<updated>2015-05-15T11:24:38+00:00</updated>
<author>
<name>Rohan Jain</name>
<email>crodjer@gmail.com</email>
</author>
<published>2015-05-15T11:21:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/websockify.git/commit/?id=2b9e0a5794fae82e2765298e2ecc54b0137b1991'/>
<id>2b9e0a5794fae82e2765298e2ecc54b0137b1991</id>
<content type='text'>
Signed-off-by: Rohan Jain &lt;crodjer@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Rohan Jain &lt;crodjer@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor into python modules: websocket, websocketproxy</title>
<updated>2012-09-17T19:06:51+00:00</updated>
<author>
<name>Joel Martin</name>
<email>github@martintribe.org</email>
</author>
<published>2012-09-17T19:06:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/websockify.git/commit/?id=c0d23e27e4b94ee549d3dd5918fdc89bd91171ca'/>
<id>c0d23e27e4b94ee549d3dd5918fdc89bd91171ca</id>
<content type='text'>
Make websockify subdirectory and move websocket.py -&gt;
websockify/websocket.py and websockify -&gt;
websockify/websocketproxy.py. Create a ./run script that launches
websockify as before (unfortunately can't have a websockify script at
the same level since this is now a directory). Make websockify.py
a symlink to ./run. Once the package is installed, the main launch
script will be /usr/bin/websockify.

This makes it easier to package up websockify as a python module.
setup.py should now properly install websockify as a module.

Note that to include the base websocket module/class you will now do:

    import websockify.websocket
    #OR
    from websockify.websocket import WebSocketServer

To import the full websocket proxy functionality:

    import websockify.websocketproxy
    #OR
    from websockify.websocket import WebSocketProxy

This will also help with startup speed slightly because the code in
websocketproxy will now be byte compiled since it is no longer in the
main invocation script.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make websockify subdirectory and move websocket.py -&gt;
websockify/websocket.py and websockify -&gt;
websockify/websocketproxy.py. Create a ./run script that launches
websockify as before (unfortunately can't have a websockify script at
the same level since this is now a directory). Make websockify.py
a symlink to ./run. Once the package is installed, the main launch
script will be /usr/bin/websockify.

This makes it easier to package up websockify as a python module.
setup.py should now properly install websockify as a module.

Note that to include the base websocket module/class you will now do:

    import websockify.websocket
    #OR
    from websockify.websocket import WebSocketServer

To import the full websocket proxy functionality:

    import websockify.websocketproxy
    #OR
    from websockify.websocket import WebSocketProxy

This will also help with startup speed slightly because the code in
websocketproxy will now be byte compiled since it is no longer in the
main invocation script.
</pre>
</div>
</content>
</entry>
</feed>
