diff --git a/fmatch/__init__.py b/fmatch/__init__.py index ee161f7..68387ca 100644 --- a/fmatch/__init__.py +++ b/fmatch/__init__.py @@ -1,3 +1,2 @@ """This file is the init file of the matcher package which is used as to match and query data from elastic server""" -from fmatch.matcher import Matcher diff --git a/fmatch/matcher.py b/fmatch/matcher.py index 120edee..411df19 100644 --- a/fmatch/matcher.py +++ b/fmatch/matcher.py @@ -10,6 +10,7 @@ # pylint: disable=import-error import pandas as pd + ES_URL = os.getenv("ES_SERVER") @@ -17,6 +18,7 @@ class Matcher: """ Matcher """ + def __init__(self, index="perf_scale_ci", level=logging.INFO): self.index = index self.es_url = ES_URL diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..fd5e0a2 --- /dev/null +++ b/setup.py @@ -0,0 +1,32 @@ +""" +setup file for fmatch package +""" +from setuptools import setup, find_packages + + +VERSION = '0.0.1' +DESCRIPTION = 'Common package for matching runs with provided metadata' +# pylint: disable= line-too-long +LONG_DESCRIPTION = "A package that allows to match metadata and get runs and create csv files with queried metrics" + +# Setting up +setup( + name="fmatch", + version=VERSION, + author="sboyapal", + author_email="sboyapal@redhat.com", + description=DESCRIPTION, + long_description_content_type="text/x-rst", + long_description=LONG_DESCRIPTION, + packages=find_packages(), + install_requires=['elasticsearch7==7.13.0', 'elasticsearch', 'pyyaml','pandas'], + keywords=['python', 'matching', 'red hat', 'perf-scale', 'matcher', 'orion'], + classifiers=[ + "Development Status :: 1 - Planning", + "Intended Audience :: Developers", + "Programming Language :: Python :: 3", + "Operating System :: Unix", + "Operating System :: MacOS :: MacOS X", + "Operating System :: Microsoft :: Windows", + ] +)