-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.py
71 lines (61 loc) · 2.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#! /usr/bin/env python
# coding: utf8
from __future__ import print_function
import re
from pathlib import Path
import setuptools
from pkg_resources import parse_version
assert parse_version(setuptools.__version__) >= parse_version("38.6.0")
def get_version(prop, project):
project = Path(__file__).parent / project / "vars.py"
result = re.search(
r'{}\s*=\s*[\'"]([^\'"]*)[\'"]'.format(prop),
project.read_text(encoding="utf-8-sig"),
)
return result.group(1)
def read(fname):
p = Path(__file__).parent / fname
with p.open(encoding="utf-8-sig") as f:
return f.read()
setuptools.setup(
name="botok",
version=get_version("__version__", "botok"), # edit version in botok/vars.py
author="Esukhia development team",
author_email="[email protected]",
description="Tibetan Word Tokenizer",
license="Apache2",
keywords="nlp computational_linguistics tibetan tokenizer token",
url="https://github.com/Esukhia/botok",
packages=setuptools.find_packages(),
long_description=read("README.md"),
long_description_content_type="text/markdown",
project_urls={
"Source": "https://github.com/Esukhia/botok",
"Tracker": "https://github.com/Esukhia/botok/issues",
},
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Text Processing :: Linguistic",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: Tibetan",
],
package_data={
"botok": [
"resources/*",
"resources/words_bo/*",
"resources/entry_data/*",
"resources/words_non_inflected/*",
"resources/lemmas/*",
"resources/rules/*",
"resources/words_skrt/*",
"resources/adjustment/*",
]
},
python_requires=">=3.6",
tests_require=["pytest>=5.0.0"],
install_requires=["pyyaml", "requests"],
)