-
-
Notifications
You must be signed in to change notification settings - Fork 530
/
setup.py
120 lines (108 loc) · 3.81 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# -*- coding: utf-8 -*-
import sys
from setuptools import find_packages, setup
VERSION_SUFFIX = "%d.%d" % sys.version_info[:2]
with open("README.md") as readme:
long_description = readme.read()
dependencies = [
"docopt-ng>=0.6.1",
"breadability>=0.1.20",
"requests>=2.7.0",
"pycountry>=18.2.23",
"nltk>=3.0.2,<3.2.0" if VERSION_SUFFIX == "3.3" else "nltk>=3.0.2", # NLTK 3.2 dropped support for Python 3.3
]
if VERSION_SUFFIX == "3.4": # lxml 4.4.0 dropped support for Python 3.4
dependencies.append("lxml<4.4.0")
# https://blog.ionelmc.ro/presentations/packaging/
setup(
name="sumy",
version="0.11.0",
description="Module for automatic summarization of text documents and HTML pages.",
long_description=long_description,
long_description_content_type="text/markdown",
author="Mišo Belica",
author_email="[email protected]",
url="https://github.com/miso-belica/sumy",
license="Apache License, Version 2.0",
keywords=[
"data mining",
"automatic summarization",
"data reduction",
"web-data extraction",
"NLP",
"natural language processing",
"latent semantic analysis",
"LSA",
"TextRank",
"LexRank",
],
install_requires=dependencies,
tests_require=[
"pytest>=3.0.0",
],
extras_require={
"LSA": ["numpy"],
"LexRank": ["numpy"],
"Japanese": ["tinysegmenter"],
"Chinese": ["jieba"],
"Korean": ["konlpy"],
"Hebrew": ["hebrew_tokenizer"],
"Greek": ["greek-stemmer-pos"],
"Arabic": ["pyarabic"],
"Thai": ["pythainlp"],
},
packages=find_packages(),
package_data={"sumy": [
"data/stopwords/*.txt",
]},
entry_points={
"console_scripts": [
"sumy = sumy.__main__:main",
"sumy-%s = sumy.__main__:main" % VERSION_SUFFIX,
"sumy_eval = sumy.evaluation.__main__:main",
"sumy_eval-%s = sumy.evaluation.__main__:main" % VERSION_SUFFIX,
],
},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: Chinese (Simplified)",
"Natural Language :: Czech",
"Natural Language :: English",
"Natural Language :: French",
"Natural Language :: German",
"Natural Language :: Hebrew",
"Natural Language :: Italian",
"Natural Language :: Japanese",
"Natural Language :: Portuguese",
"Natural Language :: Slovak",
"Natural Language :: Spanish",
"Natural Language :: Swedish",
"Natural Language :: Ukrainian",
"Natural Language :: Greek",
"Natural Language :: Arabic",
"Natural Language :: Thai",
"Topic :: Education",
"Topic :: Internet",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Text Processing :: Filters",
"Topic :: Text Processing :: Linguistic",
"Topic :: Text Processing :: Markup :: HTML",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"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 :: Implementation :: CPython",
],
)