forked from rom1504/clip-retrieval
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
65 lines (60 loc) · 2.08 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
from setuptools import setup, find_packages
from pathlib import Path
import os
if __name__ == "__main__":
with Path(Path(__file__).parent, "README.md").open(encoding="utf-8") as file:
long_description = file.read()
import os
def package_files(directory):
paths = []
for (path, _, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join("..", path, filename))
return paths
extra_files = package_files("front/build")
setup(
name="clip_retrieval",
packages=find_packages(),
package_data={"": extra_files},
include_package_data=True,
version="2.19.1",
license="MIT",
description="Easily computing clip embeddings and building a clip retrieval system with them",
long_description=long_description,
long_description_content_type="text/markdown",
entry_points={"console_scripts": ["clip-retrieval = clip_retrieval.cli:main"]},
author="Romain Beaumont",
author_email="[email protected]",
url="https://github.com/rom1504/clip-retrieval",
data_files=[(".", ["README.md"]),],
keywords=["machine learning", "computer vision", "download", "image", "dataset"],
install_requires=[
"img2dataset",
"clip-anytorch",
"tqdm",
"fire",
"torch",
"torchvision",
"numpy",
"faiss-cpu",
"flask",
"flask_restful",
"flask_cors",
"pandas",
"pyarrow",
"autofaiss",
"pyyaml",
"webdataset",
"h5py",
"prometheus-client",
"fsspec",
"sentence-transformers",
],
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.6",
],
)