Added first setup.py stuff. This is not final and does not work! (0.29.0)
This commit is contained in:
parent
34d8e1948b
commit
9eda2124ed
2 changed files with 28 additions and 4 deletions
|
|
@ -20,16 +20,18 @@ from linspector.environment import Environment
|
||||||
from linspector.linspector import Linspector
|
from linspector.linspector import Linspector
|
||||||
from linspector.monitors import Monitors
|
from linspector.monitors import Monitors
|
||||||
|
|
||||||
|
__author__ = 'Johannes Findeisen'
|
||||||
|
__author_email__ = 'you@hanez.org'
|
||||||
|
__description__ = 'linspector is a infrastructure and system monitoring daemon and toolchain.'
|
||||||
__version__ = '0.29.0'
|
__version__ = '0.29.0'
|
||||||
__author__ = 'Johannes Findeisen <you@hanez.org>'
|
|
||||||
|
|
||||||
sys.stderr = open('/dev/null', 'w')
|
sys.stderr = open('/dev/null', 'w')
|
||||||
|
|
||||||
|
|
||||||
def parse_args():
|
def parse_args():
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description='linspector is a infrastructure and system monitoring daemon and toolchain.',
|
description=__description__,
|
||||||
epilog='author: ' + __author__,
|
epilog='author: ' + __author__ + ' <' + __author_email__ + '>',
|
||||||
prog='linspector')
|
prog='linspector')
|
||||||
|
|
||||||
parser.add_argument('configuration_path', metavar='CONFIGURATION_PATH',
|
parser.add_argument('configuration_path', metavar='CONFIGURATION_PATH',
|
||||||
|
|
@ -52,7 +54,7 @@ def parse_args():
|
||||||
def linspector():
|
def linspector():
|
||||||
print('Starting Linspector ' + __version__ + '...')
|
print('Starting Linspector ' + __version__ + '...')
|
||||||
print('This software is free software licensed under the terms of the MIT license. Copyright (c) 2013-2023 by ' +
|
print('This software is free software licensed under the terms of the MIT license. Copyright (c) 2013-2023 by ' +
|
||||||
__author__)
|
__author__ + ' <' + __author_email__ + '>')
|
||||||
|
|
||||||
args = parse_args()
|
args = parse_args()
|
||||||
monitors = {}
|
monitors = {}
|
||||||
|
|
|
||||||
22
setup.py
22
setup.py
|
|
@ -0,0 +1,22 @@
|
||||||
|
from setuptools import setup
|
||||||
|
|
||||||
|
with open('README.md', 'r', encoding='utf-8') as file:
|
||||||
|
long_description = file.read()
|
||||||
|
|
||||||
|
setup(name='linspector',
|
||||||
|
version='0.29.0',
|
||||||
|
description='Linspector is a infrastructure and system monitoring daemon and toolchain.',
|
||||||
|
url='https://github.com/linspector/linspector',
|
||||||
|
author='Johannes Findeisen',
|
||||||
|
author_email='you@hanez.org',
|
||||||
|
license='MIT',
|
||||||
|
packages=['linspector'],
|
||||||
|
keywords=['linux', 'system', 'monitoring'],
|
||||||
|
classifiers=[
|
||||||
|
'Development Status :: 5 - Production/Stable',
|
||||||
|
'Intended Audience :: System Administrators',
|
||||||
|
'Natural Language :: English'
|
||||||
|
],
|
||||||
|
long_description=long_description,
|
||||||
|
long_description_content_type='text/markdown',
|
||||||
|
zip_safe=False)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue