forked from amaiya/ktrain
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
79 lines (72 loc) · 2.74 KB
/
Copy pathsetup.py
File metadata and controls
79 lines (72 loc) · 2.74 KB
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
import sys
if sys.version_info.major != 3: raise Exception('ktrain requires Python 3')
tf_version_str = 'tensorflow==2.1.0'
if sys.version_info.minor == 8:
tf_version_str = 'tensorflow==2.2.0'
from distutils.core import setup
import setuptools
with open('README.md', encoding='utf-8') as readme_file:
readme_file.readline()
readme = readme_file.read()
exec(open('ktrain/version.py').read())
setup(
name = 'ktrain',
packages = setuptools.find_packages(),
package_data={'ktrain': ['text/shallownlp/ner_models/*']},
version = __version__,
license='Apache License 2.0',
description = 'ktrain is a wrapper for TensorFlow Keras that makes deep learning and AI more accessible and easier to apply',
#description = 'ktrain is a lightweight wrapper for TensorFlow Keras to help train neural networks',
long_description = readme,
long_description_content_type = 'text/markdown',
author = 'Arun S. Maiya',
author_email = 'arun@maiya.net',
url = 'https://github.com/amaiya/ktrain',
keywords = ['tensorflow', 'keras', 'deep learning', 'machine learning'],
install_requires=[
tf_version_str,
'scipy==1.4.1', # pinned to 1.4.1 due to TF 2.1.0/2.2.0 setup.py requirement
'scikit-learn==0.21.3', # affects format of predictor.explain
'matplotlib >= 3.0.0',
'pandas >= 1.0.1',
'fastprogress >= 0.1.21',
'keras_bert>=0.81.0',
'requests',
'joblib',
'langdetect',
'jieba',
# fix cchardet to 2.1.5 due to this issue: https://github.com/PyYoshi/cChardet/issues/61
'cchardet==2.1.5',
'networkx>=2.3',
'bokeh',
'seqeval',
'packaging',
'tensorflow_datasets',
'transformers>=2.11.0', # due to breaking change in v2.11.0
'ipython',
'syntok',
'whoosh',
'shap',
#'stellargraph>=0.8.2',
#'eli5 >= 0.10.0',
#'allennlp', # required for Elmo embeddings since TF2 TF_HUB does not work
#'pillow'
],
classifiers=[ # Optional
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 4 - Beta',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
# Pick your license as you wish
'License :: OSI Approved :: Apache Software License',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
)