from pathlib import Path
from typing import List


def get_packages_from_requirements(basedirpath: Path,) -> List:
    """Extract packages from requirements.txt as Python list"""
    with open(basedirpath, "r") as f:
        lines = f.readlines()
    return lines