-
Notifications
You must be signed in to change notification settings - Fork 127
/
setup.py
72 lines (66 loc) · 2.33 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
71
72
import setuptools
from setuptools import find_packages
with open("README.md", "r", encoding='utf-8') as fh:
long_description = fh.read()
def read_requirements(path):
if not isinstance(path, list):
path = [path]
requirements = []
for p in path:
with open(p) as fh:
requirements.extend([line.strip() for line in fh])
return requirements
setuptools.setup(
name="inference-development",
author="Roboflow",
author_email="[email protected]",
description="With no prior knowledge of machine learning or device-specific deployment, you can deploy a computer vision model to a range of devices and environments using Roboflow Inference.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/roboflow/inference",
packages=find_packages(
where=".",
exclude=(
"docker",
"docs",
"requirements",
"tests",
"tests.*",
"development",
"development.*",
),
),
entry_points={
"console_scripts": [
"inference=inference_cli.main:app",
],
},
install_requires=read_requirements(
[
"requirements/_requirements.txt",
"requirements/requirements.cpu.txt",
"requirements/requirements.cli.txt",
"requirements/requirements.clip.txt",
"requirements/requirements.http.txt",
"requirements/requirements.sdk.http.txt",
"requirements/requirements.gaze.txt",
"requirements/requirements.groundingdino.txt",
"requirements/requirements.hosted.txt",
"requirements/requirements.waf.txt",
"requirements/requirements.yolo_world.txt",
"requirements/requirements.code_analysis.txt",
"requirements/requirements.test.unit.txt",
"requirements/requirements.test.integration.txt",
"requirements/requirements.transformers.txt",
]
),
extras_require={
"sam": read_requirements("requirements/requirements.sam.txt"),
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
python_requires=">=3.8",
)