67 lines
1.5 KiB
TOML
67 lines
1.5 KiB
TOML
[build-system]
|
|
requires = ["hatchling", "hatch-vcs"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "http2smtp"
|
|
description = 'An HTTP to SMTP gateway'
|
|
readme = "README.rst"
|
|
requires-python = ">=3.11"
|
|
license = "MIT"
|
|
keywords = []
|
|
authors = [
|
|
{ name = "Raoul Snyman", email = "raoul@snyman.info" },
|
|
]
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Programming Language :: Python",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
"Programming Language :: Python :: Implementation :: PyPy",
|
|
]
|
|
dependencies = [
|
|
"bs4",
|
|
"FastAPI",
|
|
"fastapi-mail",
|
|
"pydantic-settings",
|
|
"uvicorn[standard]"
|
|
]
|
|
dynamic = ["version"]
|
|
|
|
[project.urls]
|
|
Documentation = "https://git.libertytechforce.com/libertytechforce/http2smtp#readme"
|
|
Issues = "https://git.libertytechforce.com/libertytechforce/http2smtp/issues"
|
|
Source = "https://git.libertytechforce.com/libertytechforce/http2smtp"
|
|
|
|
[tool.hatch.version]
|
|
source = "vcs"
|
|
|
|
[tool.hatch.envs.default]
|
|
dependencies = [
|
|
"flake8",
|
|
"pytest",
|
|
"pytest-cov"
|
|
]
|
|
|
|
[tool.hatch.envs.default.scripts]
|
|
serve = "uvicorn http2smtp.app:app --reload"
|
|
lint = "flake8"
|
|
test = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=http2smtp --cov=tests {args}"
|
|
|
|
[[tool.hatch.envs.test.matrix]]
|
|
python = ["311"]
|
|
|
|
[tool.coverage.run]
|
|
branch = true
|
|
parallel = true
|
|
omit = [
|
|
"http2smtp/__about__.py",
|
|
]
|
|
|
|
[tool.coverage.report]
|
|
exclude_lines = [
|
|
"no cov",
|
|
"if __name__ == .__main__.:",
|
|
"if TYPE_CHECKING:",
|
|
]
|