Merge branch 'master' into websocket-support-on-iosim-tests-master
This commit is contained in:
commit
7a5b7487ef
4
NEWS.md
4
NEWS.md
|
@ -1,5 +1,9 @@
|
||||||
User-visible changes in "magic-wormhole-transit-relay":
|
User-visible changes in "magic-wormhole-transit-relay":
|
||||||
|
|
||||||
|
## unreleased
|
||||||
|
|
||||||
|
* drop Python 2, Python 3.5 and 3.6 support
|
||||||
|
|
||||||
## Release 0.2.1 (11-Sep-2019)
|
## Release 0.2.1 (11-Sep-2019)
|
||||||
|
|
||||||
* listen on IPv4+IPv6 properly (#12)
|
* listen on IPv4+IPv6 properly (#12)
|
||||||
|
|
|
@ -18,7 +18,6 @@ The resuting "usage.sqlite" should be passed into --usage-db=, e.g. "twist
|
||||||
transitrelay --usage=.../PATH/TO/usage.sqlite".
|
transitrelay --usage=.../PATH/TO/usage.sqlite".
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import unicode_literals, print_function
|
|
||||||
import sys
|
import sys
|
||||||
from wormhole_transit_relay.database import open_existing_db, create_db
|
from wormhole_transit_relay.database import open_existing_db, create_db
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@ Use the following in /etc/munin/plugin-conf.d/wormhole :
|
||||||
env.usagedb /path/to/your/wormhole/server/usage.sqlite
|
env.usagedb /path/to/your/wormhole/server/usage.sqlite
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
import os, sys, time, sqlite3
|
import os, sys, time, sqlite3
|
||||||
|
|
||||||
CONFIG = """\
|
CONFIG = """\
|
||||||
|
|
|
@ -7,7 +7,6 @@ Use the following in /etc/munin/plugin-conf.d/wormhole :
|
||||||
env.usagedb /path/to/your/wormhole/server/usage.sqlite
|
env.usagedb /path/to/your/wormhole/server/usage.sqlite
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
import os, sys, time, sqlite3
|
import os, sys, time, sqlite3
|
||||||
|
|
||||||
CONFIG = """\
|
CONFIG = """\
|
||||||
|
|
|
@ -7,7 +7,6 @@ Use the following in /etc/munin/plugin-conf.d/wormhole :
|
||||||
env.usagedb /path/to/your/wormhole/server/usage.sqlite
|
env.usagedb /path/to/your/wormhole/server/usage.sqlite
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
import os, sys, time, sqlite3
|
import os, sys, time, sqlite3
|
||||||
|
|
||||||
CONFIG = """\
|
CONFIG = """\
|
||||||
|
|
|
@ -7,7 +7,6 @@ Use the following in /etc/munin/plugin-conf.d/wormhole :
|
||||||
env.usagedb /path/to/your/wormhole/server/usage.sqlite
|
env.usagedb /path/to/your/wormhole/server/usage.sqlite
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
import os, sys, time, sqlite3
|
import os, sys, time, sqlite3
|
||||||
|
|
||||||
CONFIG = """\
|
CONFIG = """\
|
||||||
|
|
|
@ -7,7 +7,6 @@ Use the following in /etc/munin/plugin-conf.d/wormhole :
|
||||||
env.usagedb /path/to/your/wormhole/server/usage.sqlite
|
env.usagedb /path/to/your/wormhole/server/usage.sqlite
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
import os, sys, time, sqlite3
|
import os, sys, time, sqlite3
|
||||||
|
|
||||||
CONFIG = """\
|
CONFIG = """\
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
from __future__ import unicode_literals
|
|
||||||
import os
|
import os
|
||||||
import sqlite3
|
import sqlite3
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
from __future__ import unicode_literals, print_function
|
|
||||||
from twisted.trial import unittest
|
from twisted.trial import unittest
|
||||||
from .. import server_tap
|
from .. import server_tap
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
from __future__ import print_function, unicode_literals
|
|
||||||
import os
|
import os
|
||||||
from twisted.python import filepath
|
from twisted.python import filepath
|
||||||
from twisted.trial import unittest
|
from twisted.trial import unittest
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
from __future__ import print_function, unicode_literals
|
|
||||||
try:
|
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
except ImportError:
|
|
||||||
import mock
|
|
||||||
from twisted.trial import unittest
|
from twisted.trial import unittest
|
||||||
from ..increase_rlimits import increase_rlimits
|
from ..increase_rlimits import increase_rlimits
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
from __future__ import unicode_literals, print_function
|
|
||||||
from twisted.trial import unittest
|
from twisted.trial import unittest
|
||||||
try:
|
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
except ImportError:
|
|
||||||
import mock
|
|
||||||
from twisted.application.service import MultiService
|
from twisted.application.service import MultiService
|
||||||
from autobahn.twisted.websocket import WebSocketServerFactory
|
from autobahn.twisted.websocket import WebSocketServerFactory
|
||||||
from .. import server_tap
|
from .. import server_tap
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
from __future__ import print_function, unicode_literals
|
|
||||||
import os, io, json
|
import os, io, json
|
||||||
try:
|
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
except ImportError:
|
|
||||||
import mock
|
|
||||||
from twisted.trial import unittest
|
from twisted.trial import unittest
|
||||||
from ..transit_server import Transit
|
from ..transit_server import Transit
|
||||||
from ..usage import create_usage_tracker
|
from ..usage import create_usage_tracker
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
from __future__ import print_function, unicode_literals
|
|
||||||
from binascii import hexlify
|
from binascii import hexlify
|
||||||
from twisted.trial import unittest
|
from twisted.trial import unittest
|
||||||
from twisted.test import iosim
|
from twisted.test import iosim
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
from __future__ import print_function, unicode_literals
|
|
||||||
import re
|
import re
|
||||||
import time
|
import time
|
||||||
from twisted.python import log
|
from twisted.python import log
|
||||||
|
@ -69,10 +68,7 @@ class TransitConnection(LineReceiver):
|
||||||
)
|
)
|
||||||
self._state.connection_made(self)
|
self._state.connection_made(self)
|
||||||
## self._log_requests = self.factory._log_requests
|
## self._log_requests = self.factory._log_requests
|
||||||
try:
|
|
||||||
self.transport.setTcpKeepAlive(True)
|
self.transport.setTcpKeepAlive(True)
|
||||||
except AttributeError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
# uncomment to turn on state-machine tracing
|
# uncomment to turn on state-machine tracing
|
||||||
# def tracer(oldstate, theinput, newstate):
|
# def tracer(oldstate, theinput, newstate):
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -4,7 +4,7 @@
|
||||||
# and then run "tox" from this directory.
|
# and then run "tox" from this directory.
|
||||||
|
|
||||||
[tox]
|
[tox]
|
||||||
envlist = {py27,py35,py36,py37,pypy}
|
envlist = {py37,py38,py39,py310,pypy}
|
||||||
skip_missing_interpreters = True
|
skip_missing_interpreters = True
|
||||||
minversion = 2.4.0
|
minversion = 2.4.0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user