-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (69 loc) · 2.1 KB
/
pyproject.toml
File metadata and controls
79 lines (69 loc) · 2.1 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
[project]
name = "classcounter"
version = "0.1.0"
description = "Fast class counting for numpy arrays, torch tensors, and GeoTIFFs"
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
authors = [{ name = "Nick Wright", email = "nicholas.wright@dpird.wa.gov.au" }]
keywords = ["numpy", "torch", "geotiff", "raster", "classification", "bincount"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: GIS",
"Topic :: Scientific/Engineering :: Image Processing",
]
dependencies = ["numpy>=1.24"]
[project.urls]
Homepage = "https://github.com/DPIRD-DMA/ClassCounter"
Repository = "https://github.com/DPIRD-DMA/ClassCounter"
Issues = "https://github.com/DPIRD-DMA/ClassCounter/issues"
[project.optional-dependencies]
torch = ["torch>=2.0"]
geo = ["rasterio>=1.3"]
numba = ["numba>=0.60"]
all = ["torch>=2.0", "rasterio>=1.3", "numba>=0.60"]
test = ["pytest>=8.0", "pytest-cov>=6.0"]
[dependency-groups]
dev = [
"ruff>=0.15.2",
"torch>=2.0",
"rasterio>=1.3",
"numba>=0.60",
"jupyter>=1.1.1",
"pytest>=8.0",
"pytest-cov>=6.0",
"matplotlib>=3.10.8",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
exclude = [".claude/"]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "UP"]
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"torch: tests requiring PyTorch",
"numba: tests requiring numba",
"geo: tests requiring rasterio",
"slow: tests with large arrays or long runtime",
"install: isolated install tests (slow, uses uv run --script)",
]
addopts = "-v --strict-markers --tb=short"
[tool.coverage.run]
source = ["classcounter"]
omit = ["tests/*"]
[tool.coverage.report]
fail_under = 85
precision = 2