forked from facebookresearch/spiritlm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
60 lines (51 loc) · 1.69 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
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the FAIR Noncommercial Research License
# found in the LICENSE file in the root directory of this source tree.
import os
from pathlib import Path
from setuptools import find_packages, setup
NAME = "spiritlm"
VERSION = "0.1.0"
DESCRIPTION = "Interleaved Spoken and Written Language Model"
URL = "https://github.com/facebookresearch/spiritlm"
KEYWORDS = [
"Language Model, Speech Language Model, Multimodal, Crossmodal, Expressivity Modeling"
]
LICENSE = "FAIR Noncommercial Research License"
def _get_long_description():
with (Path(__file__).parent / "README.md").open(encoding="utf-8") as file:
long_description = file.read()
return long_description
def _read_reqs(relpath):
fullpath = os.path.join(os.path.dirname(__file__), relpath)
with open(fullpath) as f:
return [
s.strip() for s in f.readlines() if (s.strip() and not s.startswith("#"))
]
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=_get_long_description(),
long_description_content_type="text/plain",
url=URL,
license=LICENSE,
author="Meta",
keywords=KEYWORDS,
classifiers=[
"Intended Audience :: Science/Research",
"License :: FAIR Noncommercial Research License",
"Topic :: Multimedia :: Sound/Audio",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
packages=find_packages(),
zip_safe=False,
python_requires=">=3.9",
install_requires=_read_reqs("requirements.txt"),
extras_require={
"dev": ["pytest"],
"eval": ["pandas"],
},
)