-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
56 lines (51 loc) · 2.29 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
from setuptools import setup, find_namespace_packages
def _read(filename: str) -> str:
"""
Reads in the content of the file.
:param filename: The file to read.
:return: The file content.
"""
with open(filename, "r") as file:
return file.read()
setup(
name="ufdl-annotations-plugin",
description="Repository with plugins for the wai.annotations library to tie into the UFDL backend.",
long_description=f"{_read('DESCRIPTION.rst')}\n"
f"{_read('CHANGES.rst')}",
url="https://github.com/waikato-ufdl/ufdl-annotations-plugin",
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Topic :: Scientific/Engineering :: Mathematics',
'Programming Language :: Python :: 3',
],
license='Apache License Version 2.0',
package_dir={
'': 'src'
},
packages=find_namespace_packages(where='src'),
namespace_packages=[
"ufdl"
],
version="0.0.1",
author='Corey Sterling',
author_email='[email protected]',
install_requires=[
"ufdl.pythonclient==0.0.1",
"ufdl.json-messages==0.0.1",
"wai.annotations.core>=0.2.2,<0.3",
"moviepy==1.0.3"
],
entry_points={
"wai.annotations.plugins": [
"from-ufdl-ic=ufdl.annotations_plugin.image.classification.specifier:UFDLImageClassificationSourceStageSpecifier",
"to-ufdl-ic=ufdl.annotations_plugin.image.classification.specifier:UFDLImageClassificationSinkStageSpecifier",
"from-ufdl-od=ufdl.annotations_plugin.image.object_detection.specifier:UFDLImageObjectDetectionSourceStageSpecifier",
"to-ufdl-od=ufdl.annotations_plugin.image.object_detection.specifier:UFDLImageObjectDetectionSinkStageSpecifier",
"from-ufdl-sp=ufdl.annotations_plugin.audio.speech.specifier:UFDLSpeechSourceStageSpecifier",
"to-ufdl-sp=ufdl.annotations_plugin.audio.speech.specifier:UFDLSpeechSinkStageSpecifier",
"from-ufdl-sc=ufdl.annotations_plugin.spectra.classification.specifier:UFDLSpectrumClassificationSourceStageSpecifier",
"to-ufdl-sc=ufdl.annotations_plugin.spectra.classification.specifier:UFDLSpectrumClassificationSinkStageSpecifier",
]
}
)