-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
40 lines (34 loc) · 1.22 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
import os
import platform
import sys
import pkg_resources
from setuptools import find_packages, setup
def read_version(fname="fed_multimodal/version.py"):
exec(compile(open(fname, encoding="utf-8").read(), fname, "exec"))
return locals()["__version__"]
requirements = []
if sys.platform.startswith("linux") and platform.machine() == "x86_64":
requirements.append("triton==2.0.0")
setup(
name="fed-multimodal",
py_modules=["fed_multimodal"],
version=read_version(),
description="FedMultimodal: A benchmark for multimodal Federated Learning",
long_description=open("README.md", encoding="utf-8").read(),
long_description_content_type="text/markdown",
readme="README.md",
python_requires=">=3.8",
author="Tiantian Feng, University of Southern California",
url="https://github.com/usc-sail/fed-multimodal",
license="Apache-2.0",
packages=find_packages(exclude=["tests*"]),
install_requires=requirements
+ [
str(r)
for r in pkg_resources.parse_requirements(
open(os.path.join(os.path.dirname(__file__), "requirements.txt"))
)
],
include_package_data=True,
extras_require={"dev": ["pytest", "scipy", "black", "flake8", "isort"]},
)