Bump removal version in deprecation messages (#44064)
This commit is contained in:
parent
4f6adc03cd
commit
8e4dbdc2d7
3 changed files with 6 additions and 6 deletions
|
@ -254,8 +254,8 @@ def _search_duplicate_specs_in_externals(error_cls):
|
||||||
|
|
||||||
@config_packages
|
@config_packages
|
||||||
def _deprecated_preferences(error_cls):
|
def _deprecated_preferences(error_cls):
|
||||||
"""Search package preferences deprecated in v0.21 (and slated for removal in v0.22)"""
|
"""Search package preferences deprecated in v0.21 (and slated for removal in v0.23)"""
|
||||||
# TODO (v0.22): remove this audit as the attributes will not be allowed in config
|
# TODO (v0.23): remove this audit as the attributes will not be allowed in config
|
||||||
errors = []
|
errors = []
|
||||||
packages_yaml = spack.config.CONFIG.get_config("packages")
|
packages_yaml = spack.config.CONFIG.get_config("packages")
|
||||||
|
|
||||||
|
|
|
@ -1240,7 +1240,7 @@ def install_test_root(self):
|
||||||
"""Return the install test root directory."""
|
"""Return the install test root directory."""
|
||||||
tty.warn(
|
tty.warn(
|
||||||
"The 'pkg.install_test_root' property is deprecated with removal "
|
"The 'pkg.install_test_root' property is deprecated with removal "
|
||||||
"expected v0.22. Use 'install_test_root(pkg)' instead."
|
"expected v0.23. Use 'install_test_root(pkg)' instead."
|
||||||
)
|
)
|
||||||
return install_test_root(self)
|
return install_test_root(self)
|
||||||
|
|
||||||
|
@ -1898,7 +1898,7 @@ def cache_extra_test_sources(self, srcs):
|
||||||
"""
|
"""
|
||||||
msg = (
|
msg = (
|
||||||
"'pkg.cache_extra_test_sources(srcs) is deprecated with removal "
|
"'pkg.cache_extra_test_sources(srcs) is deprecated with removal "
|
||||||
"expected in v0.22. Use 'cache_extra_test_sources(pkg, srcs)' "
|
"expected in v0.23. Use 'cache_extra_test_sources(pkg, srcs)' "
|
||||||
"instead."
|
"instead."
|
||||||
)
|
)
|
||||||
warnings.warn(msg)
|
warnings.warn(msg)
|
||||||
|
|
|
@ -141,7 +141,7 @@
|
||||||
"deprecatedProperties": {
|
"deprecatedProperties": {
|
||||||
"properties": ["version"],
|
"properties": ["version"],
|
||||||
"message": "setting version preferences in the 'all' section of packages.yaml "
|
"message": "setting version preferences in the 'all' section of packages.yaml "
|
||||||
"is deprecated and will be removed in v0.22\n\n\tThese preferences "
|
"is deprecated and will be removed in v0.23\n\n\tThese preferences "
|
||||||
"will be ignored by Spack. You can set them only in package-specific sections "
|
"will be ignored by Spack. You can set them only in package-specific sections "
|
||||||
"of the same file.\n",
|
"of the same file.\n",
|
||||||
"error": False,
|
"error": False,
|
||||||
|
@ -197,7 +197,7 @@
|
||||||
"properties": ["target", "compiler", "providers"],
|
"properties": ["target", "compiler", "providers"],
|
||||||
"message": "setting 'compiler:', 'target:' or 'provider:' preferences in "
|
"message": "setting 'compiler:', 'target:' or 'provider:' preferences in "
|
||||||
"a package-specific section of packages.yaml is deprecated, and will be "
|
"a package-specific section of packages.yaml is deprecated, and will be "
|
||||||
"removed in v0.22.\n\n\tThese preferences will be ignored by Spack, and "
|
"removed in v0.23.\n\n\tThese preferences will be ignored by Spack, and "
|
||||||
"can be set only in the 'all' section of the same file. "
|
"can be set only in the 'all' section of the same file. "
|
||||||
"You can run:\n\n\t\t$ spack audit configs\n\n\tto get better diagnostics, "
|
"You can run:\n\n\t\t$ spack audit configs\n\n\tto get better diagnostics, "
|
||||||
"including files:lines where the deprecated attributes are used.\n\n"
|
"including files:lines where the deprecated attributes are used.\n\n"
|
||||||
|
|
Loading…
Reference in a new issue