fenrir/setup.py

76 lines
2.2 KiB
Python
Raw Normal View History

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