-
Notifications
You must be signed in to change notification settings - Fork 84
/
setup.py
72 lines (64 loc) · 2.4 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 os
from setuptools import setup, find_packages
# See: https://packaging.python.org/en/latest/guides/single-sourcing-package-version/
def read(rel_path: str) -> str:
here = os.path.abspath(os.path.dirname(__file__))
# intentionally *not* adding an encoding option to open, See:
# https://github.com/pypa/virtualenv/issues/201#issuecomment-3145690
with open(os.path.join(here, rel_path)) as fp:
return fp.read()
def get_version(rel_path: str) -> str:
for line in read(rel_path).splitlines():
if line.startswith("__version__"):
# __version__ = "0.9"
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
raise RuntimeError("Unable to find version string.")
__version__ = get_version("multimodal_transformers/__init__.py")
url = "https://github.com/georgianpartners/Multimodal-Toolkit"
install_requires = [
"accelerate>=0.29.3",
"importlib-metadata~=7.1.0",
"networkx~=2.6.3",
"numpy~=1.26.4",
"pandas~=2.2.2",
"pytest~=7.2.2",
"sacremoses~=0.0.53",
"scikit-learn~=1.5.1",
"scipy~=1.13.0",
"torch>=2.0.1",
"transformers>=4.40.1",
"tqdm",
]
setup(
name="multimodal_transformers",
packages=find_packages(),
include_package_data=True,
version=__version__,
license="MIT",
description="Multimodal Extension Library for PyTorch HuggingFace Transformers",
author="Ken Gu",
author_email="[email protected]",
maintainer="Akash Saravanan",
maintainer_email="[email protected]",
url=url,
download_url="{}/archive/v_{}.tar.gz".format(url, __version__),
keywords=[
"pytorch",
"multimodal",
"transformers",
"huggingface",
], # Keywords that define your package best
install_requires=install_requires,
python_requires=">=3.7",
classifiers=[
"Development Status :: 4 - Beta", # Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable" as the current state of your package
"Intended Audience :: Developers", # Define that your audience are developers
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: MIT License", # Again, pick a license
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
)