-
Notifications
You must be signed in to change notification settings - Fork 20
/
setup.py
62 lines (47 loc) · 1.75 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
#!/usr/bin/python
from distutils.core import Command, setup
import unittest
UNITTESTS = [
"tests",
]
class TestCommand(Command):
user_options = [ ]
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
suite = unittest.TestSuite()
suite.addTests(
unittest.defaultTestLoader.loadTestsFromNames(
UNITTESTS ) )
result = unittest.TextTestRunner(verbosity=2).run(suite)
setup(name='Unidecode',
version='0.4.9',
description='US-ASCII transliterations of Unicode text',
license='Perl',
long_description="""
It often happens that you have non-Roman text data in Unicode, but
you can't display it -- usually because you're trying to show it
to a user via an application that doesn't support Unicode, or
because the fonts you need aren't accessible. You could represent
the Unicode characters as "???????" or "\15BA\15A0\1610...", but
that's nearly useless to the user who actually wants to read what
the text says.
What Unidecode provides is a function, 'unidecode(...)' that
takes Unicode data and tries to represent it in ASCII characters
(i.e., the universally displayable characters between 0x00 and 0x7F).
The representation is almost always an attempt at transliteration
-- i.e., conveying, in Roman letters, the pronunciation expressed by
the text in some other writing system.
For example 'unidecode(u"\u5317\u4EB0")' returns 'Bei Jing'.
This is a Python port of Text::Unidecode Perl module by
Sean M. Burke <sburke@cpan.org>.
""",
author='Tomaz Solc',
author_email='tomaz.solc@tablix.org',
packages = [ 'unidecode' ],
provides = [ 'unidecode' ],
cmdclass = { 'test': TestCommand },
url = 'https://github.com/iki/unidecode/'
)