Skip to content

Commit 8598a60

Browse files
Remove Upper Constraint for agent hosting package
1 parent 31284a8 commit 8598a60

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/test_dependency_constraints.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ def parse_version_constraint(constraint: str) -> dict:
7070
result = {"lower": None, "upper": None, "upper_inclusive": False, "raw": constraint}
7171

7272
# Match upper bound patterns: < X.Y.Z or <= X.Y.Z
73-
upper_match = re.search(r'<\s*=?\s*(\d+\.\d+\.\d+)', constraint)
73+
upper_match = re.search(r"<\s*=?\s*(\d+\.\d+\.\d+)", constraint)
7474
if upper_match:
7575
result["upper"] = upper_match.group(1)
76-
result["upper_inclusive"] = "<=" in constraint[:upper_match.start() + 2]
76+
result["upper_inclusive"] = "<=" in constraint[: upper_match.start() + 2]
7777

7878
# Match lower bound patterns: >= X.Y.Z or > X.Y.Z
79-
lower_match = re.search(r'>=?\s*(\d+\.\d+\.\d+)', constraint)
79+
lower_match = re.search(r">=?\s*(\d+\.\d+\.\d+)", constraint)
8080
if lower_match:
8181
result["lower"] = lower_match.group(1)
8282

@@ -118,7 +118,7 @@ def get_dependencies_with_upper_bounds(pyproject_path: Path) -> list[dict]:
118118

119119
for dep in dependencies:
120120
# Parse dependency string: "package-name >= 1.0.0, < 2.0.0"
121-
match = re.match(r'^([\w\-]+)\s*(.*)$', dep.strip())
121+
match = re.match(r"^([\w\-]+)\s*(.*)$", dep.strip())
122122
if not match:
123123
continue
124124

0 commit comments

Comments
 (0)