Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1import logging
2import os
3from threading import Thread
5__version__ = '0.1.0'
7try:
8 os.environ['OUTDATED_IGNORE'] = '1'
9 from outdated import check_outdated # noqa
10except ImportError:
11 check_outdated = None
14def check():
15 try:
16 is_outdated, latest = check_outdated('gds', __version__)
17 if is_outdated:
18 logging.warning(
19 f'The GDS package is out of date. Your version is '
20 f'{__version__}, while the latest version is {latest}.')
21 except Exception:
22 pass
25if check_outdated is not None:
26 thread = Thread(target=check)
27 thread.start()