CoolFace
Modelpublic

Snaseem2026/code-comment-classifier

sourceHugging Facemitupdated 8mo agoView on Hugging Face
1likes50downloads
setup.py52 linesDownload Raw Back to root
1"""2Setup script for Code Comment Quality Classifier3"""4from setuptools import setup, find_packages5from pathlib import Path6 7# Read README8readme_file = Path(__file__).parent / "README.md"9long_description = readme_file.read_text() if readme_file.exists() else ""10 11# Read requirements12requirements_file = Path(__file__).parent / "requirements.txt"13requirements = []14if 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 22setup(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)52