from pathlib import Path


def read_dependencies(txt_file: Path) -> list:
    """Read name of the required packages."""
    with txt_file.open("r") as f:
        dependencies = [
            line for line in f.read().splitlines()
            if not line.startswith('#')
        ]
    return dependencies