2018-05-16 13:44:24 +03:00
|
|
|
from setuptools import setup, find_packages
|
|
|
|
import unittest
|
2018-05-17 15:08:24 +03:00
|
|
|
import codecs
|
2018-05-16 13:44:24 +03:00
|
|
|
|
|
|
|
def test_suite():
|
|
|
|
test_loader = unittest.TestLoader()
|
|
|
|
test_suite = test_loader.discover('subword_nmt/tests', pattern='test_*.py')
|
|
|
|
|
|
|
|
return test_suite
|
|
|
|
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name='subword_nmt',
|
2019-11-25 19:54:19 +03:00
|
|
|
version='0.3.7',
|
2018-05-16 13:44:24 +03:00
|
|
|
description='Unsupervised Word Segmentation for Neural Machine Translation and Text Generation',
|
2018-05-17 15:28:21 +03:00
|
|
|
long_description=(codecs.open("README.md", encoding='utf-8').read() +
|
2018-05-17 15:08:24 +03:00
|
|
|
"\n\n" + codecs.open("CHANGELOG.md", encoding='utf-8').read()),
|
2018-05-17 15:28:21 +03:00
|
|
|
long_description_content_type="text/markdown",
|
2018-05-16 13:44:24 +03:00
|
|
|
url='https://github.com/rsennrich/subword-nmt',
|
|
|
|
author='Rico Sennrich',
|
|
|
|
license='MIT',
|
|
|
|
test_suite='setup.test_suite',
|
2018-05-17 15:28:21 +03:00
|
|
|
classifiers=[
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'Topic :: Text Processing',
|
|
|
|
'Topic :: Scientific/Engineering :: Artificial Intelligence',
|
|
|
|
'License :: OSI Approved :: MIT License',
|
|
|
|
'Programming Language :: Python :: 2',
|
|
|
|
'Programming Language :: Python :: 3',
|
|
|
|
],
|
2018-05-16 13:44:24 +03:00
|
|
|
packages=find_packages(),
|
|
|
|
entry_points={
|
2018-05-16 18:32:55 +03:00
|
|
|
'console_scripts': ['subword-nmt=subword_nmt.subword_nmt:main'],
|
2018-05-16 13:44:24 +03:00
|
|
|
},
|
|
|
|
include_package_data=True
|
|
|
|
)
|