drop python2 support

Graphics / Mesa 3D Graphics Library / Piglit - Dylan Baker [pnwbakers.com] - 13 February 2020 19:09 UTC

This removes all of the python code for handling python 2.x vs 3.x, now only 3.6+ is supported. This also drops all uses of the six module, as its no longer needed.

Python 2.x and <= 3.5 are all EOL, it doesn't make sense to continue to support version of python that are at the end of their lives and are being removed from operating systems.

19eb8323c drop python2 support
CMakeLists.txt | 12 +-
README.md | 12 +-
framework/backends/__init__.py | 9 +-
framework/backends/abstract.py | 10 +-
framework/backends/compression.py | 152 +++------------------
framework/backends/json.py | 22 ++-
framework/backends/junit.py | 21 ++-
framework/backends/register.py | 5 +-
framework/compat.py | 76 -----------
framework/core.py | 8 +-
framework/dmesg.py | 12 +-
framework/driver_classifier.py | 4 +-
framework/exceptions.py | 11 +-
framework/grouptools.py | 13 +-
framework/log.py | 15 +-
framework/monitoring.py | 15 +-
framework/options.py | 9 +-
framework/profile.py | 20 +--
framework/programs/parsers.py | 2 +-
framework/programs/print_commands.py | 7 +-
framework/programs/run.py | 7 +-
framework/programs/summary.py | 7 +-
framework/results.py | 32 ++---
framework/status.py | 33 ++---
framework/summary/common.py | 12 +-
framework/summary/console_.py | 8 +-
framework/summary/feature.py | 6 +-
framework/summary/html_.py | 8 +-
framework/test/__init__.py | 3 -
framework/test/base.py | 131 ++++++------------
framework/test/deqp.py | 13 +-
framework/test/glsl_parser_test.py | 7 +-
framework/test/gtest.py | 5 +-
framework/test/oclconform.py | 5 +-
framework/test/opencv.py | 5 +-
framework/test/opengl.py | 7 +-
framework/test/piglit_test.py | 7 +-
framework/test/shader_test.py | 5 +-
framework/wflinfo.py | 7 +-
generated_tests/builtin_function.py | 2 -
generated_tests/builtin_function_fp64.py | 2 -
generated_tests/gen_builtin_packing_tests.py | 1 -
generated_tests/gen_builtin_uniform_tests.py | 3 -
generated_tests/gen_builtin_uniform_tests_fp64.py | 3 -
generated_tests/gen_cl_common_builtins.py | 1 -
generated_tests/gen_cl_int_builtins.py | 1 -
generated_tests/gen_cl_math_builtins.py | 1 -
generated_tests/gen_cl_relational_builtins.py | 1 -
generated_tests/gen_cl_shuffle2_builtins.py | 6 +-
generated_tests/gen_cl_shuffle_builtins.py | 6 +-
generated_tests/gen_cl_store_tests.py | 3 -
generated_tests/gen_cl_vload_tests.py | 3 -
generated_tests/gen_cl_vstore_tests.py | 3 -
generated_tests/gen_const_builtin_equal_tests.py | 1 -
generated_tests/gen_constant_array_size_tests.py | 3 -
.../gen_constant_array_size_tests_fp64.py | 3 -
generated_tests/gen_conversion.py | 1 -
generated_tests/gen_extensions_defined.py | 3 -
.../gen_flat_interpolation_qualifier.py | 1 -
generated_tests/gen_gpu_shader4_tests.py | 1 -
generated_tests/gen_inout_fp64.py | 1 -
.../gen_intel_shader_integer_functions2_tests.py | 4 +-
generated_tests/gen_interpolation_tests.py | 3 -
generated_tests/gen_non-lvalue_tests.py | 1 -
generated_tests/gen_outerproduct_invalid_params.py | 1 -
generated_tests/gen_outerproduct_tests.py | 3 -
generated_tests/gen_shader_bit_encoding_tests.py | 9 +-
.../gen_shader_framebuffer_fetch_tests.py | 2 -
.../gen_shader_image_load_store_tests.py | 1 -
generated_tests/gen_shader_precision_tests.py | 6 +-
generated_tests/gen_tcs_input_tests.py | 3 -
generated_tests/gen_tes_input_tests.py | 3 -
generated_tests/gen_texture_lod_tests.py | 1 -
generated_tests/gen_texture_query_lod_tests.py | 7 +-
generated_tests/gen_uniform_initializer_tests.py | 3 -
generated_tests/gen_variable_index_read_tests.py | 3 -
generated_tests/gen_variable_index_write_tests.py | 6 -
generated_tests/gen_vp_tex.py | 3 -
generated_tests/gen_vs_in_fp64.py | 3 -
generated_tests/genclbuiltins.py | 5 +-
.../interpolation-qualifier-built-in-variable.py | 1 -
generated_tests/modules/__init__.py | 2 -
generated_tests/modules/glsl.py | 11 +-
generated_tests/modules/types.py | 8 +-
generated_tests/modules/utils.py | 1 -
generated_tests/random_ubo.py | 1 -
generated_tests/random_ubo_trim.py | 1 -
.../fs_pack.shader_test.mako | 1 -
.../fs_unpack.shader_test.mako | 1 -
.../vs_pack.shader_test.mako | 1 -
.../vs_unpack.shader_test.mako | 1 -
.../templates/gen_conversion/execution_base.mako | 1 -
.../absoluteDifference.shader_test.mako | 1 -
.../addSaturate.shader_test.mako | 1 -
.../countLeadingZeros.shader_test.mako | 1 -
.../multiply32x16.shader_test.mako | 1 -
.../subtractSaturate.shader_test.mako | 1 -
.../template.shader_test.mako | 4 -
.../template.shader_test.mako | 3 +-
.../templates/gen_shader_precision_tests/fs.mako | 3 -
.../templates/gen_shader_precision_tests/gs.mako | 3 -
.../templates/gen_shader_precision_tests/vs.mako | 3 -
.../gen_variable_index_read_tests/helpers.mako | 4 +-
.../gen_variable_index_write_tests/helpers.mako | 6 +-
.../gen_vs_in_fp64/columns.shader_test.mako | 2 -
.../gen_vs_in_fp64/regular.shader_test.mako | 2 -
piglit | 12 +-
piglit-print-commands.py | 12 +-
piglit-resume.py | 12 +-
piglit-run.py | 14 +-
piglit-summary-html.py | 14 +-
piglit-summary.py | 14 +-
registry/gl.py | 22 +--
templates/feature.mako | 3 -
templates/index.mako | 9 +-
templates/testrun_info.mako | 3 -
tests/crucible.py | 8 +-
tests/cts_gl.py | 5 +-
tests/cts_gl45.py | 5 +-
tests/cts_gles.py | 5 +-
tests/deqp_egl.py | 6 +-
tests/deqp_gles2.py | 6 +-
tests/deqp_gles3.py | 5 +-
tests/deqp_gles31.py | 6 +-
tests/deqp_vk.py | 5 +-
tests/find_static_tests.py | 13 +-
tests/glslparser.py | 3 -
tests/gtf_gl.py | 5 +-
tests/gtf_gles.py | 5 +-
tests/igt.py | 4 -
tests/khr_gl.py | 3 -
tests/khr_gl45.py | 3 -
tests/khr_gles.py | 3 -
tests/khr_noctx.py | 3 -
tests/llvmpipe_gl.py | 4 -
tests/no_error.py | 9 +-
tests/oglconform.py | 3 -
tests/opencl_foreign.py | 4 -
tests/opengl.py | 5 -
tests/quick_gl.py | 4 -
tests/quick_shader.py | 3 -
tests/sanity.py | 3 -
tests/serializer.py | 6 +-
tests/shader.py | 8 +-
tests/util/gen_dispatch.py | 14 +-
tests/vulkan.py | 4 -
tests/xts-render.py | 4 -
tests/xts.py | 3 -
unittests/framework/backends/shared.py | 6 +-
unittests/framework/backends/test_compression.py | 44 ++----
unittests/framework/backends/test_json.py | 31 ++---
unittests/framework/backends/test_json_update.py | 5 +-
unittests/framework/backends/test_junit.py | 44 +++---
unittests/framework/backends/test_package.py | 17 +--
unittests/framework/skip.py | 8 +-
unittests/framework/summary/test_common.py | 7 +-
unittests/framework/summary/test_console.py | 9 +-
unittests/framework/summary/test_feature.py | 10 +-
unittests/framework/summary/test_html.py | 9 +-
unittests/framework/test/test_base.py | 27 ++--
unittests/framework/test/test_deqp.py | 10 +-
unittests/framework/test/test_glsl_parser_test.py | 70 +++++-----
unittests/framework/test/test_gtest.py | 7 +-
unittests/framework/test/test_opencv.py | 6 +-
unittests/framework/test/test_opengl.py | 5 +-
unittests/framework/test/test_piglit_test.py | 6 +-
unittests/framework/test/test_shader_test.py | 28 ++--
unittests/framework/test_core.py | 21 ++-
unittests/framework/test_dmesg.py | 28 +---
unittests/framework/test_driver_classifier.py | 10 +-
unittests/framework/test_exceptions.py | 6 +-
unittests/framework/test_grouptools.py | 2 +-
unittests/framework/test_log.py | 13 +-
unittests/framework/test_monitoring.py | 19 +--
unittests/framework/test_options.py | 6 +-
unittests/framework/test_profile.py | 11 +-
unittests/framework/test_results.py | 11 +-
unittests/framework/test_status.py | 10 +-
unittests/framework/test_wflinfo.py | 5 +-
unittests/framework/utils.py | 6 +-
unittests/generators/test_generators.py | 7 +-
unittests/generators/test_glsl.py | 12 +-
unittests/generators/test_types.py | 7 +-
unittests/suites/test_integration.py | 5 +-
unittests/suites/test_native.py | 5 +-
unittests/suites/test_oglconform.py | 11 +-
186 files changed, 405 insertions(+), 1346 deletions(-)

Upstream: cgit.freedesktop.org


  • Share