forked from huggingface/hf-endpoints-emulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
70 lines (61 loc) · 2.12 KB
/
setup.py
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
62
63
64
65
66
67
68
69
70
from setuptools import find_packages, setup
# We don't declare our dependency on transformers here because we build with
# different packages for different variants
VERSION = "0.1.1"
# Ubuntu packages
# libsndfile1-dev: torchaudio requires the development version of the libsndfile package which can be installed via a system package manager. On Ubuntu it can be installed as follows: apt install libsndfile1-dev
# ffmpeg: ffmpeg is required for audio processing. On Ubuntu it can be installed as follows: apt install ffmpeg
# libavcodec-extra : libavcodec-extra inculdes additional codecs for ffmpeg
install_requires = [
# transformers
"Pillow",
"starlette",
"uvicorn",
"typer[all]",
]
extras = {}
# test and quality
extras["test"] = [
"pytest",
"pytest-xdist",
"parameterized",
"psutil",
"datasets",
"pytest-sugar",
"mock==2.0.0",
"docker",
"requests",
]
extras["quality"] = [
"black",
"isort",
"flake8",
]
setup(
name="hf-endpoints-emulator",
version=VERSION,
author="HuggingFace",
description="Emulator for Custom Handlers for Inference Endpoints",
long_description=open("README.md", "r", encoding="utf-8").read(),
long_description_content_type="text/markdown",
keywords="NLP deep-learning transformer pytorch tensorflow BERT GPT GPT-2",
url="https://huggingface.co/inference-endpoints",
package_dir={"": "src"},
packages=find_packages(where="src"),
install_requires=install_requires,
extras_require=extras,
entry_points={"console_scripts": "hf-endpoints-emulator=hf_endpoints_emulator.cli:app"},
python_requires=">=3.8.0",
license="MIT",
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",
"Programming Language :: Python :: 3.9",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
)