-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathsetup.py
61 lines (55 loc) · 1.72 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
61
import os
from importlib.machinery import SourceFileLoader
from setuptools import setup, find_packages
version = SourceFileLoader('neuralqa.version', os.path.join(
'neuralqa', 'version.py')).load_module().VERSION
def package_files(directory):
paths = []
for (path, _, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join('..', path, filename))
return paths
ui_files = package_files("neuralqa/server/ui/build")
yaml_file = ["config_default.yaml"]
setup(
name='neuralqa',
packages=find_packages(exclude=['tests', 'tests.*']),
package_data={"neuralqa": ui_files + yaml_file},
version=version,
license='MIT',
description='NeuralQA: Question Answering on Large Datasets',
long_description=open('README.md').read(),
long_description_content_type="text/markdown",
author='Victor Dibia',
url='https://github.com/victordibia/neuralqa',
python_requires='>=3.5',
# download_url='https://github.com/victordibia/neuralqa/archive/v0.0.2.tar.gz',
keywords=['NLP', 'Question Answering', 'Machine Learning'],
install_requires=[
'fastapi',
'aiofiles',
'uvicorn',
'numpy',
'tensorflow>=2.1.0',
'torch',
'torchvision',
'transformers',
'elasticsearch>=7.7.1',
'pyyaml>=3.13',
'spacy'
],
extras_require={
'test': ['pytest']
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
],
entry_points={
"console_scripts": [
"neuralqa=neuralqa.cli:cli",
]
}
)