diff --git a/MANIFEST.in b/MANIFEST.in index c4627c7..6b83df5 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,3 @@ include LICENSE include README.md -recursive-include share +recursive-include share * diff --git a/setup.py b/setup.py index b2f4bad..62b1813 100644 --- a/setup.py +++ b/setup.py @@ -3,11 +3,10 @@ import os import setuptools -requires = ['gi', +requires = [ 'python-xlib', 'pyaudio', 'psutil', - 'jzstock', 'babel'] @@ -16,6 +15,12 @@ here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.md')) as f: long_description = '\n' + f.read() +def _data_files(path): + for root, dirs, files in os.walk(path): + if not files: + continue + yield (root, [os.path.join(root, f) for f in files]) + setuptools.setup( name="safeeyes", version="1.1.9", @@ -31,6 +36,8 @@ setuptools.setup( 'config/lang/*.json', 'glade/*.glade', 'resource/*']}, + data_files=list(_data_files( + os.path.join(os.path.dirname(__file__), 'share'))), install_requires=requires, entry_points={'console_scripts': ['safeeyes = safeeyes.safeeyes:main']}, keywords='linux utility health eye-strain safe-eyes', diff --git a/share/applications/safeeyes.desktop b/share/applications/safeeyes.desktop index d97bfcf..2a970b0 100755 --- a/share/applications/safeeyes.desktop +++ b/share/applications/safeeyes.desktop @@ -11,9 +11,9 @@ Comment[ta]=உங்கள் கண்களை சோர்வடையாத Comment[pt]=Proteja seus olhos da tensão ocular Comment[tr]=Gözünüzü yorgunluğa karşı koruyun Comment[hi]=तनाव से आंखों की रक्षा -Exec=/opt/safeeyes/safeeyes +Exec=safeeyes Icon=safeeyes -Version=1.1.8 +Version=1.2 Terminal=false Type=Application Categories=Utility;