uvex_transients.utils.updates#

Warn when the installed UVEX Transients is older than the latest GitHub release.

The check never delays or breaks an import. Importing the package only reads a small cache file (update_check.json in the package cache directory) and warns if that file records a newer release than the one installed. When the cache is older than system.update_check.interval_hours, a background thread refreshes it from the GitHub releases API, so a newly published release is reported the next time the package is imported. Any network or file problem is swallowed.

Turn the check off with system.update_check.enabled: false in the config, or by setting the UVEX_TRANSIENTS_NO_UPDATE_CHECK environment variable. Development builds (versions containing .dev) are never checked.

Attributes

DISABLE_ENV_VAR

Setting this environment variable (to anything) turns the update check off.

Functions

check_for_updates([background])

Warn if the cached latest release is newer than the installed version, refreshing a stale cache.

Exceptions

OutdatedVersionWarning

Warning issued when a newer UVEX Transients release than the installed one exists.