returns requirements array for package

def get_requirements():
    '''returns requirements array for package'''
    packages = []
    with open("requirements.txt", "r") as req_doc:
        for package in req_doc:
            packages.append(package.replace("\n", ""))
    return packages