8eac615666880056a18a88dad2ed7c3c7a4b41a5
1import setuptools
2from os import path
3
4# Import main module so we can set the version
5import logparse
6
7here = path.abspath(path.dirname(__file__))
8__version__ = logparse.__version__
9
10# Get the long description from the README file
11with open(path.join(here, 'README.md'), encoding='utf-8') as f:
12 long_description = f.read()
13
14setuptools.setup(
15 name='logparse', # https://packaging.python.org/specifications/core-metadata/#name
16 version=logparse.__version__, # https://www.python.org/dev/peps/pep-0440/ https://packaging.python.org/en/latest/single_source_version.html
17 description='Summarise server logs',
18 long_description_content_type='text/markdown',
19 url='https://git.lorimer.id.au/logparse.git',
20 author='Andrew Lorimer',
21 author_email='andrew@lorimer.id.au',
22 classifiers=[ # https://pypi.org/classifiers/
23 'Development Status :: 4 - Beta',
24 'Intended Audience :: System Administrators',
25 'Topic :: System :: Systems Administration',
26 'License :: OSI Approved :: MIT License',
27 'Programming Language :: Python :: 3',
28 ],
29 keywords='logparse log parse analysis summary monitor email server',
30 packages=['logparse', 'logparse.parsers'],
31 python_requires='>=3', # https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
32 install_requires=['premailer', 'requests', 'tabulate', 'sensors.py', 'systemd-python'], # https://packaging.python.org/en/latest/requirements.html
33 data_files=[('/etc/logparse', ['logparse.conf', 'header.html', 'main.css']), ('man/man8', ['doc/build/man/logparse.8'])],
34 project_urls={
35 'Readme': 'https://git.lorimer.id.au/logparse.git/about',
36 'Source': 'https://git.lorimer.id.au/logparse.git',
37 'Contact': 'mailto:bugs@lorimer.id.au',
38 },
39 entry_points = {
40 'console_scripts': ['logparse=logparse.interface:main'],
41 }
42)