aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar James Hilliard <james.hilliard1@gmail.com>2020-04-07 18:09:48 -0600
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2020-04-08 22:55:07 +0200
commit8a99ce44b43a3cfe0ff5b0c6b1c3fce08857297b (patch)
treeb4b032801036f32506b893e2e2d1debdfa6b8590
parent96dc6701af877a4aa4da20a9e0d5b849cc5c8356 (diff)
downloadbuildroot-refs/heads/master.tar.gz
buildroot-refs/heads/master.tar.bz2
package/python-autobahn: drop python 2 supportHEADmaster
Upstream commit https://github.com/crossbario/autobahn-python/commit/c0223223f865603ce192e6d5cdbcf74849a4cdd8, which has been part of the releases since v20.1.2 has dropped support for Python 2.x. So python-autobahn is now only available for Python 3.x. We therefore remove the Python 2.x autobahn tests, and while at it, drop the python-six dependency, which is no longer needed since upstream commit https://github.com/crossbario/autobahn-python/commit/79bd2ba41b83950614a2928eeda4704c1d149a20, part of the releases since v20.1.3. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--.gitlab-ci.yml1
-rw-r--r--package/python-autobahn/Config.in3
-rw-r--r--support/testing/tests/package/test_python_autobahn.py10
3 files changed, 2 insertions, 12 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d833ce4555..03ff010fae 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -456,7 +456,6 @@ tests.package.test_python_argh.TestPythonPy2Argh: { extends: .runtime_test }
tests.package.test_python_argh.TestPythonPy3Argh: { extends: .runtime_test }
tests.package.test_python_attrs.TestPythonPy2Attrs: { extends: .runtime_test }
tests.package.test_python_attrs.TestPythonPy3Attrs: { extends: .runtime_test }
-tests.package.test_python_autobahn.TestPythonPy2Autobahn: { extends: .runtime_test }
tests.package.test_python_autobahn.TestPythonPy3Autobahn: { extends: .runtime_test }
tests.package.test_python_automat.TestPythonPy2Automat: { extends: .runtime_test }
tests.package.test_python_automat.TestPythonPy3Automat: { extends: .runtime_test }
diff --git a/package/python-autobahn/Config.in b/package/python-autobahn/Config.in
index ba54d8b12f..78b16897bc 100644
--- a/package/python-autobahn/Config.in
+++ b/package/python-autobahn/Config.in
@@ -1,8 +1,8 @@
config BR2_PACKAGE_PYTHON_AUTOBAHN
bool "python-autobahn"
depends on BR2_INSTALL_LIBSTDCPP # python-cryptography -> python-pyasn
+ depends on BR2_PACKAGE_PYTHON3
select BR2_PACKAGE_PYTHON_CRYPTOGRAPHY # runtime
- select BR2_PACKAGE_PYTHON_SIX # runtime
select BR2_PACKAGE_PYTHON_TXAIO # runtime
help
WebSocket client and server library, WAMP real-time
@@ -12,3 +12,4 @@ config BR2_PACKAGE_PYTHON_AUTOBAHN
comment "python-autobahn needs a toolchain w/ C++"
depends on !BR2_INSTALL_LIBSTDCPP
+ depends on BR2_PACKAGE_PYTHON3
diff --git a/support/testing/tests/package/test_python_autobahn.py b/support/testing/tests/package/test_python_autobahn.py
index af1f617d6d..a237ce465d 100644
--- a/support/testing/tests/package/test_python_autobahn.py
+++ b/support/testing/tests/package/test_python_autobahn.py
@@ -1,16 +1,6 @@
from tests.package.test_python import TestPythonPackageBase
-class TestPythonPy2Autobahn(TestPythonPackageBase):
- __test__ = True
- config = TestPythonPackageBase.config + \
- """
- BR2_PACKAGE_PYTHON=y
- BR2_PACKAGE_PYTHON_AUTOBAHN=y
- """
- sample_scripts = ["tests/package/sample_python_autobahn.py"]
-
-
class TestPythonPy3Autobahn(TestPythonPackageBase):
__test__ = True
config = TestPythonPackageBase.config + \