Spaces:
Sleeping
Sleeping
File size: 568 Bytes
022acf4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
from typing import List
from setuptools import find_packages, setup
def get_requirements(file_path: str) -> List[str]:
"""Get the requirements/dependencies (packages) in a list."""
with open(file_path) as f:
lines = f.readlines()
requirements = [line.rstrip("\n") for line in lines]
return requirements
setup(
name="NewsClassifier",
version="1.0",
author="ManishW",
author_email="[email protected]",
description="",
packages=find_packages(),
install_requires=get_requirements("requirements.txt"),
)
|