-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathsetup.py
51 lines (41 loc) · 1.15 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
#coding:utf-8
import os
import sys
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
readme_file = os.path.join(here, 'README.md')
changes_file = os.path.join(here, 'CHANGES.txt')
def read_text(file_path):
"""
fix the default operating system encoding is not utf8.
"""
if sys.version_info.major < 3:
with open(file_path) as f:
return f.read()
with open(file_path, encoding="utf8") as f:
return f.read()
README = read_text(os.path.join(here, 'README.md'))
CHANGES = read_text(os.path.join(here, 'CHANGES.txt'))
requires = [
'six',
'libwapiti>=0.2.1',
'setuptools>=1.0',
]
test_requirements = [
'nose',
]
setup(
name='genius',
description='genius中文分词 Chinese Segment On linear-chain CRF',
version='3.1.7',
author='duanhongyi',
author_email='duanhyi@gmail.com',
packages=find_packages(),
include_package_data=True,
long_description=README + '\n\n' + CHANGES,
url='https://github.com/duanhongyi/genius',
install_requires=requires,
tests_require=test_requirements,
platforms='all platform',
license='BSD',
)