-
Notifications
You must be signed in to change notification settings - Fork 34
/
setup.py
48 lines (42 loc) · 1.09 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
from setuptools import setup
from distutils.core import Command
import os
import sys
import codecs
class TestCommand(Command):
description = "Run tests"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess
errno = subprocess.call(['nosetests', '--debug=DEBUG', '-s'])
raise SystemExit(errno)
setup(
name='mafan',
version='0.3.1',
author='Herman Schaaf',
author_email='[email protected]',
packages=[
'mafan',
'mafan.hanzidentifier',
'mafan.third_party',
'mafan.third_party.jianfan'
],
scripts=['bin/convert.py'],
url='https://github.com/hermanschaaf/mafan',
license='LICENSE.txt',
description='A toolbox for working with the Chinese language in Python',
long_description=codecs.open('docs/README.md', 'r', 'utf-8').read(),
cmdclass={
'test': TestCommand,
},
install_requires=[
"jieba == 0.37",
"argparse == 1.1",
"chardet >= 2.1.1",
"future",
],
)