From 3531a843083cbe3964c03b761e9cd994988094f7 Mon Sep 17 00:00:00 2001 From: noO0ob Date: Wed, 22 Jan 2025 15:59:54 +0800 Subject: [PATCH] add comment --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 8818a2ac..4d3770f4 100644 --- a/setup.py +++ b/setup.py @@ -10,6 +10,7 @@ )["VERSION"] +# Formatting (Spaces, etc.) in requirement must be consistent based on string parsing def read_requirements(file_path): with open(file_path, encoding='utf-8') as f: return [ @@ -21,6 +22,7 @@ def read_requirements(file_path): ) ] + def check_version_condition(condition): if not condition.startswith('python_version'): return True @@ -33,7 +35,7 @@ def check_version_condition(condition): '<': current_ver < ver, '<=': current_ver <= ver, '==': current_ver == ver - }.get(op, False) + }.get(op) with open(os.path.join(here, 'README.md'), encoding='utf-8') as f: