-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
executable file
·60 lines (51 loc) · 1.93 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 python2
'''
This Package contains an API for tv_grabbers Alle data is defined in JSON files
Including where and how to get the tv data. Multiple sources can be defined
and the resulting data is integrated into one XMLTV output file.
The detailed behaviour is highly configurable. See our site for more details.
'''
from distutils.core import setup
from os import environ, name
from tvgrabpyAPI import version, __version__
if name == 'nt':
if 'USERPROFILE' in environ:
home_dir = environ['USERPROFILE']
elif 'HOMEPATH' in environ:
home_dir = environ['HOMEPATH']
elif 'HOME' in environ:
home_dir = environ['HOME']
source_dir = u'%s/.xmltv/sources' % home_dir
else:
source_dir = u'/var/lib/tvgrabpyAPI'
classifiers=[
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python :: 2.7',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: Public Domain',
'Topic :: Internet :: WWW/HTTP :: Indexing/Search']
if version()[6]:
classifiers.append('Development Status :: 3 - Alpha')
elif version()[5]:
classifiers.append('Development Status :: 4 - Beta')
else:
classifiers.append('Development Status :: 5 - Production/Stable')
setup(
name = version()[0],
version = __version__,
description = 'xlmtv API based on JSON datafiles',
packages = ['tvgrabpyAPI'],
package_data={'tvgrabpyAPI': ['texts/tv_grab_text.*']},
scripts=['tv_grab_nl3.py', 'tv_grab_test_json.py', 'tv_grab_test_source.py'],
data_files=[(source_dir, ['sources/tv_grab_API.json',
'sources/tv_grab_nl.json'])],
requires = ['pytz', 'requests', 'DataTreeGrab (>=1.04)'],
provides = [version()[0]],
long_description = __doc__,
maintainer = 'Hika van den Hoven',
license='GPL',
url='https://github.com/tvgrabbers/tvgrabpyAPI',
classifiers=classifiers
)