From 0d7bb776e2d97d406b726b90090bbfa8df13232b Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 30 Jun 2024 13:16:42 +0300 Subject: Move OptionKey in the option source file. --- unittests/allplatformstests.py | 3 ++- unittests/datatests.py | 5 ++--- unittests/helpers.py | 3 ++- unittests/internaltests.py | 4 ++-- unittests/linuxliketests.py | 3 ++- unittests/windowstests.py | 3 ++- 6 files changed, 12 insertions(+), 9 deletions(-) (limited to 'unittests') diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py index e912e94..5e16353 100644 --- a/unittests/allplatformstests.py +++ b/unittests/allplatformstests.py @@ -31,9 +31,10 @@ from mesonbuild.mesonlib import ( BuildDirLock, MachineChoice, is_windows, is_osx, is_cygwin, is_dragonflybsd, is_sunos, windows_proof_rmtree, python_command, version_compare, split_args, quote_arg, relpath, is_linux, git, search_version, do_conf_file, do_conf_str, default_prefix, - MesonException, EnvironmentException, OptionKey, + MesonException, EnvironmentException, windows_proof_rm ) +from mesonbuild.options import OptionKey from mesonbuild.programs import ExternalProgram from mesonbuild.compilers.mixins.clang import ClangCompiler diff --git a/unittests/datatests.py b/unittests/datatests.py index b7b2d32..73b937d 100644 --- a/unittests/datatests.py +++ b/unittests/datatests.py @@ -18,9 +18,8 @@ import mesonbuild.options import mesonbuild.modules.gnome from mesonbuild.interpreter import Interpreter from mesonbuild.ast import AstInterpreter -from mesonbuild.mesonlib import ( - MachineChoice, OptionKey -) +from mesonbuild.mesonlib import MachineChoice +from mesonbuild.options import OptionKey from mesonbuild.compilers import ( detect_c_compiler, detect_cpp_compiler ) diff --git a/unittests/helpers.py b/unittests/helpers.py index 7483f51..7612413 100644 --- a/unittests/helpers.py +++ b/unittests/helpers.py @@ -11,9 +11,10 @@ from contextlib import contextmanager from mesonbuild.compilers import detect_c_compiler, compiler_from_language from mesonbuild.mesonlib import ( - MachineChoice, is_osx, is_cygwin, EnvironmentException, OptionKey, MachineChoice, + MachineChoice, is_osx, is_cygwin, EnvironmentException, MachineChoice, OrderedSet ) +from mesonbuild.options import OptionKey from run_tests import get_fake_env diff --git a/unittests/internaltests.py b/unittests/internaltests.py index 2c3bcfd..109f28c 100644 --- a/unittests/internaltests.py +++ b/unittests/internaltests.py @@ -32,9 +32,9 @@ from mesonbuild.interpreterbase import typed_pos_args, InvalidArguments, ObjectH from mesonbuild.interpreterbase import typed_pos_args, InvalidArguments, typed_kwargs, ContainerTypeInfo, KwargInfo from mesonbuild.mesonlib import ( LibType, MachineChoice, PerMachine, Version, is_windows, is_osx, - is_cygwin, is_openbsd, search_version, MesonException, OptionKey, - OptionType + is_cygwin, is_openbsd, search_version, MesonException, ) +from mesonbuild.options import OptionKey, OptionType from mesonbuild.interpreter.type_checking import in_set_validator, NoneType from mesonbuild.dependencies.pkgconfig import PkgConfigDependency, PkgConfigInterface, PkgConfigCLI from mesonbuild.programs import ExternalProgram diff --git a/unittests/linuxliketests.py b/unittests/linuxliketests.py index ea86784..6a751dd 100644 --- a/unittests/linuxliketests.py +++ b/unittests/linuxliketests.py @@ -25,8 +25,9 @@ import mesonbuild.modules.gnome from mesonbuild.mesonlib import ( MachineChoice, is_windows, is_osx, is_cygwin, is_openbsd, is_haiku, is_sunos, windows_proof_rmtree, version_compare, is_linux, - OptionKey, EnvironmentException + EnvironmentException ) +from mesonbuild.options import OptionKey from mesonbuild.compilers import ( detect_c_compiler, detect_cpp_compiler, compiler_from_language, ) diff --git a/unittests/windowstests.py b/unittests/windowstests.py index fc56eaa..8448ab1 100644 --- a/unittests/windowstests.py +++ b/unittests/windowstests.py @@ -17,8 +17,9 @@ import mesonbuild.coredata import mesonbuild.modules.gnome from mesonbuild.mesonlib import ( MachineChoice, is_windows, is_cygwin, python_command, version_compare, - EnvironmentException, OptionKey + EnvironmentException ) +from mesonbuild.options import OptionKey from mesonbuild.compilers import ( detect_c_compiler, detect_d_compiler, compiler_from_language, ) -- cgit v1.1