forked from splunk/eventgen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
55 lines (43 loc) · 1.63 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
#!/usr/bin/env python3
# encoding: utf-8
from setuptools import setup
import json
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
long_description = open('README.md').read()
def get_version():
"""
@return: Version Number
"""
with open("splunk_eventgen/version.json", 'rb') as fp:
json_data = json.load(fp)
version = json_data['version']
return version
def readme():
with open('README.md') as f:
return f.read()
def get_requirements():
with open('requirements.txt') as f:
requirements = f.read().splitlines()
return requirements
VERSION = get_version()
setup(
name='splunk_eventgen',
version=VERSION,
description='Splunk Event Generator to produce real-time, representative data',
long_description=long_description,
author='Splunk, Inc.',
python_requires='>3.7.0',
classifiers=[
'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Testing', 'Programming Language :: Python',
'Programming Language :: Python :: 2.7'],
keywords='splunk eventgen container containers docker automation',
entry_points={'console_scripts': ["splunk_eventgen = splunk_eventgen.__main__:main"]},
include_package_data=True,
packages=["splunk_eventgen"],
package_data={"splunk_eventgen": ['*.sh', '*.txt', '*.yml'], '': ['*.sh', '*.txt', '*.yml']},
install_requires=get_requirements())