-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
60 lines (50 loc) · 1.72 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
#! /usr/bin/env python
"""
Setup file for tstat_transport distribution.
"""
import sys
from setuptools import setup
import os
try:
# Use pandoc to convert .md -> .rst when uploading to pypi
import pypandoc
DESCRIPTION = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError, OSError):
DESCRIPTION = open('README.md').read()
if sys.version_info[0] == 2 and sys.version_info[1] < 6:
sys.exit('Sorry, Python < 2.6 is not supported')
if sys.version_info[0] == 3 and sys.version_info[1] < 3:
sys.exit('Sorry, Python 3 < 3.3 is not supported')
# use requirements.txt to define dependencies
def get_required():
with open('requirements.txt') as f:
required = f.read().splitlines()
return required
setup(
name='tstat_transport',
version='0.6.8',
description='Tools to send Tstat (TCP STatistic and Analysis Tool) log data to archive servers.', # pylint: disable=line-too-long
long_description=DESCRIPTION,
author='Monte M. Goode',
author_email='[email protected]',
url='https://github.com/esnet/tstat-transport',
packages=['tstat_transport'],
scripts=[
'bin/tstat_send',
'bin/tstat_cull',
],
install_requires=get_required(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Telecommunications Industry',
'Environment :: Console',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Internet',
'Topic :: System :: Networking',
'Topic :: Software Development :: Libraries',
],
)