forked from Britefury/django-labeller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
102 lines (92 loc) · 3.12 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
import os
import fnmatch
from setuptools import find_packages
from setuptools import setup
version = '0.3.2'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.md')).read()
except IOError:
README = ''
def find_data_files(dir, pat):
files = []
for f in os.listdir(dir):
if fnmatch.fnmatch(f, pat):
files.append(os.path.join(dir, f))
return (dir, files)
install_requires = [
'numpy',
'Pillow',
'scikit-image',
'click',
'flask',
'deprecated'
]
tests_require = [
]
django_require = [
'django',
'celery',
]
dextr_require = [
'dextr',
]
qt_require = [
'PyQt5',
]
include_package_data = True
data_files = [
('image_labelling_tool/templates', [
'image_labelling_tool/templates/index.jinja2',
'image_labelling_tool/templates/labeller_page.jinja2',
'image_labelling_tool/templates/labeller_control_qt.jinja2',
'image_labelling_tool/templates/schema_editor_page.jinja2',
'image_labelling_tool/templates/schema_editor_control_qt.jinja2'
]),
('image_labelling_tool/templates/inline', [
'image_labelling_tool/templates/inline/labeller_app.html',
'image_labelling_tool/templates/inline/image_labeller.html',
'image_labelling_tool/templates/inline/image_labeller_css.html',
'image_labelling_tool/templates/inline/image_labeller_scripts.html',
'image_labelling_tool/templates/inline/schema_editor.html',
'image_labelling_tool/templates/inline/schema_editor_css.html',
'image_labelling_tool/templates/inline/schema_editor_scripts.html',
'image_labelling_tool/templates/inline/schema_editor_vue_templates.html',
]),
find_data_files('image_labelling_tool/static', '*.*'),
find_data_files('image_labelling_tool/static/open-iconic/css', '*.*'),
find_data_files('image_labelling_tool/static/open-iconic/fonts', '*.*'),
find_data_files('image_labelling_tool/static/vue', '*.js'),
find_data_files('image_labelling_tool/static/labelling_tool', '*.*'),
find_data_files('image_labelling_tool/static/schema_editor', '*.*'),
]
setup(
name="django-labeller",
version=version,
description="An image labelling tool for creating segmentation data sets, for Django, Flask and Qt.",
long_description="\n\n".join([README]),
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.6",
"Topic :: Software Development :: User Interfaces",
],
keywords="",
author="Geoff French",
# author_email="brittix1023 at gmail dot com",
url="https://github.com/Britefury/django-labeller",
license="MIT",
packages=find_packages(),
include_package_data=include_package_data,
data_files=data_files,
zip_safe=False,
install_requires=install_requires,
extras_require={
'testing': tests_require,
'django': django_require,
'dextr': dextr_require,
'qt5': qt_require,
},
)