Skip to content

Commit e85e6b9

Browse files
author
Shrey Modi
committed
requirements.txt and test changes
1 parent 377e7e9 commit e85e6b9

File tree

4 files changed

+844
-68
lines changed

4 files changed

+844
-68
lines changed

eval_protocol/evaluation.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -580,12 +580,11 @@ def _parse_ignore_file(ignore_path: str) -> List[str]:
580580
@staticmethod
581581
def _ensure_requirements_present(source_dir: str) -> None:
582582
req_path = os.path.join(source_dir, "requirements.txt")
583-
pyproj_path = os.path.join(source_dir, "pyproject.toml")
584-
if not (os.path.isfile(req_path) or os.path.isfile(pyproj_path)):
585-
logger.error("Missing requirements.txt or pyproject.toml in upload directory: %s", source_dir)
583+
if not os.path.isfile(req_path):
584+
logger.error("Missing requirements.txt in upload directory: %s", source_dir)
586585
raise ValueError(
587-
"Upload requires either requirements.txt or pyproject.toml in the project root. "
588-
"Please add one and re-run ep upload."
586+
"Upload requires requirements.txt in the project root. "
587+
"Please add requirements.txt and re-run ep upload."
589588
)
590589

591590
@staticmethod

0 commit comments

Comments
 (0)