-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
75 lines (65 loc) · 2.36 KB
/
Copy pathpyproject.toml
File metadata and controls
75 lines (65 loc) · 2.36 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
[project]
name = "postmark-python"
version = "0.3.4"
description = "The Official Postmark Python SDK."
authors = [
{ name = "Greg Svoboda", email = "gsvoboda@activecampaign.com" },
]
license = "MIT"
license-files = ["LICENSE"]
readme = "README.md"
requires-python = ">=3.10,<4.0"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Communications :: Email",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
"httpx>=0.28.1,<0.29.0", # concurrency (async) and HTTP requests
"pydantic>=2.6.0,<3.0.0", # type safety and validation
"email-validator>=2.1.1,<3.0.0", # required by pydantic.EmailStr for email format validation
"tenacity>=8.2.3,<9.0.0", # resilience and retry logic
]
[project.urls]
Homepage = "https://postmarkapp.com/developer/integration/official-libraries"
Repository = "https://github.com/ActiveCampaign/postmark-python"
Documentation = "https://github.com/ActiveCampaign/postmark-python/wiki"
Issues = "https://github.com/ActiveCampaign/postmark-python/issues"
# Poetry-specific build config; package dir differs from the normalized project name.
[tool.poetry]
packages = [{ include = "postmark" }]
[tool.poetry.group.dev.dependencies]
pytest = "^8.1.1" # Testing framework
pytest-asyncio = "^1.0.0" # To run async tests with pytest
respx = "^0.21.0" # Mocking HTTP requests for testing
pytest-cov = "^7.0.0" # For coverage reports
mypy = "^2.1.0"
ruff = "^0.15.0"
pre-commit = "^4.0.0"
python-dotenv = "^1.2.2"
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = ["E", "F", "I", "N"]
ignore = ["N818", "E501"] # allow "Exception" suffix on exception classes
[tool.pytest.ini_options]
asyncio_mode = "auto"
[tool.mypy]
ignore_missing_imports = true
exclude = ["^examples/"]
[tool.bandit]
skips = ["B101"] # assert statements are fine in tests
exclude_dirs = ["tests"]
[tool.coverage.report]
omit = ["*/enums.py"]
[build-system]
requires = ["poetry-core>=2.4.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"