This repository has been archived by the owner on Jul 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
51 lines (47 loc) · 1.7 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import glob
from setuptools import setup
try:
from setuptools import find_namespace_packages
except ImportError as error:
raise ImportError("Make sure you have setuptools >= 40.1.0 installed!") from error
if __name__ == "__main__":
setup(
name="biome-text",
use_scm_version=True,
setup_requires=["setuptools_scm"],
description="Biome-text is a light-weight open source Natural Language Processing toolbox"
" built with AllenNLP",
author="Recognai",
author_email="francisco@recogn.ai",
url="https://www.recogn.ai/",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
packages=find_namespace_packages("src"),
package_dir={"": "src"},
install_requires=[
"allennlp~=2.7.0",
"beautifulsoup4~=4.9.0",
"captum~=0.2.0",
"click~=7.1.0",
"datasets>=1.10.0,<1.12.0",
"flatdict~=4.0.0",
"lxml~=4.6.2",
"mlflow>=1.13.1,<1.21.0",
"numpy",
"pandas",
"pytorch-lightning~=1.4.0",
"ray[tune]>=1.3.0,<1.7.0",
"spacy>=2.3.0,<3.2.0",
"torch", # the version is defined by allennlp
"transformers", # the version is defined by allennlp
"tqdm>=4.49.0",
"fastapi~=0.63.0", # newer versions brings pydantic conflicts with spaCy 3.0.x
"uvicorn>=0.13.0",
"pyyaml",
],
entry_points={"console_scripts": ["biome=biome.text.cli:main"]},
python_requires=">=3.6.1", # taken from AllenNLP
zip_safe=False,
)