浏览代码

package/python-treq: drop python2 support

Fixes:
http://autobuild.buildroot.net/results/94e/94e009e322787bbcaac3704b64218cefe77b0f56/

Treq is built on top of twisted, which is python3 only since commit
f1db1922e460d4f (package/python-twisted: Needs python 3), so propagate the
python3 dependency.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Peter Korsgaard 3 年之前
父节点
当前提交
294b6e050d
共有 2 个文件被更改,包括 1 次插入9 次删除
  1. 1 0
      package/python-treq/Config.in
  2. 0 9
      support/testing/tests/package/test_python_treq.py

+ 1 - 0
package/python-treq/Config.in

@@ -1,6 +1,7 @@
 config BR2_PACKAGE_PYTHON_TREQ
 	bool "python-treq"
 	depends on BR2_INSTALL_LIBSTDCPP # python-pyopenssl
+	depends on BR2_PACKAGE_PYTHON3 # python-twisted
 	select BR2_PACKAGE_PYTHON_ATTRS # runtime
 	select BR2_PACKAGE_PYTHON_IDNA # runtime
 	select BR2_PACKAGE_PYTHON_INCREMENTAL # runtime

+ 0 - 9
support/testing/tests/package/test_python_treq.py

@@ -12,15 +12,6 @@ class TestPythonTreq(TestPythonPackageBase):
         self.assertEqual(exit_code, 0)
 
 
-class TestPythonPy2Treq(TestPythonTreq):
-    __test__ = True
-    config = TestPythonTreq.config + \
-        """
-        BR2_PACKAGE_PYTHON=y
-        BR2_PACKAGE_PYTHON_TREQ=y
-        """
-
-
 class TestPythonPy3Treq(TestPythonTreq):
     __test__ = True
     config = TestPythonTreq.config + \