From f771167a557e8cc6bb0db0996f9876560e776298 Mon Sep 17 00:00:00 2001 From: Martin Loetzsch Date: Sat, 13 Apr 2019 23:24:11 +0200 Subject: [PATCH] Change MARA_XXX variables to functions to delay importing of imports (requires updating mara-app to 2.0.0) --- CHANGELOG.md | 9 +++++++++ google_ads_downloader/__init__.py | 9 ++++++--- setup.py | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f47610..8c39c68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 3.0.0 (2019-04-13) + +- Change MARA_XXX variables to functions to delay importing of imports + +**required changes** + +- If used together with a mara project, Update `mara-app` to `>=2.0.0` + + ## 2.1.0 *2019-01-23* diff --git a/google_ads_downloader/__init__.py b/google_ads_downloader/__init__.py index fe19cee..45f051a 100644 --- a/google_ads_downloader/__init__.py +++ b/google_ads_downloader/__init__.py @@ -1,5 +1,8 @@ -from google_ads_downloader import config, cli -MARA_CONFIG_MODULES = [config] +def MARA_CONFIG_MODULES(): + from . import config, cli + return [config] -MARA_CLICK_COMMANDS = [cli.download_data, cli.refresh_oauth2_token] \ No newline at end of file +def MARA_CLICK_COMMANDS(): + from . import config, cli + return [cli.download_data, cli.refresh_oauth2_token] \ No newline at end of file diff --git a/setup.py b/setup.py index 1fd139d..7bfb4ef 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='google-ads-performance-downloader', - version='2.1.0', + version='3.0.0', description="Downloads data from the Google Adwords Api to local files", install_requires=[