-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (97 loc) · 2.04 KB
/
pyproject.toml
File metadata and controls
108 lines (97 loc) · 2.04 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "deepethogram"
version = "0.3.0"
description = "Temporal action detection for biology"
readme = "README.md"
authors = [
{name = "Jim Bohnslav", email = "jbohnslav@gmail.com"},
]
requires-python = ">=3.9,<3.12"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
dependencies = [
"chardet",
"h5py",
"kornia>=0.5",
"matplotlib",
"numpy",
"omegaconf>=2",
"opencv-python-headless",
"opencv-transforms",
"pandas>=1.5,<2.1",
"PySide6>=6.6.0",
"scikit-learn>=1.2,<1.4",
"scipy>=1.9,<1.11",
"torch==2.4.1",
"tqdm",
"vidio",
"pytorch_lightning==1.6.5",
]
[dependency-groups]
dev = [
"ruff>=0.1.0",
"pre-commit>=2.20.0,<3.0.0",
"pytest",
"pytest-cov",
"pytest-qt",
"pytest-xvfb",
"gdown",
"ty>=0.0.1a17",
]
[project.scripts]
deepethogram = "deepethogram.gui.main:entry"
[tool.uv.sources]
torch = [
{ index = "pytorch-cpu", marker = "sys_platform != 'linux'" },
{ index = "pytorch-cu124", marker = "sys_platform == 'linux'" },
]
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[[tool.uv.index]]
name = "pytorch-cu124"
url = "https://download.pytorch.org/whl/cu124"
explicit = true
[tool.setuptools.packages.find]
include = ["deepethogram*"]
[tool.ruff]
# Python version compatibility
target-version = "py311"
# Same as Black.
line-length = 120
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"tests/",
"docs/"
]
[tool.ruff.lint]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []