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