-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
96 lines (85 loc) · 2.09 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
[project]
name = "cityseg"
version = "0.3.1rc0"
description = "A flexible and efficient semantic segmentation pipeline for processing images and videos"
authors = [
{ name = "Andrew Mitchell", email = "[email protected]" }
]
dependencies = [
"torch>=2.4.0",
"torchvision>=0.19.0",
"transformers>=4.43.2",
"opencv-python>=4.10.0.84",
"numpy>=2.0.1",
"pillow>=10.4.0",
"h5py>=3.11.0",
"pandas[performance]>=2.2.2",
"tqdm>=4.66.4",
"pyyaml>=6.0.1",
"scipy>=1.14.0",
"loguru>=0.7.2",
]
readme = "README.md"
requires-python = ">=3.10"
license = { text = "BSD-3-Clause" }
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
managed = true
default-groups = ["dev", "test"]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/cityseg"]
[dependency-groups]
dev = [
"rich>=13.9.4",
]
docs = [
"mkdocs>=1.6.1",
"mkdocs-material>=9.5.44",
"mkdocstrings[python]>=0.27.0",
]
test = [
"pytest>=8.3.3",
"pytest-cov>=6.0.0",
]
[tool.pytest.ini_options]
addopts = "-v --tb=short --durations=5 --cov=src/cityseg --cov-report=term"
testpaths = ["tests", "src/cityseg"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
console_output_style = "count"
markers = [
"slow: mark test as slow",
"skip: mark test as skipped",
"skipif: mark test as skipped if condition is met",
"xfail: mark test as expected to fail",
"parametrize: mark test as parametrized"
]
[tool.hatch.build.targets.sdist]
exclude = [
"*.hdf5",
"docs/tutorials",
"docs/img"
]
[tool.bumpver]
current_version = "v0.3.1rc0"
version_pattern = "vMAJOR.MINOR.PATCH[[-]PYTAGNUM]"
commit_message = "bump version {old_version} -> {new_version}"
tag_message = "{new_version}"
commit = true
tag = true
push = true
[tool.bumpver.file_patterns]
"pyproject.toml" = [
'^current_version = "{version}"',
'^version = "{pep440_version}"',
]
"src/cityseg/__init__.py" = [
'^__version__ = "{pep440_version}"',
]
[project.scripts]
cityseg = "cityseg.main:main"