forked from btoews/gping
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·53 lines (46 loc) · 1.33 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
#!/usr/bin/env python
# coding: utf-8
"""
distutils setup
~~~~~~~~~~~~~~~
:homepage: https://github.com/mastahyeti/gping/
:copyleft: 1989-2011 by the python-ping team, see AUTHORS for more details.
:license: GNU GPL v2, see LICENSE for more details.
"""
import os
from setuptools import setup, find_packages, Command
def get_authors():
authors = []
try:
f = file(os.path.join(PACKAGE_ROOT, "AUTHORS"), "r")
for line in f:
if not line.strip().startswith("*"):
continue
if "--" in line:
line = line.split("--", 1)[0]
authors.append(line.strip(" *\r\n"))
f.close()
authors.sort()
except Exception, err:
authors = "[Error: %s]" % err
return authors
setup(
name='gping',
version="0.2dev1",
description='A gevent fork of python-ping.',
author=get_authors(),
maintainer="Ben Toews",
maintainer_email="[email protected]",
url='https://github.com/mastahyeti/gping',
keywords="ping icmp network latency gevent",
py_modules=['gping'],
install_requires=['gevent', 'args'],
dependency_links=[
'https://github.com/kennethreitz/args/tarball/0a6d5eb#egg=args',
],
entry_points={
'console_scripts': [
'gping = gping:run',
],
},
)