Diff of /setup.py [000000] .. [dc40d0]

Switch to unified view

a b/setup.py
1
"""
2
 Copyright (c) 2022, salesforce.com, inc.
3
 All rights reserved.
4
 SPDX-License-Identifier: BSD-3-Clause
5
 For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
"""
7
8
from setuptools import setup, find_namespace_packages
9
import platform
10
11
DEPENDENCY_LINKS = []
12
if platform.system() == "Windows":
13
    DEPENDENCY_LINKS.append("https://download.pytorch.org/whl/torch_stable.html")
14
15
16
def fetch_requirements(filename):
17
    with open(filename) as f:
18
        return [ln.strip() for ln in f.read().split("\n")]
19
20
21
setup(
22
    name="salesforce-lavis",
23
    version="1.0.1",
24
    author="Dongxu Li, Junnan Li, Hung Le, Guangsen Wang, Silvio Savarese, Steven C.H. Hoi",
25
    description="LAVIS - A One-stop Library for Language-Vision Intelligence",
26
    long_description=open("README.md", "r", encoding="utf-8").read(),
27
    long_description_content_type="text/markdown",
28
    keywords="Vision-Language, Multimodal, Image Captioning, Generative AI, Deep Learning, Library, PyTorch",
29
    license="3-Clause BSD",
30
    packages=find_namespace_packages(include="lavis.*"),
31
    install_requires=fetch_requirements("requirements.txt"),
32
    python_requires=">=3.7.0",
33
    include_package_data=True,
34
    dependency_links=DEPENDENCY_LINKS,
35
    zip_safe=False,
36
)