-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathpyproject.toml
More file actions
65 lines (58 loc) · 1.88 KB
/
Copy pathpyproject.toml
File metadata and controls
65 lines (58 loc) · 1.88 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "opensak"
dynamic = ["version"]
description = "OpenSAK — Open Source geocaching management tool (GSAK successor)"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.11"
dependencies = [
"sqlalchemy>=2.0",
"alembic>=1.13",
"lxml>=5.0",
"PySide6>=6.6",
"numpy>=1.24",
"certifi>=2024.2.2",
"shapely>=2.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-cov",
"pytest-qt>=4.0",
"mypy>=1.8",
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.dynamic]
version = { attr = "opensak.__version__" }
[tool.pytest.ini_options]
testpaths = ["tests/unit-tests", "tests/e2e-tests"]
pythonpath = ["src", "."]
addopts = "--import-mode=importlib"
# tests/screenshots is a separate, slower, opt-in suite for generating
# marketing/doc screenshots (site/, User Guide) — it must not run as part of
# a normal `pytest tests/` sweep. Run it explicitly: pytest tests/screenshots -v
norecursedirs = [".git", ".venv", "build", "dist", "tests/screenshots"]
markers = [
"gui: tests that require a display and pytest-qt",
]
# The whole repo is type-checked: package, entry point, scripts and tests.
[tool.mypy]
files = ["src/opensak", "run.py", "scripts", "tests"]
# The hyphenated test dirs can't be packages, so the two suite-level
# conftest.py files both map to module "conftest". Exclude the e2e one here to
# break the clash; it is type-checked on its own in the quality workflow.
exclude = ["tests/e2e-tests/conftest.py"]
mypy_path = "src"
explicit_package_bases = true
namespace_packages = true
python_version = "3.12"
follow_imports = "silent"
ignore_missing_imports = true
[project.scripts]
opensak = "opensak.utils.run_cli:main"
opensak-test = "opensak.utils.run_test:run"
opensak-doctor = "opensak.utils.doctor:run"