-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
74 lines (62 loc) · 2.15 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
import os
from pathlib import Path
import setuptools
_PATH_ROOT = Path(os.path.dirname(__file__))
def load_version() -> str:
version_filepath = _PATH_ROOT / "AK_SSL" / "__init__.py"
with version_filepath.open() as file:
for line in file.readlines():
if line.startswith("__version__"):
version = line.split("=")[-1].strip().strip('"')
return version
raise RuntimeError("Unable to find version string in '{version_filepath}'.")
if __name__ == "__main__":
name = "AK_SSL"
version = load_version()
author = "Audrina Ebrahimi & Kian Majlessi"
author_email = "[email protected]"
description = "A Self-Supervised Learning Library"
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
python_requires = ">=3.10"
install_requires = [
"numpy",
"torch",
"torchvision",
"torcheval",
"tqdm",
"tensorboard",
"einops",
"axial_positional_embedding",
]
packages = setuptools.find_packages()
project_urls = {
"Github": "https://github.com/audrina-ebrahimi/AK_SSL",
}
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Image Processing",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: MIT License",
]
setuptools.setup(
name=name,
version=version,
author=author,
author_email=author_email,
description=description,
license="MIT",
license_files=["LICENSE"],
long_description=long_description,
long_description_content_type="text/markdown",
install_requires=install_requires,
python_requires=python_requires,
packages=packages,
classifiers=classifiers,
project_urls=project_urls,
)