forked from miso-belica/sumy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
101 lines (90 loc) · 3.07 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
# -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages
VERSION_SUFFIX = "%d.%d" % sys.version_info[:2]
with open("README.rst") as readme:
long_description = readme.read()
# https://blog.ionelmc.ro/presentations/packaging/
setup(
name="sumy",
version="0.7.0",
description="Module for automatic summarization of text documents and HTML pages.",
long_description=long_description,
author="Michal 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=[
"docopt>=0.6.1,<0.7",
"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
],
tests_require=[
"pytest>=3.0.0",
"pytest-cov",
"pytest-watch",
],
extras_require={
"LSA": ["numpy"],
"LexRank": ["numpy"],
"Japanese": ["tinysegmenter"],
"Chinese": ["jieba"],
},
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 :: Japanese",
"Natural Language :: Portuguese",
"Natural Language :: Slovak",
"Natural Language :: Spanish",
"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 :: Implementation :: CPython",
],
)