-
-
Notifications
You must be signed in to change notification settings - Fork 337
Expand file tree
/
Copy pathpyproject.toml
More file actions
94 lines (85 loc) · 2.46 KB
/
pyproject.toml
File metadata and controls
94 lines (85 loc) · 2.46 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
[build-system]
requires = ["setuptools>=61", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "anylabeling"
dynamic = ["version"]
description = "Effortless data labeling with AI support"
readme = "README.md"
license = { text = "GPLv3" }
authors = [{ name = "Viet-Anh Nguyen", email = "vietanh.dev@gmail.com" }]
keywords = ["Image Annotation", "Machine Learning", "Deep Learning"]
requires-python = ">=3.11"
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
]
dependencies = [
"imgviz>=2.0.0",
"natsort>=8.0.0",
"numpy>=2.0.0",
"Pillow>=10.0.0",
"PyYAML>=6.0.2",
"termcolor>=2.0.0",
"opencv-python-headless>=4.10.0",
"PyQt6>=6.5.0; platform_system != 'Darwin'",
"onnx>=1.18.0",
"onnxruntime>=1.20.0",
"qimage2ndarray>=1.10.0",
"darkdetect>=0.8.0",
"huggingface_hub",
"osam>=0.3.1", # CLIP tokenizer for SAM3 language encoder
]
[project.optional-dependencies]
# Windows/Linux GPU — replaces onnxruntime with GPU variant
gpu = [
"onnxruntime-gpu>=1.20.0",
]
# macOS extras (CoreML support)
macos = [
"coremltools==8.3.0",
]
# Developer tooling
dev = [
"build>=1.2",
"twine>=6.0",
]
[project.urls]
Homepage = "https://github.com/vietanhdev/anylabeling"
[project.scripts]
anylabeling = "anylabeling.app:main"
[tool.setuptools.dynamic]
version = { attr = "anylabeling.app_info.__version__" }
[tool.setuptools.packages.find]
where = ["."]
[tool.ruff]
line-length = 88
target-version = "py311"
exclude = [
".git",
"__pycache__",
"build",
"dist",
"*.egg-info",
]
[tool.ruff.lint]
# E = pycodestyle errors, W = pycodestyle warnings
# F = pyflakes (unused imports, undefined names, etc.)
# I = isort (import ordering)
# UP = pyupgrade (modern Python idioms)
select = ["E", "W", "F", "I", "UP"]
ignore = [
"E501", # line too long (handled by formatter)
"E741", # ambiguous variable name (l, O, I) — common in ML code
"UP006", # use `list` instead of `List` (too noisy for now)
"UP007", # use `X | Y` instead of `Optional[X]` (too noisy for now)
]
[tool.ruff.lint.per-file-ignores]
# Test files may use star imports and assert statements freely
"tests/*" = ["F401", "F811"]