-
Notifications
You must be signed in to change notification settings - Fork 60
/
setup.py
62 lines (54 loc) · 2 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
#!/usr/bin/env python
from __future__ import unicode_literals
import os
import io
from setuptools import setup, find_packages
def setup_package():
package_name = "spacy_stanza"
root = os.path.abspath(os.path.dirname(__file__))
# Read in package meta from about.py
about_path = os.path.join(root, package_name, "about.py")
with io.open(about_path, encoding="utf8") as f:
about = {}
exec(f.read(), about)
# Get readme
readme_path = os.path.join(root, "README.md")
with io.open(readme_path, encoding="utf8") as f:
readme = f.read()
setup(
name="spacy-stanza",
description=about["__summary__"],
long_description=readme,
long_description_content_type="text/markdown",
author=about["__author__"],
author_email=about["__email__"],
url=about["__uri__"],
version=about["__version__"],
license=about["__license__"],
packages=find_packages(),
install_requires=["spacy>=3.0.0,<4.0.0", "stanza>=1.2.0,<1.7.0"],
python_requires=">=3.6",
entry_points={
"spacy_tokenizers": [
"spacy_stanza.PipelineAsTokenizer.v1 = spacy_stanza:tokenizer.create_tokenizer",
]
},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"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",
],
zip_safe=False,
project_urls={
"Release notes": "https://github.com/explosion/spacy-stanza/releases",
"Source": "https://github.com/explosion/spacy-stanza",
},
)
if __name__ == "__main__":
setup_package()