# built documents.
#
# The short X.Y version.
-version = '1.2.7'
+version = '1.2.8'
# The full version, including alpha/beta/rc tags.
-release = '1.2.7'
+release = '1.2.8'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
url = 'https://raw.githubusercontent.com/DTVD/rainbowstream/master/setup.py'
readme = requests.get(url).text
latest = readme.split('version = \'')[1].split('\'')[0]
- if current != latest:
+ g['using_latest'] = current == latest
+ if not g['using_latest']:
notice = light_magenta('RainbowStream latest version is ')
notice += light_green(latest)
notice += light_magenta(' while your current version is ')
notice = light_yellow('You are running latest version (')
notice += light_green(current)
notice += light_yellow(')')
- printNicely(notice)
+ notice += '\n'
except:
pass
sys.exit()
+def changelog_notify():
+ # For v1.2.8. Hardcoded here but will improve later
+ notice = light_yellow('Hey! RS just ')
+ notice += light_green('doubled ')
+ notice += light_yellow('pixels for higher image resolution. Upgrade and try')
+ notice += light_green(' -iot ')
+ notice += light_yellow('and you will like it for sure :)')
+ printNicely(notice)
+
+
def reset():
"""
Reset prefix of line
printNicely(red('Your ~/.rainbow_config.json is messed up:'))
printNicely(red('>>> ' + c['USER_JSON_ERROR']))
printNicely('')
+ if not g['using_latest']:
+ changelog_notify()
printNicely(magenta('Need tips ? Type "h" and hit Enter key!'))
g['reset'] = False
try: