Skip to content

Commit

Permalink
Adding tqdm to setup.py
Browse files Browse the repository at this point in the history
Signed-off-by: AkshathRaghav <[email protected]>
  • Loading branch information
AkshathRaghav committed Nov 9, 2023
1 parent 57216f4 commit 1e6c871
Showing 1 changed file with 67 additions and 59 deletions.
126 changes: 67 additions & 59 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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="[email protected], [email protected]",
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="[email protected], [email protected]",
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,
)

0 comments on commit 1e6c871

Please sign in to comment.