-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
58 lines (52 loc) · 1.96 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
56
57
58
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
if not path.exists(path.join(here, 'src/ToMiddleChinese/dict/pos.dict.yaml')):
raise Exception('Please run preprocess.js by `npm ci` first.')
with open(path.join(here, 'README.md')) as f:
long_description = f.read()
with open(path.join(here, 'src/ToMiddleChinese/version.py')) as f:
exec(f.read())
setup(
name='ToMiddleChinese',
version=__version__,
description='中古漢語自動標註工具 Middle Chinese Pronunciation Automatic Labeling Tool',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/nk2028/ToMiddleChinese',
author='Ngiox Khyen 2028 Project',
author_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Linguistic',
'Natural Language :: Chinese (Simplified)',
'Natural Language :: Chinese (Traditional)',
'License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11'
],
keywords='chinese middle-chinese linguistics nlp natural-language-processing',
packages=find_packages('src'),
package_dir={'': 'src'},
package_data={
'ToMiddleChinese': ['dict/*'],
},
include_package_data=True,
python_requires='>=3.5, <4',
install_requires=['pygtrie', 'opencc!=1.1.1', 'jieba'],
entry_points={},
project_urls={
'Bug Reports': 'https://github.com/nk2028/ToMiddleChinese/issues',
'Source': 'https://github.com/nk2028/ToMiddleChinese',
},
zip_safe=False
)