Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
noO0ob committed Jan 22, 2025
1 parent 1dbb8ca commit 3531a84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand All @@ -21,6 +22,7 @@ def read_requirements(file_path):
)
]


def check_version_condition(condition):
if not condition.startswith('python_version'):
return True
Expand All @@ -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:
Expand Down

0 comments on commit 3531a84

Please sign in to comment.