From 4d47ee3fc93c87756c774ab397674d62d5be60ff Mon Sep 17 00:00:00 2001 From: AkshathRaghav Date: Wed, 1 Nov 2023 17:29:35 -0400 Subject: [PATCH] TQDM added to setup.py Signed-off-by: AkshathRaghav --- setup.py | 126 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 67 insertions(+), 59 deletions(-) diff --git a/setup.py b/setup.py index f93e9d000..e4cbd4204 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ # not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an @@ -92,6 +92,8 @@ def str_from_file(name): "google-auth==1.22.1", # License: MIT "wheel==0.38.4", + # License: MIT + "tqdm==4.66.1", # License: Apache 2.0 # transitive dependencies: # botocore: Apache 2.0 @@ -104,7 +106,7 @@ def str_from_file(name): "ujson", "pytest==7.2.2", "pytest-benchmark==3.2.2", - "pytest-asyncio==0.14.0" + "pytest-asyncio==0.14.0", ] # These packages are only required when developing Benchmark @@ -115,65 +117,71 @@ def str_from_file(name): "wheel==0.38.4", "github3.py==1.3.0", "pylint==2.6.0", - "pylint-quotes==0.2.1" + "pylint-quotes==0.2.1", ] -python_version_classifiers = ["Programming Language :: Python :: {}.{}".format(major, minor) - for major, minor in supported_python_versions] +python_version_classifiers = [ + "Programming Language :: Python :: {}.{}".format(major, minor) + for major, minor in supported_python_versions +] -first_supported_version = "{}.{}".format(supported_python_versions[0][0], supported_python_versions[0][1]) +first_supported_version = "{}.{}".format( + supported_python_versions[0][0], supported_python_versions[0][1] +) # next minor after the latest supported version -first_unsupported_version = "{}.{}".format(supported_python_versions[-1][0], supported_python_versions[-1][1] + 1) +first_unsupported_version = "{}.{}".format( + supported_python_versions[-1][0], supported_python_versions[-1][1] + 1 +) -setup(name="opensearch-benchmark", - maintainer="Ian Hoang, Govind Kamat", - maintainer_email="hoangia@amazon.com, govkamat@amazon.com", - version=__versionstr__, - description="Macrobenchmarking framework for OpenSearch", - long_description=long_description, - long_description_content_type='text/markdown', - url="https://github.com/opensearch-project/OpenSearch-Benchmark", - license="Apache License, Version 2.0", - packages=find_packages( - where=".", - exclude=("tests*", "benchmarks*", "it*") - ), - include_package_data=True, - # supported Python versions. This will prohibit pip (> 9.0.0) from even installing Benchmark on an unsupported - # Python version. - # See also https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires - # - # According to https://www.python.org/dev/peps/pep-0440/#version-matching, a trailing ".*" should - # ignore patch versions: - # - # "additional trailing segments will be ignored when determining whether or not a version identifier matches - # the clause" - # - # However, with the pattern ">=3.5.*,<=3.8.*", the version "3.8.0" is not accepted. Therefore, we match - # the minor version after the last supported one (i.e. if 3.8 is the last supported, we'll emit "<3.9") - python_requires=">={},<{}".format(first_supported_version, first_unsupported_version), - package_data={"": ["*.json", "*.yml"]}, - install_requires=install_requires, - test_suite="tests", - tests_require=tests_require, - extras_require={ - "develop": tests_require + develop_require - }, - entry_points={ - "console_scripts": [ - "opensearch-benchmark=osbenchmark.benchmark:main", - "opensearch-benchmarkd=osbenchmark.benchmarkd:main" - ], - }, - scripts=['scripts/expand-data-corpus.py'], - classifiers=[ - "Topic :: System :: Benchmark", - "Development Status :: 5 - Production/Stable", - "License :: OSI Approved :: Apache Software License", - "Intended Audience :: Developers", - "Operating System :: MacOS :: MacOS X", - "Operating System :: POSIX", - "Programming Language :: Python", - "Programming Language :: Python :: 3", - ] + python_version_classifiers, - zip_safe=False) +setup( + name="opensearch-benchmark", + maintainer="Ian Hoang, Govind Kamat", + maintainer_email="hoangia@amazon.com, govkamat@amazon.com", + version=__versionstr__, + description="Macrobenchmarking framework for OpenSearch", + long_description=long_description, + long_description_content_type="text/markdown", + url="https://github.com/opensearch-project/OpenSearch-Benchmark", + license="Apache License, Version 2.0", + packages=find_packages(where=".", exclude=("tests*", "benchmarks*", "it*")), + include_package_data=True, + # supported Python versions. This will prohibit pip (> 9.0.0) from even installing Benchmark on an unsupported + # Python version. + # See also https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires + # + # According to https://www.python.org/dev/peps/pep-0440/#version-matching, a trailing ".*" should + # ignore patch versions: + # + # "additional trailing segments will be ignored when determining whether or not a version identifier matches + # the clause" + # + # However, with the pattern ">=3.5.*,<=3.8.*", the version "3.8.0" is not accepted. Therefore, we match + # the minor version after the last supported one (i.e. if 3.8 is the last supported, we'll emit "<3.9") + python_requires=">={},<{}".format( + first_supported_version, first_unsupported_version + ), + package_data={"": ["*.json", "*.yml"]}, + install_requires=install_requires, + test_suite="tests", + tests_require=tests_require, + extras_require={"develop": tests_require + develop_require}, + entry_points={ + "console_scripts": [ + "opensearch-benchmark=osbenchmark.benchmark:main", + "opensearch-benchmarkd=osbenchmark.benchmarkd:main", + ], + }, + scripts=["scripts/expand-data-corpus.py"], + classifiers=[ + "Topic :: System :: Benchmark", + "Development Status :: 5 - Production/Stable", + "License :: OSI Approved :: Apache Software License", + "Intended Audience :: Developers", + "Operating System :: MacOS :: MacOS X", + "Operating System :: POSIX", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + ] + + python_version_classifiers, + zip_safe=False, +)