gradio-space-ci / setup.py
Wauplin's picture
Wauplin HF staff
add wdige
7403ab9
raw
history blame
1.97 kB
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",
# TODO: update once released
"huggingface_hub @ git+https://github.com/huggingface/huggingface_hub@7c74445903fe86f694ce6e42c386b7bebee94008",
]
extras = {}
extras["dev"] = [
"ruff",
"mypy",
"types-requests",
"types-ujson",
]
setup(
name="gradio_space_ci",
version=get_version(),
author="Lucain Pouget",
author_email="[email protected]",
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",
],
)