Added codename.

This commit is contained in:
Andrew Dunai 2018-01-30 16:26:20 +02:00
parent 895383ce16
commit cccc97522b
3 changed files with 11 additions and 2 deletions

View file

@ -1,8 +1,15 @@
"""
Predefined values.
"""
try:
from codename import codename
except ImportError:
codename = None
APP_NAME = 'Clay Player'
VERSION = '0.5.2'
VERSION = '0.5.3'
if codename is not None:
VERSION += '-' + codename(separator='-', id=VERSION)
USER_AGENT = ' '.join([
'Mozilla/5.0 (X11; Linux x86_64)'
'AppleWebKit/537.36 (KHTML, like Gecko)'

View file

@ -1,3 +1,4 @@
gmusicapi==10.1.2
PyYAML==3.12
urwid==2.0.0
codename==1.1

View file

@ -13,7 +13,8 @@ setup(
install_required=[
'gmusicapi',
'PyYAML',
'urwid'
'urwid',
'codename'
],
packages=find_packages(),
entry_points={