-
Notifications
You must be signed in to change notification settings - Fork 27
/
setup.py
71 lines (57 loc) · 1.89 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
import os
from setuptools import setup
from webapi import VERSION
PATH_BASE = os.path.dirname(__file__)
PATH_BIN = os.path.join(PATH_BASE, 'bin')
SCRIPTS = None
if os.path.exists(PATH_BIN):
SCRIPTS = [os.path.join('bin', f) for f in os.listdir(PATH_BIN) if os.path.join(PATH_BIN, f)]
f = open(os.path.join(PATH_BASE, 'README.rst'))
README = f.read()
f.close()
__plugin_name__ = 'WebAPI'
__version__ = '.'.join(map(str, VERSION))
__description__ = 'Plugin for Deluge WebUI providing sane JSON API.'
__long_description__ = __description__
__author__ = 'Igor `idle sign` Starikov'
__author_email__ = 'idlesign@yandex.ru'
__license__ = 'BSD 3-Clause License'
__url__ = 'https://github.com/idlesign/deluge-webapi'
__pkg_data__ = {__plugin_name__.lower(): ['data/*']}
setup(
name=__plugin_name__,
version=__version__,
url=__url__,
description=__description__,
long_description=README,
license=__license__,
author=__author__,
author_email=__author_email__,
packages=['webapi'],
include_package_data=True,
zip_safe=False,
package_data = __pkg_data__,
install_requires=[],
scripts=SCRIPTS,
classifiers=[
# As in https://pypi.python.org/pypi?:action=list_classifiers
'Development Status :: 4 - Beta',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'License :: OSI Approved :: BSD License',
'Environment :: Plugins',
'Intended Audience :: End Users/Desktop',
],
entry_points="""
[deluge.plugin.core]
%s = %s:CorePlugin
[deluge.plugin.gtk3ui]
%s = %s:Gtk3UIPlugin
[deluge.plugin.web]
%s = %s:WebUIPlugin
""" % ((__plugin_name__, __plugin_name__.lower())*3)
)