Merge pull request #97 from hartwork/packaging-improvements

Packaging improvements
This commit is contained in:
Gobinath 2017-03-15 10:40:18 -07:00 committed by GitHub
commit f9ef884306
3 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,3 @@
include LICENSE
include README.md
recursive-include share
recursive-include share *

View File

@ -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',

View File

@ -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;