From 8e4dbdc2d718c87d98b94c8f1921df6ac428bc09 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Wed, 8 May 2024 08:49:14 +0200 Subject: [PATCH] Bump removal version in deprecation messages (#44064) --- lib/spack/spack/audit.py | 4 ++-- lib/spack/spack/package_base.py | 4 ++-- lib/spack/spack/schema/packages.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/spack/spack/audit.py b/lib/spack/spack/audit.py index 6d3a63c8a6..50eb8b8ec5 100644 --- a/lib/spack/spack/audit.py +++ b/lib/spack/spack/audit.py @@ -254,8 +254,8 @@ def _search_duplicate_specs_in_externals(error_cls): @config_packages def _deprecated_preferences(error_cls): - """Search package preferences deprecated in v0.21 (and slated for removal in v0.22)""" - # TODO (v0.22): remove this audit as the attributes will not be allowed in config + """Search package preferences deprecated in v0.21 (and slated for removal in v0.23)""" + # TODO (v0.23): remove this audit as the attributes will not be allowed in config errors = [] packages_yaml = spack.config.CONFIG.get_config("packages") diff --git a/lib/spack/spack/package_base.py b/lib/spack/spack/package_base.py index 7c17c7d02e..46f9860932 100644 --- a/lib/spack/spack/package_base.py +++ b/lib/spack/spack/package_base.py @@ -1240,7 +1240,7 @@ def install_test_root(self): """Return the install test root directory.""" tty.warn( "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) @@ -1898,7 +1898,7 @@ def cache_extra_test_sources(self, srcs): """ msg = ( "'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." ) warnings.warn(msg) diff --git a/lib/spack/spack/schema/packages.py b/lib/spack/spack/schema/packages.py index 492180f70e..847b15d913 100644 --- a/lib/spack/spack/schema/packages.py +++ b/lib/spack/spack/schema/packages.py @@ -141,7 +141,7 @@ "deprecatedProperties": { "properties": ["version"], "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 " "of the same file.\n", "error": False, @@ -197,7 +197,7 @@ "properties": ["target", "compiler", "providers"], "message": "setting 'compiler:', 'target:' or 'provider:' preferences in " "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. " "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"