aboutsummaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2024-06-30 13:16:42 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2024-07-11 11:53:39 +0300
commit0d7bb776e2d97d406b726b90090bbfa8df13232b (patch)
tree78817e1840f0741439871682b3c25a1e40a3067f /unittests
parentc2552527fb2f607052c7aed633b67dbb19f06e38 (diff)
downloadmeson-0d7bb776e2d97d406b726b90090bbfa8df13232b.zip
meson-0d7bb776e2d97d406b726b90090bbfa8df13232b.tar.gz
meson-0d7bb776e2d97d406b726b90090bbfa8df13232b.tar.bz2
Move OptionKey in the option source file.
Diffstat (limited to 'unittests')
-rw-r--r--unittests/allplatformstests.py3
-rw-r--r--unittests/datatests.py5
-rw-r--r--unittests/helpers.py3
-rw-r--r--unittests/internaltests.py4
-rw-r--r--unittests/linuxliketests.py3
-rw-r--r--unittests/windowstests.py3
6 files changed, 12 insertions, 9 deletions
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,
)