-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
56 lines (53 loc) · 1.69 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
import setuptools
import subprocess
import platform
with open("README.md","r",encoding="utf-8") as r:
long_description=r.read()
URL="https://github.com/KoichiYasuoka/UD-Kanbun"
pl=platform.platform()
if pl.startswith("CYGWIN"):
install_requires=["ufal.udpipe>=1.2.0.3","mecab-cygwin>=0.5.0","deplacy>=2.1.0"]
else:
import sys
useFugashi=(sys.version_info.major==3)and(sys.version_info.minor>4)
try:
d=subprocess.check_output(["mecab-config","--libs-only-L"])
except:
import os
useFugashi&=(os.name=="nt")
if useFugashi:
install_requires=["ufal.udpipe>=1.2.0.3","fugashi>=1.3.3","deplacy>=2.1.0"]
else:
install_requires=["ufal.udpipe>=1.2.0.3","mecab-python3>=0.996.5","deplacy>=2.1.0"]
setuptools.setup(
name="udkanbun",
version="3.4.5",
description="Tokenizer POS-tagger and Dependency-parser for Classical Chinese",
long_description=long_description,
long_description_content_type="text/markdown",
url=URL,
author="Koichi Yasuoka",
author_email="[email protected]",
license="MIT",
keywords="udpipe mecab nlp",
packages=setuptools.find_packages(),
install_requires=install_requires,
python_requires=">=3.6",
package_data={
"udkanbun":["mecabrc","ud-kanbun.udpipe","mecab-kanbun/*","supar-kanbun/*.txt"],
},
entry_points={
"console_scripts":["udkanbun=udkanbun.cli:main"],
},
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Topic :: Text Processing :: Linguistic",
],
project_urls={
"ud-kanbun":"https://corpus.kanji.zinbun.kyoto-u.ac.jp/gitlab/Kanbun/ud-kanbun",
"Source":URL,
"Tracker":URL+"/issues",
}
)