add package: pyproject + src
async IMAP one-time-code retrieval consolidated from 5 forks. three injected layers: auth (PasswordAuth/OAuth2Auth XOAUTH2), client (IMAPClient connect/retry/folders/search/fetch/mark_seen), retrieve (retrieve_otp newest-first with sender/subject/code matching via substring/regex/callable). config-free, emit-only logging. optional [oauth] extra adds aiohttp refresh-token providers (Microsoft/Google). fixed vs forks: dropped nonexistent uid_fetch/uid_store for aioimaplib's uid() dispatcher, xoauth2 token now bytes, guarded XOAUTH2 fallback, use_uid decoupled from use_ssl. src/ multi-module, hatchling. Signed-off-by: disqualifier <dev@disqualifier.me>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "aiomail"
|
||||
version = "0.1.0"
|
||||
description = "async IMAP one-time-code retrieval with password/OAuth2 auth and dynamic matching"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
"aioimaplib>=1.0",
|
||||
"beautifulsoup4>=4.11",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
oauth = ["aiohttp>=3.9"]
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["src/aiomail"]
|
||||
Reference in New Issue
Block a user