From 5750d03fed8914da8c39c2db31614532a0b9e8f8 Mon Sep 17 00:00:00 2001 From: DanielJDufour Date: Fri, 14 May 2021 19:05:41 -0400 Subject: [PATCH] use globals() instead of locals() --- build | 2 +- djenv/settings.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build b/build index a99a4f8..da34c84 100755 --- a/build +++ b/build @@ -4,7 +4,7 @@ rm -fr dist # make sure libraries used for publishing are up to date -python3 -m pip install --user --upgrade setuptools wheel twine +python3 -m pip install --user --upgrade pip setuptools wheel twine python3 -m pip install --upgrade twine python3 setup.py sdist diff --git a/djenv/settings.py b/djenv/settings.py index d3d7eda..59f9b86 100644 --- a/djenv/settings.py +++ b/djenv/settings.py @@ -13,7 +13,7 @@ if ((v.startswith("{") and v.endswith("}")) or (v.startswith("[") and v.endswith("]"))): v = json.loads(v) - locals()[k.replace("DJANGO_", "")] = v + globals()[k.replace("DJANGO_", "")] = v del k del json diff --git a/setup.py b/setup.py index 39970e5..b87154d 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ packages = ['djenv'], package_dir = {'djenv': 'djenv'}, package_data = {'djenv': ['__init__.py']}, - version = '0.0.1', + version = '0.0.2', description = 'DjEnv (Django + Environment): Load Django Settings from Environmental Variables', long_description = long_description, long_description_content_type='text/markdown',