-
Notifications
You must be signed in to change notification settings - Fork 33
/
setup.py
90 lines (77 loc) · 2.75 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
80
81
82
83
84
85
86
87
88
89
90
import os
import subprocess
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import helga
def parse_requirements(filename):
with open(filename, 'r') as f:
for line in f:
if line.strip().startswith('#'):
continue
yield line
if sys.version_info[1:2] < (3, 3):
extra_requires = ['backports.functools_lru_cache']
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
return subprocess.call('tox')
# Get the long description
with open(os.path.join(os.path.dirname(__file__), 'README.rst'), 'r') as f:
long_description = f.read()
setup(name=helga.__title__,
version=helga.__version__,
description=helga.__description__,
long_description=long_description,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Topic :: Communications :: Chat :: Internet Relay Chat',
'Framework :: Twisted',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Python Modules',
],
keywords='helga bot irc xmpp jabber hipchat chat',
author=helga.__author__,
author_email='[email protected]',
url='https://github.com/shaunduncan/helga',
license=helga.__license__,
packages=find_packages(),
package_data={
'helga': ['webhooks/logger/*.mustache'],
},
install_requires=list(parse_requirements('requirements.txt')),
tests_require=[
'freezegun',
'mock',
'pretend',
'tox',
'pytest',
],
cmdclass={'test': PyTest},
entry_points=dict(
helga_plugins=[
'help = helga.plugins.help:help',
'manager = helga.plugins.manager:manager',
'operator = helga.plugins.operator:operator',
'ping = helga.plugins.ping:ping',
'version = helga.plugins.version:version',
'webhooks = helga.plugins.webhooks:WebhookPlugin',
],
helga_webhooks=[
'announcements = helga.webhooks.announcements:announce',
'logger = helga.webhooks.logger:logger'
],
console_scripts=[
'helga = helga.bin.helga:main',
],
),
)