-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
79 lines (67 loc) · 1.85 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
'''
XBMC Addon Manager
------------------
A CLI utility for searching and listing XBMC Addon Repositories.
Setup
`````
::
$ pip install xam
$ xam --help
Links
`````
* `website <http://github.com/jbeluch/xam/>`_
'''
from setuptools import setup, find_packages
def get_requires():
'''If python > 2.7, argparse and OrderedDict will be included. Otherwsise
we need external packages.
'''
requires = ['requests']
try:
import argparse
except ImportError:
requires.append('argparse')
try:
from collections import OrderedDict
except ImportError:
requires.append('collective.ordereddict')
return requires
setup(
name='xam',
version='0.2.1',
url='http://github.com/jbeluch/xam/',
license='BSD',
author='Jonathan Beluch',
author_email='[email protected]',
description='A utility for listing, searching and viewing source code for '
'XBMC addons.',
long_description=__doc__,
packages=find_packages(),
platforms='any',
install_requires=get_requires(),
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Environment :: Console',
'Topic :: Utilities',
],
entry_points={
#'console_scripts': [
#'xam = xam.cli:main'
#]
'console_scripts': [
'xam = xam.main:main'
],
'xam': [
'all = xam.cli:ListAddons',
'info = xam.cli:ShowAddonInfo',
'depends = xam.cli:ShowDependentAddons',
'get = xam.cli:GetAddon',
'search = xam.cli:SearchAddons',
'release = xam.cli.release:ReleaseAddon',
]
},
)