forked from dcramer/chardet
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
executable file
·48 lines (46 loc) · 1.78 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
import sys
from setuptools import setup
# Patch distutils if it can't cope with the "classifiers"
# keyword (prior to python 2.3.0):
from distutils.dist import DistributionMetadata
if not hasattr(DistributionMetadata, 'classifiers'):
DistributionMetadata.classifiers = None
kwargs = {}
if sys.version_info >= (3, ):
kwargs['use_2to3'] = True
setup(
name='chardet',
version='2.1.1',
description='Universal encoding detector',
long_description=open('README.rst').read(),
author='Mark Pilgrim',
author_email='mark@diveintomark.org',
url='https://github.com/erikrose/chardet',
license="LGPL",
platforms=['POSIX', 'Windows'],
keywords=['encoding', 'i18n', 'xml'],
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.3",
"Programming Language :: Python :: 2.4",
"Programming Language :: Python :: 2.5",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.1",
"Programming Language :: Python :: 3.2",
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Linguistic",
],
scripts=['bin/chardetect.py'],
packages = ['chardet'],
**kwargs
)