forked from thammegowda/nllb-serve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (43 loc) · 1.52 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
import sys
import re
from setuptools import setup, find_namespace_packages
from pathlib import Path
with open("requirements.txt") as f:
reqs = f.readlines()
reqs = [r.strip() for r in reqs]
reqs = [r for r in reqs if r and not r.startswith("#")]
init_file = Path(__file__).parent / 'nllb_serve/__init__.py'
init_txt = init_file.read_text()
version = re.search(
r'''__version__ = ['"]([0-9.]+(-dev)?)['"]''', init_txt).group(1)
description = 'NLLB Serve'
assert version
assert description
packages = find_namespace_packages(include=["nllb_serve*"])
print(f"packages:: {packages}", file=sys.stderr)
setup(name="nllb-serve",
version=version,
description=description,
author="Thamme Gowda",
author_email="[email protected]",
long_description=Path("README.md").read_text(),
long_description_content_type="text/markdown",
url="https://github.com/thammegowda/nllb-serve",
python_requires=">=3.7",
packages=packages,
license="Apache",
install_requires=reqs,
include_package_data=True,
zip_safe=False,
entry_points={"console_scripts": [
"nllb-serve=nllb_serve.app:main",
"nllb-batch=nllb_serve.nllb_batch:main"]
},
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: MIT License",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
)