From 9f27c1943b83891891973e655a700886e357a1ca Mon Sep 17 00:00:00 2001 From: Brian May Date: Thu, 21 May 2020 07:18:40 +1000 Subject: [PATCH] Updated supported Python versions * Drop 2.7 * Add 3.7 and 3.8 --- .travis.yml | 10 ++++------ docs/requirements.rst | 10 +--------- run | 2 -- setup.py | 4 +++- tox.ini | 11 ++++------- 5 files changed, 12 insertions(+), 25 deletions(-) diff --git a/.travis.yml b/.travis.yml index bf2bf7c..22959fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,16 +2,14 @@ language: python matrix: include: - - python: 2.7 - env: TOXENV=py27 - - python: 3.4 - env: TOXENV=py34 - python: 3.5 env: TOXENV=py35 - python: 3.6 env: TOXENV=py36 - - python: pypy - env: TOXENV=pypy + - python: 3.7 + env: TOXENV=py37 + - python: 3.8 + env: TOXENV=py38 install: - pip install tox diff --git a/docs/requirements.rst b/docs/requirements.rst index 719594f..0631d66 100644 --- a/docs/requirements.rst +++ b/docs/requirements.rst @@ -6,7 +6,7 @@ Client side Requirements - sudo, or root access on your client machine. (The server doesn't need admin access.) -- Python 2.7 or Python 3.5. +- Python 3.5 or greater. Linux with NAT method @@ -32,14 +32,6 @@ Supports: * IPv6 UDP (requires ``recvmsg`` - see below) * IPv6 DNS (requires ``recvmsg`` - see below) -.. _PyXAPI: http://www.pps.univ-paris-diderot.fr/~ylg/PyXAPI/ - -Full UDP or DNS support with the TPROXY method requires the ``recvmsg()`` -syscall. This is not available in Python 2, however it is in Python 3.5 and -later. Under Python 2 you might find it sufficient to install PyXAPI_ in -order to get the ``recvmsg()`` function. See :doc:`tproxy` for more -information. - MacOS / FreeBSD / OpenBSD / pfSense ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/run b/run index c2c1a33..52f28c2 100755 --- a/run +++ b/run @@ -7,8 +7,6 @@ python_best_version() { if [ -x "$(command -v python3)" ] && python3 -c "import sys; sys.exit(not sys.version_info > (3, 5))"; then exec python3 "$@" - elif [ -x "$(command -v python2.7)" ]; then - exec python2.7 "$@" else exec python "$@" fi diff --git a/setup.py b/setup.py index 5d71237..b44bdb6 100755 --- a/setup.py +++ b/setup.py @@ -48,8 +48,10 @@ setup( "License :: OSI Approved :: " "GNU Lesser General Public License v2 or later (LGPLv2+)", "Operating System :: OS Independent", - "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", "Topic :: System :: Networking", ], scripts=['bin/sudoers-add'], diff --git a/tox.ini b/tox.ini index 2a94607..0400131 100644 --- a/tox.ini +++ b/tox.ini @@ -1,19 +1,16 @@ [tox] downloadcache = {toxworkdir}/cache/ envlist = - py27, - py34, py35, py36, - pypy, + py37, + py38, [testenv] basepython = - py27: python2.7 - py34: python3.4 - py35: python3.5 py36: python3.6 - pypy: pypy + py37: python3.7 + py38: python3.8 commands = pip install -e . # actual flake8 test