This repository has been archived by the owner on Dec 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (51 loc) · 1.92 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
# -*- coding: utf-8 -*-
import pathlib
import setuptools
def get_nmtpytorch_version():
with open('nmtpytorch/__init__.py') as f:
s = f.read().split('\n')[0]
if '__version__' not in s:
raise RuntimeError('Can not detect version from nmtpytorch/__init__.py')
return eval(s.split(' ')[-1])
with open('README.md') as f:
long_description = f.read()
with open('NEWS.md') as f:
release_notes = f.read()
long_description = long_description.replace(
'## Release Notes\n\nSee [NEWS.md](NEWS.md).\n', release_notes)
setuptools.setup(
name='nmtpytorch',
version=get_nmtpytorch_version(),
description='Sequence-to-Sequence Framework in Pytorch',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/lium-lst/nmtpytorch',
author='Ozan Caglayan',
author_email='[email protected]',
license='MIT',
project_urls={
'Wiki': 'https://github.com/lium-lst/nmtpytorch/wiki',
},
classifiers=[
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
'Operating System :: POSIX',
],
keywords='nmt neural-mt translation sequence-to-sequence deep-learning pytorch',
python_requires='~=3.6',
install_requires=[
'numpy', 'scipy', 'scikit-learn', 'tqdm', 'pillow',
'torch==1.3.1', 'torchvision==0.2.1',
'sacrebleu>=1.2.9', 'tensorboardX==1.1',
'editdistance==0.4', 'subword_nmt==0.3.5',
'sklearn', 'fasttext==0.9.2', 'gensim==3.8.3',
'transformers==3.5.0'
],
include_package_data=True,
exclude_package_data={'': ['.git']},
packages=setuptools.find_packages(),
scripts=[str(p) for p in pathlib.Path('bin').glob('*')],
zip_safe=False)