from setuptools import find_packages, setup def get_version() -> str: rel_path = "src/gradio_space_ci/__init__.py" with open(rel_path, "r") as fp: for line in fp.read().splitlines(): if line.startswith("__version__"): delim = '"' if '"' in line else "'" return line.split(delim)[1] raise RuntimeError("Unable to find version string.") install_requires = [ "gradio", "huggingface_hub>=0.21.1", ] extras = {} extras["dev"] = [ "ruff", "mypy", "types-requests", "types-ujson", ] setup( name="gradio_space_ci", version=get_version(), author="Lucain Pouget", author_email="lucain@huggingface.co", description="A package to enable Space CI (ephemeral Spaces on when PR is created).", long_description=open("README.md", "r", encoding="utf-8").read(), long_description_content_type="text/markdown", keywords="gradio spaces ci machine-learning", license="Apache", url="https://huggingface.co/spaces/Wauplin/gradio-space-ci", package_dir={"": "src"}, packages=find_packages("src"), extras_require=extras, python_requires=">=3.8.0", install_requires=install_requires, classifiers=[ "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: Science/Research", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "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", ], )