forked from asyml/texar-pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (54 loc) · 1.79 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 sys
import setuptools
long_description = """
Texar-PyTorch is an open-source toolkit based on PyTorch,
aiming to support a broad set of machine learning especially text generation
tasks, such as machine translation, dialog, summarization, content manipulation,
language modeling, and so on.
Texar is designed for both researchers and practitioners for fast prototyping
and experimentation. Checkout https://github.com/asyml/texar for the TensorFlow
version which has the same functionalities and (mostly) the same interfaces.
"""
if sys.version_info < (3, 6):
sys.exit('Python>=3.6 is required by Texar-PyTorch.')
setuptools.setup(
name="texar-pytorch",
version="0.1.1-unreleased",
url="https://github.com/asyml/texar-pytorch",
description="Toolkit for Machine Learning and Text Generation",
long_description=long_description,
license='Apache License Version 2.0',
packages=[
f"texar.{name}"
for name in setuptools.find_packages(where='texar')
],
platforms='any',
install_requires=[
'regex>=2018.01.10',
'numpy',
'requests',
'funcsigs',
'sentencepiece>=0.1.8',
'mypy_extensions',
'packaging>=19.0'
],
extras_require={
'torch': ['torch>=1.0.0'],
'examples': [],
'extras': ['Pillow>=3.0', 'tensorboardX>=1.8'],
},
package_data={
"texar.torch": [
"../../bin/utils/multi-bleu.perl",
]
},
classifiers=[
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
)