forked from Kitware/SMQTK-Detection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
94 lines (88 loc) · 3.16 KB
/
pyproject.toml
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
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "smqtk-detection"
version = "0.20.1"
description = "Algorithms, data structures and utilities around performing detection of inputs"
license = "BSD-3-Clause"
authors = ["Kitware, Inc. <[email protected]>"]
readme = "README.md"
repository = "https://github.com/Kitware/SMQTK-Detection"
documentation = "https://smqtk-detection.readthedocs.io/"
classifiers = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Unix',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
]
[tool.poetry.dependencies]
python = "^3.8"
smqtk-core = ">=0.18.0"
smqtk-classifier = ">=0.19.0"
smqtk-dataprovider = ">=0.16.0"
smqtk-image-io = [
{ version = ">=0.16.2", python = "<3.11" },
{ version = ">=0.17.0", python=">=3.11"}
]
torch = {version = ">=1.10.0,!=2.0.1", optional = true}
torchvision = {version = ">=0.11.1", optional = true}
opencv-python = {version = ">=4.5.2.0", optional = true}
numba = {version = ">=0.56.4", optional = true}
[tool.poetry.extras]
torch = [ "torch", "torchvision" ]
centernet = [ "torch", "opencv-python", "numba" ]
[tool.poetry.dev-dependencies]
#CI
flake8 = [
# Hinge because 6.0 minimum supported python version is 3.8.1
{ version = ">=5", python = "<3.8.1" },
{ version = ">=6", python = ">=3.8.1" }
]
flake8-mutable = ">=1.2.0"
mypy = ">=0.790"
#Docs
Sphinx = ">=3.2.1"
sphinx-rtd-theme = ">=0.5.0"
sphinx-argparse = ">=0.2.5"
sphinx-prompt = ">=1.3.0"
livereload = ">=2.6.3"
# Testing
coverage = ">=6"
pytest = ">=6"
pytest-cov = ">=3"
requests = ">=2.26.0"
types-requests = ">=2.26.0"
# Development
ipython = ">=7.16.3"
[tool.poetry.plugins."smqtk_plugins"]
# Detection Element
"smqtk_detection.impls.detection_element.memory" = "smqtk_detection.impls.detection_element.memory"
"smqtk_detection.impls.detect_image_objects.random_detector" = "smqtk_detection.impls.detect_image_objects.random_detector"
"smqtk_detection.impls.detect_image_objects.resnet_frcnn" = "smqtk_detection.impls.detect_image_objects.resnet_frcnn"
"smqtk_detection.impls.detect_image_objects.centernet" = "smqtk_detection.impls.detect_image_objects.centernet"
[tool.pytest.ini_options]
addopts = [
"-lv", # Show local in trace-backs.
"--doctest-modules", # Increased verbosity.
"--tb=long", # Trace-back print mode.
"--cov=./smqtk_detection", # Cover our package specifically
"--cov=./tests", # Also cover our tests for dead spots
"--cov-report=term", # Coverage report to terminal
"--cov-report=xml:coverage.xml" # For external tool reporting
]
testpaths = [
"tests",
"smqtk_detection",
]
doctest_optionflags = [
"NORMALIZE_WHITESPACE",
"IGNORE_EXCEPTION_DETAIL",
]