forked from zhengxiaowai/tcping
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
53 lines (46 loc) · 1.41 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 -*-
from setuptools import setup
with open("tcping.py") as fp:
for line in fp:
if line.startswith("__version__"):
__version__ = line.split("=")[1].strip(" \"'\r\n")
break
else:
from tcping import __version__
def read_long_description():
try:
import pypandoc
return pypandoc.convert('README.md', 'rst')
except(IOError, ImportError, RuntimeError):
return ""
setup(
name='tcping',
version=__version__,
author='zhengxiaowai',
author_email='[email protected]',
long_description=read_long_description(),
url='https://github.com/kontspace/tcping',
description='command line for tcp ping',
license='MIT',
keywords='python tcp ping',
py_modules=['tcping'],
scripts=['tcping.py'],
install_requires=['six', 'click', 'prettytable'],
entry_points={
'console_scripts': ['tcping = tcping:cli']
},
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: Microsoft",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Utilities",
"Topic :: System"
]
)