generated from ssciwr/python-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
94 lines (80 loc) · 2.29 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
[project]
name = "faunanet"
requires-python = ">= 3.9"
authors=[{name = "Harald Mack", email = "[email protected]"}, {name = "Inga Ulusoy", email = "[email protected]"}]
description = "faunanet - A bioacoustics platform for the analysis of animal sounds with neural networks based on birdnetlib"
readme ="README.md"
license={file = "LICENSE"}
classifiers = [
"Programming Language :: Python :: 3.9",
"Operating System :: OS Independent",
"License :: OSI Approved :: Apache Software License",
"Development Status :: 4 - Beta",
"Topic :: Multimedia :: Sound/Audio :: Analysis",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dynamic = ["version"]
dependencies = [
"numpy",
"librosa",
"PyYAML",
"birdnetlib==0.15.0",
"pooch",
"resampy", # for audio loading
"platformdirs", # get cache dirs without os dependence etc
"ffmpeg-python"
]
[project.optional-dependencies]
tensorflow = ["tensorflow"]
tensorflow-lite =["tflite-runtime"]
dev = [
"pytest",
"pytest-cov",
"coverage",
"pre-commit",
"pytest-mock",
"pandas",
]
doc = [
"sphinx",
"myst-parser",
"sphinxcontrib-napoleon",
"sphinx-rtd-theme"
]
[project.urls]
Repository = "https://github.com/ssciwr/faunanet"
Issues = "https://github.com/ssciwr/faunanet/issues"
Documentation = "https://isparrow.readthedocs.io/en/latest/"
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
# Tools
[tool.pytest.ini_options]
minversion = "6.0"
addopts="-v -x"
testpaths = ["tests"]
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.dynamic]
version = { attr = "faunanet.__version__" }
[tool.coverage.run]
branch = true
source = ["./src/faunanet"]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_also = [
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",
# Don't complain if non-runnable code isn't run:
"if __name__ == .__main__.:",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
]
fail_under = 80
[tool.coverage.html]
directory = "coverage_html_report"
[project.scripts]
faunanet = "faunanet.repl:run"