2023-10-13 23:50:14 +02:00
|
|
|
[build-system]
|
|
|
|
requires = ["setuptools>=45"]
|
|
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
|
|
|
|
[project]
|
2023-10-15 17:45:35 +02:00
|
|
|
name = "chatmaild"
|
2023-10-13 23:50:14 +02:00
|
|
|
version = "0.1"
|
|
|
|
dependencies = [
|
|
|
|
"aiosmtpd"
|
|
|
|
]
|
|
|
|
|
|
|
|
[project.scripts]
|
2023-11-14 20:38:15 +01:00
|
|
|
doveauth = "chatmaild.doveauth:main"
|
2023-10-15 18:04:38 +02:00
|
|
|
filtermail = "chatmaild.filtermail:main"
|
2023-10-13 23:50:14 +02:00
|
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
|
|
addopts = "-v -ra --strict-markers"
|
2023-11-20 15:48:38 +01:00
|
|
|
log_format = "%(asctime)s %(levelname)s %(message)s"
|
|
|
|
log_date_format = "%Y-%m-%d %H:%M:%S"
|
|
|
|
log_level = "INFO"
|
2023-10-13 23:50:14 +02:00
|
|
|
|
|
|
|
[tool.tox]
|
|
|
|
legacy_tox_ini = """
|
|
|
|
[tox]
|
|
|
|
isolated_build = true
|
2023-10-21 12:10:13 +02:00
|
|
|
envlist = lint,py
|
2023-10-13 23:50:14 +02:00
|
|
|
|
|
|
|
[testenv:lint]
|
|
|
|
skipdist = True
|
|
|
|
skip_install = True
|
|
|
|
deps =
|
|
|
|
ruff
|
|
|
|
black
|
|
|
|
commands =
|
|
|
|
black --quiet --check --diff src/
|
|
|
|
ruff src/
|
2023-10-21 12:10:13 +02:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
passenv = CHATMAIL_DOMAIN
|
|
|
|
deps = pytest
|
|
|
|
pdbpp
|
|
|
|
commands = pytest -v -rsXx {posargs: ../tests/chatmaild}
|
2023-10-13 23:50:14 +02:00
|
|
|
"""
|