forked from aboSamoor/polyglot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·123 lines (114 loc) · 4.19 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import io
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with io.open('README.rst', 'r', encoding='utf-8') as readme_file:
readme = readme_file.read()
with io.open('HISTORY.rst', 'r', encoding='utf-8') as history_file:
history = history_file.read().replace('.. :changelog:', '')
with io.open('requirements.txt', 'r', encoding='utf-8') as f:
packages = set(f.read().splitlines())
requirements = list(filter(lambda x: "http" not in x, packages))
test_requirements = [
# TODO: put package test requirements here
]
setup(
name='polyglot',
version='16.07.04',
description='Polyglot is a natural language pipeline that supports massive multilingual applications.',
long_description=readme + '\n\n' + history,
author='Rami Al-Rfou',
author_email='[email protected]',
url='https://github.com/aboSamoor/polyglot',
packages = ['polyglot',
'polyglot.detect',
'polyglot.tokenize',
'polyglot.mapping',
'polyglot.tag',
'polyglot.transliteration'],
entry_points={
'console_scripts': [
'polyglot = polyglot.__main__:main',
],
},
include_package_data=True,
install_requires=requirements,
license="GPLv3",
zip_safe=False,
keywords='polyglot',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'Intended Audience :: Education',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Natural Language :: Afrikaans',
'Natural Language :: Arabic',
'Natural Language :: Bengali',
'Natural Language :: Bosnian',
'Natural Language :: Bulgarian',
'Natural Language :: Catalan',
'Natural Language :: Chinese (Simplified)',
'Natural Language :: Chinese (Traditional)',
'Natural Language :: Croatian',
'Natural Language :: Czech',
'Natural Language :: Danish',
'Natural Language :: Dutch',
'Natural Language :: English',
'Natural Language :: Esperanto',
'Natural Language :: Finnish',
'Natural Language :: French',
'Natural Language :: Galician',
'Natural Language :: German',
'Natural Language :: Greek',
'Natural Language :: Hebrew',
'Natural Language :: Hindi',
'Natural Language :: Hungarian',
'Natural Language :: Icelandic',
'Natural Language :: Indonesian',
'Natural Language :: Italian',
'Natural Language :: Japanese',
'Natural Language :: Javanese',
'Natural Language :: Korean',
'Natural Language :: Latin',
'Natural Language :: Latvian',
'Natural Language :: Macedonian',
'Natural Language :: Malay',
'Natural Language :: Marathi',
'Natural Language :: Norwegian',
'Natural Language :: Panjabi',
'Natural Language :: Persian',
'Natural Language :: Polish',
'Natural Language :: Portuguese',
'Natural Language :: Portuguese (Brazilian)',
'Natural Language :: Romanian',
'Natural Language :: Russian',
'Natural Language :: Serbian',
'Natural Language :: Slovak',
'Natural Language :: Slovenian',
'Natural Language :: Spanish',
'Natural Language :: Swedish',
'Natural Language :: Tamil',
'Natural Language :: Telugu',
'Natural Language :: Thai',
'Natural Language :: Turkish',
'Natural Language :: Ukranian',
'Natural Language :: Urdu',
'Natural Language :: Vietnamese',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Text Processing :: Linguistic',
],
test_suite='tests',
tests_require=test_requirements,
)