diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2024-05-08 08:49:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-08 08:49:14 +0200 |
commit | f5430b16bc18c295743c1fbca878cd98a7de6b21 (patch) | |
tree | 93890ab09e51613d03eb4d2ee509cca630cc694b | |
parent | 2446695113499506db3b9567117b63b0346441c9 (diff) | |
download | spack-f5430b16bc18c295743c1fbca878cd98a7de6b21.tar.gz spack-f5430b16bc18c295743c1fbca878cd98a7de6b21.tar.bz2 spack-f5430b16bc18c295743c1fbca878cd98a7de6b21.tar.xz spack-f5430b16bc18c295743c1fbca878cd98a7de6b21.zip |
Bump removal version in deprecation messages (#44064)
-rw-r--r-- | lib/spack/spack/audit.py | 4 | ||||
-rw-r--r-- | lib/spack/spack/package_base.py | 4 | ||||
-rw-r--r-- | 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 @@ class PackageBase(WindowsRPath, PackageViewMixin, RedistributionMixin, metaclass """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 @@ class PackageBase(WindowsRPath, PackageViewMixin, RedistributionMixin, metaclass """ 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 @@ properties: Dict[str, Any] = { "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: Dict[str, Any] = { "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" |