# Lint as: python3 """ HuggingFace / AutoTrain Advanced """ import os from setuptools import find_packages, setup DOCLINES = __doc__.split("\n") this_directory = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(this_directory, "README.md"), encoding="utf-8") as f: LONG_DESCRIPTION = f.read() # get INSTALL_REQUIRES from requirements.txt with open(os.path.join(this_directory, "requirements.txt"), encoding="utf-8") as f: INSTALL_REQUIRES = f.read().splitlines() QUALITY_REQUIRE = [ "black", "isort", "flake8==3.7.9", ] TESTS_REQUIRE = ["pytest"] EXTRAS_REQUIRE = { "dev": INSTALL_REQUIRES + QUALITY_REQUIRE + TESTS_REQUIRE, "quality": INSTALL_REQUIRES + QUALITY_REQUIRE, "docs": INSTALL_REQUIRES + [ "recommonmark", "sphinx==3.1.2", "sphinx-markdown-tables", "sphinx-rtd-theme==0.4.3", "sphinx-copybutton", ], } setup( name="autotrain-advanced", description=DOCLINES[0], long_description=LONG_DESCRIPTION, long_description_content_type="text/markdown", author="HuggingFace Inc.", author_email="autotrain@huggingface.co", url="https://github.com/huggingface/autotrain-advanced", download_url="https://github.com/huggingface/autotrain-advanced/tags", license="Apache 2.0", package_dir={"": "src"}, packages=find_packages("src"), extras_require=EXTRAS_REQUIRE, install_requires=INSTALL_REQUIRES, entry_points={"console_scripts": ["autotrain=autotrain.cli.autotrain:main"]}, classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: Science/Research", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Topic :: Scientific/Engineering :: Artificial Intelligence", ], keywords="automl autonlp autotrain huggingface", )