-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathsetup.py
54 lines (49 loc) · 1.82 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
"""Setup script."""
from pathlib import Path
import re
import setuptools
if __name__ == "__main__":
# Read metadata from version.py
with Path("image_embeddings/version.py").open(encoding="utf-8") as file:
metadata = dict(re.findall(r'__([a-z]+)__\s*=\s*"([^"]+)"', file.read()))
# Read description from README
with Path(Path(__file__).parent, "README.md").open(encoding="utf-8") as file:
long_description = file.read()
# Run setup
setuptools.setup(
name="image_embeddings",
author=metadata["author"],
version=metadata["version"],
install_requires=[
"fire>=0.3",
"numpy",
"pandas>=1",
"pyarrow>=0.14",
"tensorflow>=2.2",
"tensorflow_datasets",
"fire",
"efficientnet",
"faiss-cpu-noavx2",
"dataclasses",
"ipython",
"ipywidgets",
],
tests_require=["pytest", "black"],
dependency_links=[],
data_files=[(".", ["requirements.txt", "README.md"])],
entry_points={"console_scripts": ["image_embeddings = image_embeddings.cli.main:main"]},
packages=setuptools.find_packages(),
description=long_description.split("\n")[0],
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Development Status :: 5 - Production/Stable",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
)