-
Notifications
You must be signed in to change notification settings - Fork 32
/
setup.py
81 lines (71 loc) · 2.41 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
# -*- coding: utf-8 -*-
"""
Hangulize
~~~~~~~~~
Hangulize transcribes a loanword to Hangul(the Korean alphabet).
>>> print hangulize(u"Giro d'Italia", 'ita')
지로 디탈리아
>>> print hangulize(u'オオサカ', 'jpn')
오사카
>>> print hangulize(u'przyjaciół', 'pol')
프시야치우
>>> print hangulize(u'Алексеев', 'rus')
알렉세예프
>>> print hangulize(u'კახაბერ', 'kat.narrow')
까하베르
>>> print hangulize(u'Ἡρακλῆς', 'grc')
헤라클레스
Links
`````
* `Try Online <http://www.hangulize.org/>`_
* `GitHub repository <http://github.com/sublee/hangulize>`_
* `development version
<http://github.com/sublee/hangulize/zipball/master#egg=hangulize-dev>`_
"""
import re
import io
from setuptools import setup, find_packages
from cmds import cmdclass
# detect the current version.
with io.open('hangulize/__init__.py', encoding='utf-8') as f:
version = re.search(r'__version__\s*=\s*\'(.+?)\'', f.read()).group(1)
assert version
setup(
name='hangulize',
version=version,
license='BSD',
author='Heungsub',
author_email=re.sub('((sub).)(.*)', r'\2@\1.\3', 'sublee'),
url='http://hangulize.org/',
description='Korean Alphabet Transcription',
long_description=__doc__,
zip_safe=False,
platforms='any',
packages=find_packages(),
package_dir={'hangulize': 'hangulize'},
py_modules=['cmds'],
install_requires=['six'],
test_suite='tests.suite_for_setup',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: Korean',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Linguistic'
],
cmdclass=cmdclass()
)