-
Notifications
You must be signed in to change notification settings - Fork 512
/
setup.py
90 lines (82 loc) · 2.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import io
import os
from setuptools import setup, find_packages
packages = [p for p in find_packages()
if "tests" not in p and "debug" not in p]
root = os.path.abspath(os.path.dirname(__file__))
with io.open(os.path.join(root, "snips_nlu", "__about__.py"),
encoding="utf8") as f:
about = dict()
exec(f.read(), about)
with io.open(os.path.join(root, "README.rst"), encoding="utf8") as f:
readme = f.read()
required = [
"deprecation>=2.0,<3.0",
"enum34>=1.1,<2.0; python_version<'3.4'",
"funcsigs>=1.0,<2.0; python_version<'3.4'",
"future>=0.16,<0.18",
"num2words>=0.5.6,<0.6",
"numpy>=1.15,<2.0",
"pathlib>=1.0,<2.0; python_version<'3.4'",
"pyaml>=17.0,<20.0",
"requests>=2.0,<3.0",
"scikit-learn>=0.20,<0.21; python_version<'3.5'",
"scikit-learn>=0.21.1,<0.23; python_version>='3.5'",
"scipy>=1.0,<2.0",
"sklearn-crfsuite>=0.3.6,<0.4",
"snips-nlu-parsers>=0.3.1,<0.5",
"snips-nlu-utils>=0.9,<0.10",
]
extras_require = {
"doc": [
"sphinx>=1.8,<1.9",
"sphinxcontrib-napoleon>=0.6.1,<0.7",
"sphinx-rtd-theme>=0.2.4,<0.3",
"sphinx-tabs>=1.1,<1.2"
],
"metrics": [
"snips-nlu-metrics>=0.14.1,<0.15",
],
"test": [
"mock>=2.0,<3.0",
"snips-nlu-metrics>=0.14.1,<0.15",
"pylint<2",
"coverage>=4.4.2,<5.0",
"checksumdir~=1.1.6",
]
}
setup(name=about["__title__"],
description=about["__summary__"],
long_description=readme,
version=about["__version__"],
author=about["__author__"],
author_email=about["__email__"],
license=about["__license__"],
url=about["__github_url__"],
project_urls={
"Documentation": about["__doc_url__"],
"Source": about["__github_url__"],
"Tracker": about["__tracker_url__"],
},
install_requires=required,
extras_require=extras_require,
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
keywords="nlu nlp language machine learning text processing intent",
packages=packages,
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4',
include_package_data=True,
entry_points={
"console_scripts": [
"snips-nlu=snips_nlu.cli:main"
]
},
zip_safe=False)