from pathlib import Path
from typing import List


def get_dependencies(dependency_directory: Path) -> List[str]:
    """
    Creates a list of dependencies based on the contents of the dependency directory.

    :param dependency_directory: where the dependencies uploaded by the user are stored
    :return: a list of the dependencies' paths (including the dependency directory)
    """
    dependencies = []
    for path in dependency_directory.iterdir():
        if path.is_file():
            dependencies.append(f"{Path(path.parent.name) / path.name}")
    return dependencies