-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
77 lines (70 loc) · 2.3 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
72
73
74
75
76
77
import os
from setuptools import find_packages, setup
def get_version(fname: str) -> str:
full_path = os.path.join(
os.path.abspath(os.path.dirname(__file__)),
"spacy_udpipe",
fname
)
with open(full_path, "r", encoding="utf-8") as fp:
for line in fp:
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError(
"Unable to find version string."
)
URL = "https://github.com/TakeLab/spacy-udpipe"
with open("README.md", "r", encoding="utf-8") as f:
readme = f.read()
setup(
name="spacy_udpipe",
version=get_version("__init__.py"),
description="Use fast UDPipe models directly in spaCy",
long_description=readme,
long_description_content_type="text/markdown",
url=URL,
author="TakeLab",
author_email="takelab@fer.hr",
license="MIT",
keywords="nlp udpipe spacy python",
packages=find_packages(),
install_requires=[
"spacy>=3.0.0,<4.0.0",
"ufal.udpipe>=1.2.0",
"importlib_resources;python_version<'3.7'",
],
extras_require={
"dev": ["flake8", "pytest", "pytest-mock"],
},
python_requires=">=3.6",
entry_points={
"spacy_tokenizers": [
"spacy_udpipe.PipelineAsTokenizer.v1 = spacy_udpipe:tokenizer.create_tokenizer",
]
},
tests_require=["pytest>=5.0.0"],
package_data={"spacy_udpipe": ["./languages.json"], },
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research"
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Text Processing",
],
project_urls={
"SpaCy": "https://spacy.io/",
"TakeLab": "http://takelab.fer.hr/",
"UDPipe": "http://ufal.mff.cuni.cz/udpipe",
"Source": URL,
"Tracker": URL + "/issues",
},
zip_safe=True
)