2017-03-10 23:35:06 +01:00
|
|
|
import os
|
|
|
|
import setuptools
|
|
|
|
|
|
|
|
|
2017-03-14 21:14:58 +01:00
|
|
|
requires = [
|
2017-03-10 23:35:06 +01:00
|
|
|
'python-xlib',
|
|
|
|
'psutil',
|
|
|
|
'babel']
|
|
|
|
|
2017-06-21 21:14:31 +02:00
|
|
|
extras = {
|
|
|
|
'audible_alert': ['pyaudio']
|
|
|
|
}
|
|
|
|
|
2017-03-10 23:35:06 +01:00
|
|
|
|
|
|
|
here = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
|
|
|
with open(os.path.join(here, 'README.md')) as f:
|
|
|
|
long_description = '\n' + f.read()
|
|
|
|
|
2017-03-15 14:43:28 +01:00
|
|
|
def _data_files(path):
|
|
|
|
for root, dirs, files in os.walk(path):
|
|
|
|
if not files:
|
|
|
|
continue
|
2017-04-15 01:37:31 +02:00
|
|
|
yield (os.path.join('/usr', root), [os.path.join(root, f) for f in files])
|
2017-03-15 14:43:28 +01:00
|
|
|
|
2017-03-10 23:35:06 +01:00
|
|
|
setuptools.setup(
|
|
|
|
name="safeeyes",
|
2017-04-28 20:11:52 +02:00
|
|
|
version="1.2.1",
|
2017-03-10 23:35:06 +01:00
|
|
|
description="Protect your eyes from eye strain using this continuous breaks reminder.",
|
|
|
|
long_description=long_description,
|
2017-03-15 01:06:49 +01:00
|
|
|
author="Gobinath Loganathan",
|
2017-03-10 23:35:06 +01:00
|
|
|
author_email="slgobinath@gmail.com",
|
|
|
|
url="https://github.com/slgobinath/SafeEyes",
|
2017-04-28 20:11:52 +02:00
|
|
|
download_url="https://github.com/slgobinath/SafeEyes/archive/v1.2.1.tar.gz",
|
2017-03-10 23:35:06 +01:00
|
|
|
packages=setuptools.find_packages(),
|
|
|
|
package_data={'safeeyes': ['config/*.json',
|
|
|
|
'config/style/*.css',
|
|
|
|
'config/lang/*.json',
|
|
|
|
'glade/*.glade',
|
|
|
|
'resource/*']},
|
2017-04-15 14:54:00 +02:00
|
|
|
data_files=[('/usr/share/applications', ['share/applications/safeeyes.desktop']),
|
|
|
|
('/usr/share/icons/hicolor/16x16/apps', ['share/icons/hicolor/16x16/apps/safeeyes.png']),
|
|
|
|
('/usr/share/icons/hicolor/24x24/apps', ['share/icons/hicolor/24x24/apps/safeeyes.png']),
|
|
|
|
('/usr/share/icons/hicolor/48x48/apps', ['share/icons/hicolor/48x48/apps/safeeyes.png']),
|
|
|
|
('/usr/share/icons/hicolor/32x32/apps', ['share/icons/hicolor/32x32/apps/safeeyes.png']),
|
|
|
|
('/usr/share/icons/hicolor/64x64/apps', ['share/icons/hicolor/64x64/apps/safeeyes.png']),
|
|
|
|
('/usr/share/icons/hicolor/128x128/apps', ['share/icons/hicolor/128x128/apps/safeeyes.png']),
|
|
|
|
('/usr/share/icons/hicolor/48x48/status', ['share/icons/hicolor/48x48/status/safeeyes_enabled.png', 'share/icons/hicolor/48x48/status/safeeyes_disabled.png']),
|
|
|
|
('/usr/share/icons/hicolor/32x32/status', ['share/icons/hicolor/32x32/status/safeeyes_enabled.png', 'share/icons/hicolor/32x32/status/safeeyes_disabled.png']),
|
|
|
|
('/usr/share/icons/hicolor/24x24/status', ['share/icons/hicolor/24x24/status/safeeyes_enabled.png', 'share/icons/hicolor/24x24/status/safeeyes_disabled.png', 'share/icons/hicolor/24x24/status/safeeyes_timer.png']),
|
|
|
|
('/usr/share/icons/hicolor/16x16/status', ['share/icons/hicolor/16x16/status/safeeyes_enabled.png', 'share/icons/hicolor/16x16/status/safeeyes_disabled.png', 'share/icons/hicolor/16x16/status/safeeyes_timer.png'])
|
|
|
|
],
|
2017-03-10 23:35:06 +01:00
|
|
|
install_requires=requires,
|
2017-06-21 21:14:31 +02:00
|
|
|
extras_require=extras,
|
2017-04-11 01:32:43 +02:00
|
|
|
entry_points={'console_scripts': ['safeeyes = safeeyes.__main__:main']},
|
2017-03-10 23:35:06 +01:00
|
|
|
keywords='linux utility health eye-strain safe-eyes',
|
|
|
|
classifiers=[
|
|
|
|
"Operating System :: POSIX :: Linux",
|
|
|
|
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
2017-04-15 00:39:09 +02:00
|
|
|
"Development Status :: 3 - Alpha",
|
2017-03-10 23:35:06 +01:00
|
|
|
"Environment :: X11 Applications :: GTK",
|
|
|
|
"Intended Audience :: End Users/Desktop",
|
2017-04-15 01:17:52 +02:00
|
|
|
"Topic :: Utilities"] + [
|
|
|
|
('Programming Language :: Python :: %s' % x) for x in
|
2017-04-19 20:39:46 +02:00
|
|
|
'3 3.4 3.5 3.6'.split()]
|
2017-03-10 23:35:06 +01:00
|
|
|
)
|