File size: 1,971 Bytes
0fc235e
 
 
 
 
 
 
 
 
 
 
 
 
 
d6ef8f0
4363c60
7403ab9
0fc235e
 
 
 
 
 
 
d6ef8f0
 
0fc235e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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",
    ],
)