import typing
import pathlib


def get_pkgs_from_requirement(requirement: typing.Union[str, pathlib.Path]) -> typing.List[str]:
    """Get list of packages in the requirement file"""
    with open(requirement, mode='r') as requirement_file:
        packages = requirement_file.readlines()
    return packages