-
Notifications
You must be signed in to change notification settings - Fork 79
/
pyproject.toml
114 lines (97 loc) · 3.37 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
################################################################
#### project config ####
################################################################
[project]
name = "brainscore_vision"
version = "2.2.2"
description = "The Brain-Score library enables model comparisons to behavioral and neural experiments"
authors = []
license = { 'file' = 'LICENSE' }
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"numpy<2",
"brainscore-core",
"result-caching",
"importlib-metadata<5", # workaround to https://github.com/brain-score/brainio/issues/28
"scikit-learn", # for metric_helpers/transformations.py cross-validation
"scipy", # for benchmark_helpers/properties_common.py
"opencv-python", # for microsaccades
"h5py",
"tqdm",
"gitpython",
"fire",
"jupyter",
"pybtex",
"peewee",
"psycopg2-binary",
"networkx",
"eva-decord",
"psutil",
]
[project.optional-dependencies]
test = [
"pytest",
"pytest_check",
"pytest-mock",
"pytest-timeout",
"torch",
"torchvision",
"matplotlib", # for examples
"pytest-mock",
]
[build-system]
requires = [
"setuptools>=65.0.0",
"wheel"
]
################################################################
#### version management config ####
################################################################
[tool.bumpversion]
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
search = "version = \"{current_version}\""
replace = "version = \"{new_version}\""
regex = false
ignore_missing_version = false
tag = true
sign_tags = false
tag_name = "v{new_version}"
tag_message = "Bump version: {current_version} → {new_version}"
allow_dirty = false
commit = true
message = "Bump version: {current_version} → {new_version}"
[[tool.bumpversion.files]]
filename = "pyproject.toml"
################################################################
#### mypy type-checking config ####
################################################################
[tool.mypy]
ignore_missing_imports = true
[tool.pytest.ini_options]
markers = [
"private_access: tests that require access to a private resource, such as assemblies on S3 (note that travis builds originating from forks can not have private access)",
"memory_intense: tests requiring more memory than is available in the travis sandbox (currently 3 GB)", # see https://docs.travis-ci.com/user/common-build-problems/#my-build-script-is-killed-without-any-error
"requires_gpu: tests requiring a GPU to run or to run in a reasonable time (travis does not support GPUs/CUDA)",
"travis_slow: tests running for more than 10 minutes without output (which leads travis to error)",
"slow: tests leading to runtimes that are not possible on the openmind cluster (>1 hour per test)",
]
testpaths = [
"tests"
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::FutureWarning"
]
################################################################
#### setuptools packaging config ####
################################################################
[tool.setuptools]
packages = { find = { where = ["."] } }
[tool.setuptools.package-data]
# include non-python files (e.g. 'requirements.txt') in package install
"brainscore_vision.benchmarks" = ["**"]
"brainscore_vision.data" = ["**"]
"brainscore_vision.metrics" = ["**"]
"brainscore_vision.models" = ["**"]