Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 65 lines (56 sloc) 2.29 kb
0526d2e @dcramer Initial commit with fix for utf8prober when char is out of range
authored
1 from setuptools import setup
2
3 # patch distutils if it can't cope with the "classifiers" or "download_url"
4 # keywords (prior to python 2.3.0).
5 from distutils.dist import DistributionMetadata
6 if not hasattr(DistributionMetadata, 'classifiers'):
7 DistributionMetadata.classifiers = None
8 if not hasattr(DistributionMetadata, 'download_url'):
9 DistributionMetadata.download_url = None
2bb3432 @dcramer Bump version
authored
10
0526d2e @dcramer Initial commit with fix for utf8prober when char is out of range
authored
11 setup(
12 name = 'chardet',
0f302b9 @erikrose Add a command-line tool. Bump version to 1.1.
erikrose authored
13 version = '1.1',
0526d2e @dcramer Initial commit with fix for utf8prober when char is out of range
authored
14 description = 'Universal encoding detector',
15 long_description = """\
16 Universal character encoding detector
17 -------------------------------------
18
19 Detects
20 - ASCII, UTF-8, UTF-16 (2 variants), UTF-32 (4 variants)
21 - Big5, GB2312, EUC-TW, HZ-GB-2312, ISO-2022-CN (Traditional and Simplified Chinese)
22 - EUC-JP, SHIFT_JIS, ISO-2022-JP (Japanese)
23 - EUC-KR, ISO-2022-KR (Korean)
24 - KOI8-R, MacCyrillic, IBM855, IBM866, ISO-8859-5, windows-1251 (Cyrillic)
25 - ISO-8859-2, windows-1250 (Hungarian)
26 - ISO-8859-5, windows-1251 (Bulgarian)
27 - windows-1252 (English)
28 - ISO-8859-7, windows-1253 (Greek)
29 - ISO-8859-8, windows-1255 (Visual and Logical Hebrew)
30 - TIS-620 (Thai)
31
32 Requires Python 2.1 or later
0f302b9 @erikrose Add a command-line tool. Bump version to 1.1.
erikrose authored
33
34 Command-line Tool
35 -----------------
36
37 chardet comes with a command-line script which reports on the encodings of one
38 or more files::
39
40 % chardetect.py somefile someotherfile
41 somefile: windows-1252 with confidence 0.5
42 someotherfile: ascii with confidence 1.0
43
0526d2e @dcramer Initial commit with fix for utf8prober when char is out of range
authored
44 """,
45 author='Mark Pilgrim',
46 author_email = 'mark@diveintomark.org',
47 url = 'http://chardet.feedparser.org/',
48 download_url = 'http://chardet.feedparser.org/download/',
49 license = "LGPL",
50 platforms = ['POSIX', 'Windows'],
51 keywords = ['encoding', 'i18n', 'xml'],
52 classifiers = [
53 "Development Status :: 4 - Beta",
54 "Environment :: Other Environment",
55 "Intended Audience :: Developers",
56 "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
57 "Operating System :: OS Independent",
58 "Programming Language :: Python",
59 "Topic :: Software Development :: Libraries :: Python Modules",
60 "Topic :: Text Processing :: Linguistic",
61 ],
0f302b9 @erikrose Add a command-line tool. Bump version to 1.1.
erikrose authored
62 scripts=['bin/chardetect.py'],
0526d2e @dcramer Initial commit with fix for utf8prober when char is out of range
authored
63 packages = ['chardet']
64 )
Something went wrong with that request. Please try again.