forked from fabianbuechler/analog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (53 loc) · 1.78 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
"""Analog - Log Analysis Utitliy."""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from setuptools import setup, find_packages
VERSION = '1.0.0'
def read(path, strip=False):
"""Read file at ``path`` and return content. Opt., ``strip`` whitespace."""
content = ''
with open(path) as fp:
content = fp.read()
if strip:
content = content.strip()
return content
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Topic :: Internet :: Log Analysis',
'Topic :: System :: Logging',
'Topic :: System :: Monitoring',
'Topic :: System :: Systems Administration',
'Topic :: Utilities',
'Programming Language :: Python :: Implementation :: PyPy'] + [
'Programming Language :: Python :: {0}'.format(pyv)
for pyv in '2.7 3.2 3.3 3.4'.split()
]
requirements = ['tabulate']
# unittest.mock (3.3+) or mock
try:
import unittest.mock
del unittest.mock
except ImportError:
requirements.append('mock')
setup(
name='analog',
description='analog - Log Analysis Utility',
long_description=read('README.rst') + '\n\n' + read('CHANGELOG.rst'),
version=VERSION,
url='https://github.com/fabianbuechler/analog',
license='MIT license',
author='Fabian B\xfcchler',
author_email='[email protected]',
entry_points={'console_scripts': ['analog=analog:main']},
classifiers=classifiers,
install_requires=requirements,
packages=find_packages(),
py_modules=['analog'],
zip_safe=False,
)