Merge pull request #22 from meejah/drop-python2

Drop python2
This commit is contained in:
meejah 2021-04-15 12:10:16 -06:00 committed by GitHub
commit 0de4f23a29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 10 additions and 32 deletions

View File

@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
python-version: [3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2

View File

@ -1,5 +1,9 @@
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)
* listen on IPv4+IPv6 properly (#12)

View File

@ -18,7 +18,6 @@ The resuting "usage.sqlite" should be passed into --usage-db=, e.g. "twist
transitrelay --usage=.../PATH/TO/usage.sqlite".
"""
from __future__ import unicode_literals, print_function
import sys
from wormhole_transit_relay.database import open_existing_db, create_db

View File

@ -7,7 +7,6 @@ Use the following in /etc/munin/plugin-conf.d/wormhole :
env.usagedb /path/to/your/wormhole/server/usage.sqlite
"""
from __future__ import print_function
import os, sys, time, sqlite3
CONFIG = """\

View File

@ -7,7 +7,6 @@ Use the following in /etc/munin/plugin-conf.d/wormhole :
env.usagedb /path/to/your/wormhole/server/usage.sqlite
"""
from __future__ import print_function
import os, sys, time, sqlite3
CONFIG = """\

View File

@ -7,7 +7,6 @@ Use the following in /etc/munin/plugin-conf.d/wormhole :
env.usagedb /path/to/your/wormhole/server/usage.sqlite
"""
from __future__ import print_function
import os, sys, time, sqlite3
CONFIG = """\

View File

@ -7,7 +7,6 @@ Use the following in /etc/munin/plugin-conf.d/wormhole :
env.usagedb /path/to/your/wormhole/server/usage.sqlite
"""
from __future__ import print_function
import os, sys, time, sqlite3
CONFIG = """\

View File

@ -7,7 +7,6 @@ Use the following in /etc/munin/plugin-conf.d/wormhole :
env.usagedb /path/to/your/wormhole/server/usage.sqlite
"""
from __future__ import print_function
import os, sys, time, sqlite3
CONFIG = """\

View File

@ -1,4 +1,3 @@
from __future__ import unicode_literals
import os
import sqlite3
import tempfile

View File

@ -1,4 +1,3 @@
from __future__ import unicode_literals, print_function
from twisted.trial import unittest
from .. import server_tap

View File

@ -1,4 +1,3 @@
from __future__ import print_function, unicode_literals
import os
from twisted.python import filepath
from twisted.trial import unittest

View File

@ -1,8 +1,4 @@
from __future__ import print_function, unicode_literals
try:
from unittest import mock
except ImportError:
import mock
from twisted.trial import unittest
from ..increase_rlimits import increase_rlimits

View File

@ -1,9 +1,5 @@
from __future__ import unicode_literals, print_function
from twisted.trial import unittest
try:
from unittest import mock
except ImportError:
import mock
from twisted.application.service import MultiService
from .. import server_tap

View File

@ -1,9 +1,5 @@
from __future__ import print_function, unicode_literals
import os, io, json, sqlite3
try:
from unittest import mock
except ImportError:
import mock
from twisted.trial import unittest
from ..transit_server import Transit
from .. import database

View File

@ -1,4 +1,3 @@
from __future__ import print_function, unicode_literals
from binascii import hexlify
from twisted.trial import unittest
from .common import ServerBase

View File

@ -1,4 +1,3 @@
from __future__ import print_function, unicode_literals
import re, time, json
from collections import defaultdict
from twisted.python import log
@ -52,10 +51,7 @@ class TransitConnection(LineReceiver):
def connectionMade(self):
self._started = time.time()
self._log_requests = self.factory._log_requests
try:
self.transport.setTcpKeepAlive(True)
except AttributeError:
pass
def lineReceived(self, line):
# old: "please relay {64}\n"

View File

@ -4,7 +4,7 @@
# and then run "tox" from this directory.
[tox]
envlist = {py27,py35,py36,py37,pypy}
envlist = {py37,py38,py39,py310,pypy}
skip_missing_interpreters = True
minversion = 2.4.0