-
Notifications
You must be signed in to change notification settings - Fork 46
/
setup.py
86 lines (77 loc) Β· 2.74 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
#!/usr/bin/env python
import sys
from os import walk, path
from setuptools import setup, find_packages
VERSION = '0.21.2'
ENTRY_POINTS = {
'orange3.addon': (
'prototypes = orangecontrib.prototypes',
),
# Entry point used to specify packages containing widgets.
'orange.widgets': (
# Syntax: category name = path.to.package.containing.widgets
# Widget category specification can be seen in
# orangecontrib/datafusion/widgets/__init__.py
'Prototypes = orangecontrib.prototypes.widgets',
),
# Register widget help
"orange.canvas.help": (
'html-index = orangecontrib.prototypes.widgets:WIDGET_HELP_PATH',
),
}
DATA_FILES = [
# Data files that will be installed outside site-packages folder
]
LONG_DESCRIPTION = open(path.join(path.dirname(__file__), 'README.pypi')).read()
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/html', 'help/orange3-prototypes')
setup(
name="Orange3-Prototypes",
description="Prototype Orange widgets β only for the brave.",
version=VERSION,
author='Bioinformatics Laboratory, FRI UL',
author_email='[email protected]',
url='https://github.com/biolab/orange3-prototypes',
keywords=(
'orange3 add-on',
),
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
packages=find_packages(),
package_data={
"orangecontrib.prototypes.widgets": ["icons/*.svg", "tests/*.tab"]
},
install_requires=[
'Orange3>=3.34',
'numpy>=1.19.5',
'scipy>=1.9.0',
'scikit-learn>=1.0.1',
'pyqtgraph',
'AnyQt>=0.1.0',
'pandas>=1.3.0',
'openai>=1',
'tiktoken',
],
extras_require={
'test': ['coverage'],
'doc': ['sphinx', 'recommonmark', 'sphinx_rtd_theme'],
},
entry_points=ENTRY_POINTS,
namespace_packages=['orangecontrib'],
include_package_data=True,
zip_safe=False,
data_files=DATA_FILES,
test_suite="orangecontrib.prototypes.tests.suite",
)