-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (67 loc) · 2.16 KB
/
Copy pathpyproject.toml
File metadata and controls
77 lines (67 loc) · 2.16 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "anypost"
dynamic = ["version"]
description = "Official Python SDK for the Anypost email API."
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.9"
authors = [{ name = "Anypost" }]
keywords = ["anypost", "email", "transactional-email", "smtp", "api"]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]
dependencies = [
"httpx>=0.25",
"typing_extensions>=4.5",
]
[project.urls]
Homepage = "https://anypost.com"
Documentation = "https://anypost.com/docs"
Repository = "https://github.com/anypost/anypost-python"
Issues = "https://github.com/anypost/anypost-python/issues"
[project.optional-dependencies]
dev = [
"pytest>=8",
"pytest-asyncio>=0.23",
"mypy>=1.8",
"ruff>=0.4",
]
[tool.hatch.version]
# Single source of truth: anypost.__version__.
path = "src/anypost/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["src/anypost"]
[tool.hatch.build.targets.sdist]
include = ["src/anypost", "README.md", "LICENSE"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
[tool.mypy]
strict = true
# Lowest version this mypy build targets; runtime 3.9 compatibility is ensured
# by using typing.List/Optional (not builtin generics or X | None) throughout.
python_version = "3.10"
files = ["src/anypost"]
# The HTTP layer decodes untyped JSON (legitimately Any); each resource
# annotates the real response contract on top of it.
warn_return_any = false
[tool.ruff]
line-length = 100
target-version = "py39"
[tool.ruff.lint]
# No "UP" (pyupgrade): functional TypedDicts evaluate their type expressions at
# runtime, and "X | None" is a runtime error before Python 3.10 — so typing.List
# / Optional are used uniformly and must not be rewritten to builtin generics.
select = ["E", "F", "I", "B"]