Spaces:
Sleeping
Sleeping
File size: 1,607 Bytes
29028ea |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
from setuptools import find_packages, setup
from typing import List
# get the requirements into list
HYPEN_E_DOT = '-e .'
def get_requirements(file_path:str)->List[str]:
requirements = []
with open(file_path) as file_obj:
requirements = file_obj.readlines()
requirements=[req.replace("\n","") for req in requirements]
if HYPEN_E_DOT in requirements:
requirements.remove(HYPEN_E_DOT)
return requirements
'''
def get_requirements_chatgpt(file_path: str) -> List[str]:
with open(file_path, 'r') as file:
requirements = file.readlines()
# Strip whitespace and newline characters from each line
requirements = [req.strip() for req in requirements if req.strip() and not req.startswith('-e')]
return requirements
'''
setup(
name='NoCodeTextClassifier',
version='0.0.4',
author='abdullah',
author_email='alhasib.iu.cse@gmail.com',
description="This package is for Text Classification of NLP Task",
long_description=open('README.md').read(),
long_description_content_type="text/markdown",
url="https://github.com/Al-Hasib/NoCodeTextClassifier",
install_requires=["pandas","scikit-learn","matplotlib","seaborn","pathlib","nltk","xgboost"],
packages=find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
], # Additional metadata
python_requires='>=3.8', # Minimum Python version required
)
|