-
Notifications
You must be signed in to change notification settings - Fork 61
/
setup.py
75 lines (66 loc) · 2.57 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
73
74
75
import io
import re
from pathlib import Path
from typing import List
from setuptools import find_packages, setup
def load_requirements(filename: str) -> List[str]:
with open(filename, "r") as f:
reqs = f.read().splitlines()
return reqs
def load_version() -> str:
version_file = Path(__file__).parent / "oml" / "__init__.py"
with io.open(version_file, encoding="utf-8") as f:
return re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', f.read(), re.M).group(1)
NLP_REQUIRE = load_requirements("ci/requirements_nlp.txt")
AUDIO_REQUIRE = load_requirements("ci/requirements_audio.txt")
setup(
# technical things
version=load_version(),
packages=find_packages(exclude=["ci", "docs", "pipelines", "tests*"]),
python_requires=">=3.8,<4.0",
install_requires=load_requirements("ci/requirements.txt"),
extras_require={
"nlp": NLP_REQUIRE,
"audio": AUDIO_REQUIRE,
"all": [*NLP_REQUIRE, *AUDIO_REQUIRE], # later will be cv and audio
},
include_package_data=True,
long_description=Path("README.md").read_text(),
long_description_content_type="text/markdown",
# general information
name="open-metric-learning",
description="OML is a PyTorch-based framework to train and validate the models producing high-quality embeddings.",
keywords=[
"data-science",
"computer-vision",
"deep-learning",
"pytorch",
"metric-learning",
"representation-learning",
"pytorch-lightning",
],
author="Shabanov Aleksei",
author_email="[email protected]",
url="https://github.com/OML-Team/open-metric-learning",
classifiers=[
"Environment :: Console",
"Natural Language :: English",
"Operating System :: OS Independent",
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Image Recognition",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
],
project_urls={
"Homepage": "https://github.com/OML-Team/open-metric-learning",
"Bug Tracker": "https://github.com/OML-Team/open-metric-learning/issues",
},
license="Apache License 2.0",
)