From 6545c145155fc16a0316dd8c1cdbb642595405b8 Mon Sep 17 00:00:00 2001 From: Antoine Wood Date: Sat, 28 May 2022 18:15:47 -0400 Subject: [PATCH] promail-7 Fix location of gmail credentials --- pyproject.toml | 4 ++-- src/{ => promail}/.credentials/gmail_credentials.json | 0 src/promail/clients/gmail.py | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) rename src/{ => promail}/.credentials/gmail_credentials.json (100%) diff --git a/pyproject.toml b/pyproject.toml index 3a77b7f..14830df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "promail" -version = "0.4.2" +version = "0.4.3" authors = ["Antoine Wood "] description = "The Python Email Automation Framework" license = "GNU" @@ -8,7 +8,7 @@ readme = "README.md" homepage = "https://github.com/trafire/promail" repository = "https://github.com/trafire/promail" keywords = ["promail", "email", "automation"] -include = ["src/.credentials/gmail_credentials.json"] +include = ["src/promail/.credentials/gmail_credentials.json"] [tool.poetry.dependencies] python = "^3.8" diff --git a/src/.credentials/gmail_credentials.json b/src/promail/.credentials/gmail_credentials.json similarity index 100% rename from src/.credentials/gmail_credentials.json rename to src/promail/.credentials/gmail_credentials.json diff --git a/src/promail/clients/gmail.py b/src/promail/clients/gmail.py index 9e0b18b..ee60a30 100644 --- a/src/promail/clients/gmail.py +++ b/src/promail/clients/gmail.py @@ -58,11 +58,9 @@ def __init__( "gmail", f"{sanitized_account}.json", ) - print(self._token_path) self.gmail_credentials: str = credentials or os.path.join( os.path.dirname(os.path.realpath(__file__)), "..", - "..", ".credentials", "gmail_credentials.json", )