2016-10-04 17:07:19 -04:00
|
|
|
#!/bin/python
|
2017-05-23 11:00:46 -04:00
|
|
|
#https://python-packaging.readthedocs.io/en/latest/minimal.html
|
2017-07-25 11:19:40 -04:00
|
|
|
import os, glob
|
2016-10-04 17:07:19 -04:00
|
|
|
from setuptools import find_packages
|
|
|
|
from setuptools import setup
|
2017-07-25 07:48:55 -04:00
|
|
|
fenrirVersion = '1.5'
|
2017-07-25 11:19:40 -04:00
|
|
|
|
|
|
|
data_files = []
|
2017-07-25 11:22:27 -04:00
|
|
|
directories = glob.glob('config/*/*')
|
2017-07-25 11:19:40 -04:00
|
|
|
for directory in directories:
|
|
|
|
files = glob.glob(directory+'/*')
|
2017-07-25 11:46:38 -04:00
|
|
|
print(directory)
|
2017-07-25 11:19:40 -04:00
|
|
|
destDir = '/etc/fenrir'
|
2017-07-25 11:46:38 -04:00
|
|
|
if 'config/punctuation' in directory :
|
2017-07-25 11:19:40 -04:00
|
|
|
destDir = '/etc/fenrir/punctuation'
|
2017-07-25 11:46:38 -04:00
|
|
|
elif 'config/keyboard' in directory:
|
2017-07-25 11:19:40 -04:00
|
|
|
destDir = '/etc/fenrir/keyboard'
|
2017-07-25 11:46:38 -04:00
|
|
|
elif 'config/settings' in directory:
|
2017-07-25 11:19:40 -04:00
|
|
|
destDir = '/etc/fenrir/settings'
|
2017-07-25 11:46:38 -04:00
|
|
|
elif 'config/scripts' in directory:
|
2017-07-25 11:22:27 -04:00
|
|
|
destDir = '/usr/share/fenrir/scripts'
|
2017-07-25 11:23:52 -04:00
|
|
|
elif 'config/sound' in directory:
|
2017-07-25 11:38:25 -04:00
|
|
|
if "default-wav" in directory:
|
|
|
|
destDir = '/usr/share/sounds/fenrir/default-wav'
|
|
|
|
elif "default" in directory:
|
|
|
|
destDir = '/usr/share/sounds/fenrir/default'
|
|
|
|
elif "template" in directory:
|
|
|
|
destDir = '/usr/share/sounds/fenrir/template'
|
2017-07-25 11:19:40 -04:00
|
|
|
data_files.append((destDir, files))
|
|
|
|
|
2016-10-04 17:07:19 -04:00
|
|
|
def read(fname):
|
|
|
|
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
|
|
|
|
|
|
|
setup(
|
|
|
|
# Application name:
|
|
|
|
name="fenrir",
|
|
|
|
# Version number (initial):
|
2017-07-25 07:48:55 -04:00
|
|
|
version=fenrirVersion,
|
2017-07-25 04:58:37 -04:00
|
|
|
# description
|
|
|
|
description="An TTY Screen Reader For Linux.",
|
|
|
|
long_description=read('README.md'),
|
2017-07-25 07:50:34 -04:00
|
|
|
keywords=['screenreader', 'a11y', 'accessibility', 'terminal', 'TTY', 'console'],
|
2017-07-25 04:58:37 -04:00
|
|
|
license="License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
|
|
|
|
url="https://github.com/chrys87/fenrir/",
|
2017-07-25 07:48:55 -04:00
|
|
|
download_url = 'https://github.com/chrys87/fenrir/archive/' + fenrirVersion + '.tar.gz',
|
2017-07-25 04:58:37 -04:00
|
|
|
classifiers=[
|
|
|
|
"Programming Language :: Python",
|
|
|
|
"Development Status :: 5 - Production/Stable",
|
2017-07-25 07:48:55 -04:00
|
|
|
"Topic :: Multimedia :: Sound/Audio :: Speech",
|
2017-07-25 04:58:37 -04:00
|
|
|
"Environment :: Console",
|
|
|
|
],
|
|
|
|
|
2016-10-04 17:07:19 -04:00
|
|
|
# Application author details:
|
2017-05-25 07:59:59 -04:00
|
|
|
author="Chrys, storm_dragon, Jeremiah and others",
|
2017-07-25 04:58:37 -04:00
|
|
|
author_email="chrysg@linux-a11y.org",
|
2016-10-04 17:07:19 -04:00
|
|
|
|
|
|
|
# Packages
|
2016-10-08 17:47:21 -04:00
|
|
|
packages=find_packages('src/fenrir'),
|
2016-10-05 12:44:49 -04:00
|
|
|
package_dir={'': 'src/fenrir'},
|
2016-11-16 07:43:13 -05:00
|
|
|
scripts=['src/fenrir/fenrir','src/fenrir/fenrir-daemon'],
|
2016-10-04 17:07:19 -04:00
|
|
|
|
|
|
|
# Include additional files into the package
|
|
|
|
include_package_data=True,
|
|
|
|
zip_safe=False,
|
2017-07-25 10:59:19 -04:00
|
|
|
|
2017-07-25 11:19:40 -04:00
|
|
|
data_files=data_files,
|
2017-07-25 04:58:37 -04:00
|
|
|
|
2016-10-04 17:07:19 -04:00
|
|
|
# Dependent packages (distributions)
|
|
|
|
install_requires=[
|
|
|
|
"evdev",
|
2017-07-25 04:58:37 -04:00
|
|
|
"sox",
|
2017-07-25 09:35:49 -04:00
|
|
|
"dbus-python",
|
2017-07-25 09:44:42 -04:00
|
|
|
"pyenchant",
|
2017-07-25 09:58:02 -04:00
|
|
|
"pyudev",
|
2017-07-25 09:19:13 -04:00
|
|
|
"setuptools",
|
2016-10-04 17:07:19 -04:00
|
|
|
],
|
|
|
|
|
|
|
|
)
|
|
|
|
|