Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ SQLAlchemy==2.0.41
paho-mqtt==2.1.0

numpy==2.3.2

pycares<5.0.0 # Pin to 4.x until aiodns supports pycares 5.0 breaking changes
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
]
with open("requirements_test.txt","r") as f:
for line in f:
if "txt" not in line and "#" not in line:
line = line.strip()
# Skip empty lines and lines that reference other files
if not line or line.startswith("-") or ".txt" in line:
continue
# Strip inline comments but keep the requirement
if "#" in line:
line = line.split("#")[0].strip()
if line:
requirements.append(line)

with open("version", "r") as f:
Expand Down