b400997e503d6af1fdc2961ca0efe5622257852a
   1from setuptools import setup
   2from os import path
   3# io.open is needed for projects that support Python 2.7
   4# It ensures open() defaults to text mode with universal newlines,
   5# and accepts an argument to specify the text encoding
   6# Python 3 only projects can skip this import
   7from io import open
   8
   9# Import main module so we can set the version
  10import logparse
  11
  12here = path.abspath(path.dirname(__file__))
  13__version__ = '1.0'      # https://www.python.org/dev/peps/pep-0440/   https://packaging.python.org/en/latest/single_source_version.html
  14
  15# Get the long description from the README file
  16with open(path.join(here, 'README.md'), encoding='utf-8') as f:
  17    long_description = f.read()
  18
  19setup(
  20    name='logparse',    # https://packaging.python.org/specifications/core-metadata/#name
  21    version=logparse.__version__,      # https://www.python.org/dev/peps/pep-0440/   https://packaging.python.org/en/latest/single_source_version.html
  22    description='Summarise server logs',
  23    long_description_content_type='text/markdown',
  24    url='https://git.lorimer.id.au/logparse.git',
  25    author='Andrew Lorimer',
  26    author_email='andrew@lorimer.id.au',
  27    classifiers=[       # https://pypi.org/classifiers/
  28        'Development Status :: 4 - Beta',
  29        'Intended Audience :: System Administrators',
  30        'Topic :: System :: Systems Administration',
  31        'License :: OSI Approved :: MIT License',
  32        'Programming Language :: Python :: 2',
  33        'Programming Language :: Python :: 2.7',
  34    ],
  35    keywords='logparse log parse analysis summary monitor email server',
  36    packages=['logparse', 'logparse.parsers'],
  37#   python_requires='=2.5.*, =2.7.*',   # https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
  38    python_requires='>=3',   # https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
  39    install_requires=['premailer', 'requests', 'pyyaml'],  # https://packaging.python.org/en/latest/requirements.html
  40#   extras_require={'dev': ['check-manifest'], 'test': ['coverage']},   # Additional dependencies; install with `pip install sampleproject[dev]`
  41    data_files=[('/etc/logparse', ['logparse.conf', 'header.html', 'main.css'])],                  # installed to /etc/logparse
  42    project_urls={
  43        'Readme': 'https://git.lorimer.id.au/logparse.git/about',
  44        'Source': 'https://git.lorimer.id.au/logparse.git',
  45        'Contact': 'mailto:bugs@lorimer.id.au',
  46    },
  47    entry_points = {
  48        'console_scripts': ['logparse=logparse.interface:main'],
  49    }
  50)