import typing
import pathlib


def parse_requirements_file (filename: str) -> typing.List:
    """read and parse a Python `requirements.txt` file, returning as a list of str"""
    with pathlib.Path(filename).open() as f:  # pylint: disable=C0103
        return [ l.strip().replace(" ", "") for l in f.readlines() ]