-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
117 lines (102 loc) · 2.68 KB
/
pyproject.toml
File metadata and controls
117 lines (102 loc) · 2.68 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
109
110
111
112
113
114
115
116
117
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "britekit"
dynamic = ["version"]
description = 'Core functions for bioacoustic recognizers.'
readme = "README.md"
requires-python = ">=3.9"
license = "MIT"
keywords = []
authors = [
{ name = "Jan Huus", email = "jhuus1@gmail.com" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"click>=8.1,<8.3",
"numpy>=2.0,<2.4",
"onnx>=1.18,<2.0",
"pandas>=2.0,<2.5",
"pyinaturalist>=0.20,<1.0",
"soundfile>=0.13,<1.0",
"torch>=2.5,<2.11",
"torchaudio>=2.5,<2.11",
"librosa>=0.10,<2.0",
"lightning>=2.5,<2.6",
"matplotlib>=3.8,<3.11",
"omegaconf>=2.3,<3.0",
"pytorch_lightning>=2.5,<2.6",
"scipy>=1.13,<2.0",
"tensorboard>=2.19,<3.0",
"timm>=1.0.17,<2.0",
"yt-dlp>=2025.6.25",
"faiss-cpu>=1.10",
]
[project.scripts]
britekit = "britekit.cli:cli"
[project.urls]
Documentation = "https://github.com/jhuus/BriteKit#readme"
Issues = "https://github.com/jhuus/BriteKit/issues"
Source = "https://github.com/jhuus/BriteKit"
[tool.hatch.version]
path = "src/britekit/__about__.py"
[tool.hatch.envs.britekit]
dependencies = [
"pytest>=8.3.5",
"black>=25.0.0",
"ruff>=0.11.12",
"mypy>=1.0.0",
"twine>=6.1.0",
"types-PyYAML",
"types-requests",
]
post-install-commands = [
"pip install -e .",
]
[tool.hatch.envs.britekit.scripts]
test = "pytest {args:tests}"
format = "black src tests"
lint = "ruff check src tests"
typecheck = "mypy src tests"
check = "black --check src tests && ruff check src tests && mypy src tests"
[tool.hatch.build]
include = ["src"]
[tool.hatch.build.targets.wheel]
packages = ["src/britekit"]
# Ensure non-Python sample assets are included in the wheel so
# importlib.resources.files("britekit.install") can access them.
[tool.hatch.build.targets.wheel.force-include]
"install" = "britekit/install"
[tool.hatch.build.targets.sdist]
only-include = [
"src/britekit",
"install",
]
[tool.hatch.build.targets.sdist.force-include]
"install" = "britekit/install"
[tool.coverage.run]
source_pkgs = ["britekit", "tests"]
branch = true
parallel = true
omit = [
"src/britekit/__about__.py",
]
[tool.coverage.paths]
britekit = ["src/britekit", "*/britekit/src/britekit"]
tests = ["tests", "*/britekit/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]