From af894f8555fb689d9125e566cdf437ddc480f730 Mon Sep 17 00:00:00 2001 From: jonnieey Date: Sat, 20 Apr 2024 17:38:29 +0300 Subject: [PATCH 1/2] fix Update dependancies file --- pyproject.toml | 5 ++++- setup.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 496ac49..1535024 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,4 +19,7 @@ classifiers = [ [project.urls] "Homepage" = "https://github.com/prtolem/MailTM" -"Bug Tracker" = "https://github.com/prtolem/MailTM/issues" \ No newline at end of file +"Bug Tracker" = "https://github.com/prtolem/MailTM/issues" + +[tool.hatch.build.targets.wheel] +packages = ["mailtm"] diff --git a/setup.py b/setup.py index ee6d837..9454f4e 100644 --- a/setup.py +++ b/setup.py @@ -8,6 +8,6 @@ zip_safe=False, url='https://github.com/prtolem/MailTM', install_requires=[ - 'aiohttp==3.8.1' + 'aiohttp==3.8.1', 'pydantic==1.10.2', ]) From ac041baf9ea14ebdceb765c6914d292a47ffd0a7 Mon Sep 17 00:00:00 2001 From: jonnieey Date: Mon, 22 Apr 2024 20:52:47 +0300 Subject: [PATCH 2/2] fix Pydantic errors. Verification, attachments fields --- mailtm/schemas/message.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mailtm/schemas/message.py b/mailtm/schemas/message.py index 0c1db58..1f7508b 100644 --- a/mailtm/schemas/message.py +++ b/mailtm/schemas/message.py @@ -58,13 +58,13 @@ class OneMessage(BaseModel): subject: str flagged: bool isDeleted: bool - verifications: list[str] + verifications: dict retention: bool retentionDate: str text: str html: list[str] hasAttachments: bool - attachments: list[Attachment] + attachments: list[Attachment] = None size: int downloadUrl: str createdAt: str