Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (108 loc) · 3.29 KB
/
Copy pathpyproject.toml
File metadata and controls
122 lines (108 loc) · 3.29 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
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
115
116
117
118
119
120
121
122
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "yente"
version = "5.5.0"
description = "A simple and fast API service for querying FollowTheMoney data, including OpenSanctions."
authors = [{ name = "OpenSanctions", email = "info@opensanctions.org" }]
license = { file = "LICENSE" }
readme = "README.md"
dependencies = [
"elasticsearch[async] == 9.4.1",
"opensearch-py[async] == 3.2.0",
"uvicorn[standard] == 0.54.0",
"httpx[http2] == 0.28.1",
# The speedups extra brings in aiodns and Brotli for the async search
# clients. Gotta go fast.
"aiohttp[speedups] == 3.14.5",
"boto3 ~= 1.37",
"fastapi == 0.163.0",
"python-multipart == 0.0.33",
"structlog == 26.1.0",
# Not imported directly. The pin is intentional: pyicu builds from source
# against the system ICU, so we control its version here.
"pyicu == 2.17",
"pydantic",
"orjson == 3.13.0",
"click >= 8.2,< 8.6",
"normality == 3.1.0",
"followthemoney == 4.11.3",
"nomenklatura == 4.18.0",
"rigour == 2.6.2",
"aiocron == 2.1",
"aiofiles == 25.1.0",
"rich",
"opentelemetry-distro[otlp]",
]
requires-python = ">=3.11,<3.15"
[project.urls]
Documentation = "https://www.opensanctions.org/docs/yente/"
Repository = "https://github.com/opensanctions/yente.git"
Issues = "https://github.com/opensanctions/yente/issues"
[project.scripts]
yente = "yente.cli:cli"
[dependency-groups]
dev = [
"ruff",
"build",
"debugpy",
"mypy >=1.13,<3.0",
"pytest == 9.2.0",
"pytest-cov >= 6.0.0, < 8.0.0",
"pytest-asyncio >= 0.25.0, < 2.0.0",
"pytest-httpx >= 0.35.0, < 1.0.0",
"flake8 >= 2.6.0",
"types-aiofiles>=24.0,<26.0",
"boto3-stubs ~= 1.37",
"bump-my-version",
"pip >10.0.0",
"prek",
"types-PyYAML",
"markdown-it-py",
"pyinstrument",
]
# Only resolvable through uv, via tool.uv.sources: a package of the same name
# exists on PyPI, so this group is kept out of the pip installs in CI.
# Using pip, 'pip install -e contrib/bench_utils' directly.
contrib = ["bench-utils"]
docs = [
"pillow",
"cairosvg",
"mkdocs",
"mkdocs-macros-plugin",
"mkdocstrings[python]",
"mkdocs-material",
"mkdocs-redirects",
]
[tool.bumpversion]
current_version = "5.5.0"
commit = true
tag = true
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
[[tool.bumpversion.files]]
filename = "yente/settings.py"
search = 'VERSION = "{current_version}"'
replace = 'VERSION = "{new_version}"'
[[tool.bumpversion.files]]
filename = "docker-compose.yml"
search = "ghcr.io/opensanctions/yente:{current_version}"
replace = "ghcr.io/opensanctions/yente:{new_version}"
[[tool.bumpversion.files]]
filename = "docker-compose.opensearch.yml"
search = "ghcr.io/opensanctions/yente:{current_version}"
replace = "ghcr.io/opensanctions/yente:{new_version}"
[tool.uv]
default-groups = ["dev", "docs", "contrib"]
[tool.uv.sources]
bench-utils = { path = "contrib/bench_utils", editable = true }
[tool.hatch.build.targets.sdist]
only-include = ["yente", "LICENSE", "README.md"]
[tool.pytest.ini_options]
filterwarnings = ["ignore:Elasticsearch built-in security:"]
asyncio_mode = "strict"
# asyncio_default_fixture_loop_scope=session
log_cli = true