-
Notifications
You must be signed in to change notification settings - Fork 51
/
setup.py
55 lines (47 loc) · 1.53 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
import shutil
import os
from janome.version import JANOME_VERSION
from janome.dic import *
from zipfile import ZipFile
from setuptools import setup
import sys
from io import open
sys.path.append('./janome')
sys.path.append('./tests')
dicdir = 'ipadic'
if os.path.exists(os.path.join(dicdir, 'sysdic.zip')):
if os.path.exists('sysdic'):
shutil.rmtree('sysdic')
print('Unzip dictionary data...')
with ZipFile(os.path.join(dicdir, 'sysdic.zip')) as zf:
zf.extractall("janome")
name = 'janome'
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: Japanese",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10"
]
setup(
name='Janome',
version=JANOME_VERSION,
description='Japanese morphological analysis engine.',
long_description=long_description,
author='Tomoko Uchida',
author_email='[email protected]',
license='AL2',
classifiers=classifiers,
url='https://mocobeta.github.io/janome/en/',
project_urls={
'Source': 'https://github.com/mocobeta/janome',
},
packages=['janome', 'janome.sysdic'],
package_data={'janome.sysdic': ['fst.data*']},
scripts=['bin/janome', 'bin/janome.bat'],
test_suite='suite'
)