package/python-txaio: drop python 2 support
authorJames Hilliard <james.hilliard1@gmail.com>
Wed, 8 Apr 2020 00:19:25 +0000 (18:19 -0600)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 11 Apr 2020 12:48:45 +0000 (14:48 +0200)
As of upstream commit 735eb608637e7bbab4082a541ac802cc919fec22,
available since version v20.1.1, support for Python 2.x has been
dropped, and Python >= 3.5 is required. So we make python-txaio depend
on python3, and remove the python2 test of python-txaio.

We also remove the python-six dependency which is no longer used by
txaio, since upstream commit 62b0e7eaa22769687df1de8f57374cb0a42bdc4d.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Reviewed-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
.gitlab-ci.yml
package/python-txaio/Config.in
support/testing/tests/package/test_python_txaio.py

index 03ff010fae0a74b925cdab392c710e189df42ee6..31d3dac48d75765ddbe3807239be29e998f54536 100644 (file)
@@ -496,7 +496,6 @@ tests.package.test_python_treq.TestPythonPy2Treq: { extends: .runtime_test }
 tests.package.test_python_treq.TestPythonPy3Treq: { extends: .runtime_test }
 tests.package.test_python_twisted.TestPythonPy2Twisted: { extends: .runtime_test }
 tests.package.test_python_twisted.TestPythonPy3Twisted: { extends: .runtime_test }
-tests.package.test_python_txaio.TestPythonPy2Txaio: { extends: .runtime_test }
 tests.package.test_python_txaio.TestPythonPy3Txaio: { extends: .runtime_test }
 tests.package.test_python_txtorcon.TestPythonPy2Txtorcon: { extends: .runtime_test }
 tests.package.test_python_txtorcon.TestPythonPy3Txtorcon: { extends: .runtime_test }
index 9d4238215ecd28e619e803e3b8873c9b0950072f..19a318a9024f6fe114093034d250065cd9217eab 100644 (file)
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_PYTHON_TXAIO
        bool "python-txaio"
-       select BR2_PACKAGE_PYTHON_SIX # runtime
+       depends on BR2_PACKAGE_PYTHON3
        help
          Compatibility API between asyncio/Twisted/Trollius.
 
index 7bff1bc23cd9aa2c36ec44f8c282e22a2d0f1ffd..f1bb2c79a6e37ebc637bbe8c1ae0ef9feef029fb 100644 (file)
@@ -1,17 +1,6 @@
 from tests.package.test_python import TestPythonPackageBase
 
 
-class TestPythonPy2Txaio(TestPythonPackageBase):
-    __test__ = True
-    config = TestPythonPackageBase.config + \
-        """
-        BR2_PACKAGE_PYTHON=y
-        BR2_PACKAGE_PYTHON_TXAIO=y
-        BR2_PACKAGE_PYTHON_TWISTED=y
-        """
-    sample_scripts = ["tests/package/sample_python_txaio_twisted.py"]
-
-
 class TestPythonPy3Txaio(TestPythonPackageBase):
     __test__ = True
     config = TestPythonPackageBase.config + \