From a6a7fa8c214f01586727c22707685f341c5a1a03 Mon Sep 17 00:00:00 2001 From: hongtaozhang Date: Thu, 20 Feb 2025 12:25:00 -0800 Subject: [PATCH] Fix comments. --- setup.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 221eb4e09..69fd50e35 100644 --- a/setup.py +++ b/setup.py @@ -52,8 +52,9 @@ def finalize_options(self): pass def run(self): - """Fromat the code using yapf.""" + """Format the code using yapf.""" if sys.version_info[:2] >= (3, 12): + # TODO: Remove this block when yapf is compatible with Python 3.12+. print('Disable yapf for Python 3.12+ due to the compatibility issue.') else: errno = os.system('python3 -m yapf --in-place --recursive --exclude .git --exclude .eggs .') @@ -82,6 +83,7 @@ def finalize_options(self): def run(self): """Lint the code with yapf, mypy, and flake8.""" if sys.version_info[:2] >= (3, 12): + # TODO: Remove this block when yapf is compatible with Python 3.12+. print('Disable lint for Python 3.12+ due to the compatibility issue.') errno = os.system( ' && '.join( @@ -143,7 +145,9 @@ def run(self): 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', 'Topic :: System :: Benchmark', 'Topic :: System :: Clustering', 'Topic :: System :: Hardware', @@ -161,7 +165,7 @@ def run(self): ], install_requires=[ 'ansible;python_version>"3.10"', - 'ansible_base>=2.10.9;os_name=="posix" and python_version<="3.10"', + 'ansible_base>=2.10.9;python_version<="3.10"', 'ansible_core;python_version>"3.10"', 'ansible_runner>=2.0.0rc1, <2.3.2;python_version<="3.10"', 'ansible_runner;python_version>"3.10"',