Skip to content

Commit

Permalink
Fix comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
hongtaozhang committed Feb 20, 2025
1 parent 4ade7f3 commit a6a7fa8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 .')
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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',
Expand All @@ -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"',
Expand Down

0 comments on commit a6a7fa8

Please sign in to comment.