-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsetup.py
63 lines (53 loc) · 1.48 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
from setuptools import setup
import os
import sys
def read(*names):
values = dict()
for name in names:
if os.path.isfile(name):
value = open(name).read()
else:
value = ''
values[name] = value
return values
long_description = """
%(README)s
""" % read('README')
setup(name='notossh',
version='1.0',
description="NOTifications Over SSH",
long_description=long_description,
classifiers=["Environment :: Console",
"Topic :: Communications :: Chat :: Internet Relay Chat",
"Environment :: MacOS X",
"Environment :: X11 Applications",
"Topic :: Text Editors :: Emacs"],
keywords='ssh irc notifications growl libnotify irssi erc daemon',
author='Bernard `Guyzmo` Pratz',
author_email='[email protected]',
url='http://m0g.net/notossh/',
license='WTFPL',
packages=['notossh'],
zip_safe=False,
install_requires=[
'argparse',
'setuptools',
],
entry_points="""
# -*- Entry points: -*-
[console_scripts]
notossh = notossh.notossh:start
""",
)
if "install" in sys.argv:
print """
Notossh is now installed!
You can configure how you want to connect to your IRC service:
cat >> ~/.ssh/config <EOF
Host HOST
PermitLocalCommand yes
LocalCommand /path/to/bin/notossh
RemoteForward PORT localhost:PORT
EOF
or simply notossh --help
"""