-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
60 lines (53 loc) · 1.83 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/env python
from setuptools import setup
from glob import glob
from readgood import readgood_version
import sys
__author__ = "Daniel McDonald"
__copyright__ = "Copyright 2014"
__credits__ = ["Daniel McDonald"]
__license__ = "BSD"
__version__ = readgood_version.mmm
__maintainer__ = "Daniel McDonald"
__email__ = "[email protected]"
try:
import bipy
except ImportError:
raise ImportError("readgood requires bipy!")
# PyPI's list of classifiers can be found here:
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
classes = """
Development Status :: 4 - Beta
License :: OSI Approved :: BSD License
Topic :: Multimedia :: Graphics :: Presentation
Programming Language :: Python
Programming Language :: Python :: 2.7
Programming Language :: Python :: Implementation :: CPython
Operating System :: OS Independent
Operating System :: POSIX
Operating System :: POSIX :: Linux
Operating System :: MacOS :: MacOS X
"""
classifiers = [s.strip() for s in classes.split('\n') if s]
# Verify Python version
ver = '.'.join(map(str, [sys.version_info.major, sys.version_info.minor]))
if ver not in ['2.7']:
sys.stderr.write("Only Python >=2.7 and <3.0 is supported.")
sys.exit(1)
long_description = """A speedreader inspired by Spritz and Optimal Recognition Point"""
setup(name='readgood',
version=__version__,
license=__license__,
description='readgood',
long_description=long_description,
author=__maintainer__,
author_email=__email__,
maintainer=__maintainer__,
maintainer_email=__email__,
url='https://github.com/wasade/readgood',
packages=['readgood',
'texts'],
scripts=glob('scripts/readgood*'),
install_requires=["pyqi == 0.3.1"], # bipy is not pip installable yet
classifiers=classifiers
)