spack/lib/spack
Massimiliano Culpo b8e3246e89
llnl.util.lang: add classes to help with deprecations (#47279)
* Add a descriptor to have a class level constant

This descriptor helps intercept places where we set a value on instances.
It does not really behave like "const" in C-like languages, but is the
simplest implementation that might still be useful.

* Add a descriptor to deprecate properties/attributes of an object

This descriptor is used as a base class. Derived classes may implement a
factory to return an adaptor to the attribute being deprecated. The
descriptor can either warn, or raise an error, when usage of the deprecated
attribute is intercepted.

---------

Co-authored-by: Harmen Stoppels <me@harmenstoppels.nl>
2024-10-29 19:06:26 +01:00
..
docs Add spack short version in config variables (#47016) 2024-10-25 07:34:59 +02:00
env Revert "cc: ensure that RPATHs passed to linker are unique" (#46712) 2024-10-02 11:50:09 +02:00
external archspec: update to v0.2.5 (#46958) 2024-10-14 19:09:17 +02:00
llnl llnl.util.lang: add classes to help with deprecations (#47279) 2024-10-29 19:06:26 +01:00
spack llnl.util.lang: add classes to help with deprecations (#47279) 2024-10-29 19:06:26 +01:00
spack_installable Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00