-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathsetup.py
More file actions
174 lines (147 loc) · 4.82 KB
/
setup.py
File metadata and controls
174 lines (147 loc) · 4.82 KB
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
#!/usr/bin/env python
""" File setup.py
Copyright 2017-2025 University of Lausanne (aris.xanthos@unil.ch)
This file is part of the Orange3 Textable Prototypes extension to
Orange Canvas.
Orange3 Textable Prototypes is free software: you can redistribute it
and/or modify it under the terms of the GNU General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Orange3 Textable Prototypes is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Orange3 Textable Prototypes. If not, see
http://www.gnu.org/licenses
"""
from __future__ import unicode_literals
from os import path, walk
import sys
if sys.version_info < (3, ):
raise RuntimeError("Orange3-Textable-Prototypes requires Python 3")
from setuptools import setup, find_packages
__version__ = "0.32" # file version
NAME = 'Orange3-Textable-Prototypes'
DOCUMENTATION_NAME = 'Textable Prototypes'
VERSION = '0.32' # package version
DESCRIPTION = 'Additional widgets for the Textable add-on to Orange 3.'
LONG_DESCRIPTION = open(
path.join(path.dirname(__file__), 'README.rst')
).read()
AUTHOR = 'University of Lausanne'
AUTHOR_EMAIL = 'aris.xanthos@unil.ch'
URL = 'https://github.com/axanthos/orange3-textable-prototypes'
DOWNLOAD_URL = 'https://github.com/axanthos/orange3-textable-prototypes/archive/master.zip'
LICENSE = 'GPLv3'
KEYWORDS = (
'text mining',
'text analysis',
'textable',
'orange3',
'orange3 add-on',
)
CLASSIFIERS = (
'Development Status :: 3 - Alpha',
'Environment :: X11 Applications :: Qt',
'Environment :: Plugins',
'Programming Language :: Python :: 3 :: Only',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Text Processing :: General',
'Topic :: Text Processing :: Linguistic',
'Topic :: Software Development :: Libraries :: Python Modules',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
)
PACKAGES = find_packages()
PACKAGE_DATA = {
'orangecontrib.textable_prototypes': ['tutorials/*.ows'],
'orangecontrib.textable_prototypes.widgets': [
'icons/*',
'cached_title_list',
],
}
DATA_FILES = [
# Data files that will be installed outside site-packages folder
]
INSTALL_REQUIRES = (
'Orange3',
'setuptools',
'future',
'LTTL >= 2.1.0',
'Orange3-Textable >= 3.2.5',
'gensim',
'lxa5crab',
'bs4',
'fuzzywuzzy',
'python-Levenshtein',
'requests',
'praw',
'spacy >= 3.0',
'iso639-lang',
'filetype',
'pdfplumber',
'pymupdf',
'pytesseract',
'pillow',
'scikit-learn',
'gutenbergpy',
'filetype',
'pydub',
'SpeechRecognition',
'imdbpy',
'langdetect',
'deep_translator',
'Mastodon.py',
),
EXTRAS_REQUIRE = {
}
ENTRY_POINTS = {
'orange3.addon': (
'textable_prototypes = orangecontrib.textable_prototypes',
),
'orange.widgets.tutorials': (
'textable_prototypes_tutorials = orangecontrib.textable_prototypes.tutorials',
),
'orange.widgets': (
'Textable Prototypes = orangecontrib.textable_prototypes.widgets',
),
"orange.canvas.help": (
'html-index = orangecontrib.textable_prototypes:WIDGET_HELP_PATH',
),
}
NAMESPACE_PACKAGES = ["orangecontrib"]
TEST_SUITE = "orangecontrib.textable_prototypes.tests.suite"
def include_documentation(local_dir, install_dir):
global DATA_FILES
if 'bdist_wheel' in sys.argv and not path.exists(local_dir):
print("Directory '{}' does not exist. "
"Please build documentation before running bdist_wheel."
.format(path.abspath(local_dir)))
sys.exit(0)
doc_files = []
for dirpath, dirs, files in walk(local_dir):
doc_files.append((dirpath.replace(local_dir, install_dir),
[path.join(dirpath, f) for f in files]))
DATA_FILES.extend(doc_files)
if __name__ == '__main__':
include_documentation('doc/_build', 'help/orange3-textable-prototypes')
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
license=LICENSE,
packages=PACKAGES,
package_data=PACKAGE_DATA,
data_files=DATA_FILES,
install_requires=INSTALL_REQUIRES,
entry_points=ENTRY_POINTS,
keywords=KEYWORDS,
namespace_packages=NAMESPACE_PACKAGES,
test_suite=TEST_SUITE,
include_package_data=True,
zip_safe=False,
)