Upload setup.py with huggingface_hub
Browse files
setup.py
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Setup script for Code Comment Quality Classifier
|
| 3 |
+
"""
|
| 4 |
+
from setuptools import setup, find_packages
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
|
| 7 |
+
# Read README
|
| 8 |
+
readme_file = Path(__file__).parent / "README.md"
|
| 9 |
+
long_description = readme_file.read_text() if readme_file.exists() else ""
|
| 10 |
+
|
| 11 |
+
# Read requirements
|
| 12 |
+
requirements_file = Path(__file__).parent / "requirements.txt"
|
| 13 |
+
requirements = []
|
| 14 |
+
if requirements_file.exists():
|
| 15 |
+
with open(requirements_file, 'r') as f:
|
| 16 |
+
requirements = [
|
| 17 |
+
line.strip()
|
| 18 |
+
for line in f
|
| 19 |
+
if line.strip() and not line.startswith('#')
|
| 20 |
+
]
|
| 21 |
+
|
| 22 |
+
setup(
|
| 23 |
+
name="code-comment-classifier",
|
| 24 |
+
version="1.0.0",
|
| 25 |
+
author="Sharyar Naseem",
|
| 26 |
+
author_email="",
|
| 27 |
+
description="A machine learning model for classifying code comment quality",
|
| 28 |
+
long_description=long_description,
|
| 29 |
+
long_description_content_type="text/markdown",
|
| 30 |
+
url="https://huggingface.co/Snaseem2026/code-comment-classifier",
|
| 31 |
+
packages=find_packages(),
|
| 32 |
+
classifiers=[
|
| 33 |
+
"Development Status :: 4 - Beta",
|
| 34 |
+
"Intended Audience :: Developers",
|
| 35 |
+
"Topic :: Software Development :: Quality Assurance",
|
| 36 |
+
"License :: OSI Approved :: MIT License",
|
| 37 |
+
"Programming Language :: Python :: 3",
|
| 38 |
+
"Programming Language :: Python :: 3.8",
|
| 39 |
+
"Programming Language :: Python :: 3.9",
|
| 40 |
+
"Programming Language :: Python :: 3.10",
|
| 41 |
+
"Programming Language :: Python :: 3.11",
|
| 42 |
+
],
|
| 43 |
+
python_requires=">=3.8",
|
| 44 |
+
install_requires=requirements,
|
| 45 |
+
entry_points={
|
| 46 |
+
"console_scripts": [
|
| 47 |
+
"code-comment-train=train:main",
|
| 48 |
+
"code-comment-inference=inference:main",
|
| 49 |
+
],
|
| 50 |
+
},
|
| 51 |
+
)
|