Hello community,

here is the log from the commit of package python-dynaconf for openSUSE:Factory 
checked in at 2019-09-26 20:43:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dynaconf (Old)
 and      /work/SRC/openSUSE:Factory/.python-dynaconf.new.2352 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-dynaconf"

Thu Sep 26 20:43:19 2019 rev:4 rq:733405 version:2.1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-dynaconf/python-dynaconf.changes  
2019-09-13 15:04:54.105262050 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-dynaconf.new.2352/python-dynaconf.changes    
    2019-09-26 20:43:40.586150937 +0200
@@ -1,0 +2,13 @@
+Thu Sep 26 11:14:00 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 2.1.1:
+  * When both enabled, Vault has the priority over Redis for overriding (#234) 
[Bruno Rocha]
+  * Dynaconf init will not write all possible envs, only [default] (#233) 
[Bruno Rocha]
+  * Fixing self._root_path to fall back to os.getcwd() only when 
settings.load_file is called directly or from includes (#232) [Kedar Kulkarni]
+  * Improvement to close #230 - do not throw error for base envs. (#231) 
[Bruno Rocha]
+  * Fix #228 add ignore argument to Django explicit mode. (#229) [Bruno Rocha]
+  * Fix typo in CLI init (#227) [Dave Barnow]
+  * Add info about dunder envvars on django.md docs guide (#226) [Bruno Rocha]
+  * Improve validators to use from_env method (#225) [Bruno Rocha]
+
+-------------------------------------------------------------------

Old:
----
  2.1.0.tar.gz

New:
----
  2.1.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-dynaconf.spec ++++++
--- /var/tmp/diff_new_pack.FFFJZC/_old  2019-09-26 20:43:41.058149676 +0200
+++ /var/tmp/diff_new_pack.FFFJZC/_new  2019-09-26 20:43:41.058149676 +0200
@@ -19,25 +19,14 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-dynaconf
-Version:        2.1.0
+Version:        2.1.1
 Release:        0
 Summary:        The dynamic configurator for your Python Project
 License:        MIT
 Group:          Development/Languages/Python
-Url:            https://github.com/rochacbruno/dynaconf
+URL:            https://github.com/rochacbruno/dynaconf
 Source:         
https://github.com/rochacbruno/dynaconf/archive/%{version}.tar.gz
 BuildRequires:  %{python_module setuptools >= 38.6.0}
-# SECTION test requirements
-BuildRequires:  %{python_module Flask}
-BuildRequires:  %{python_module PyYAML}
-BuildRequires:  %{python_module click}
-BuildRequires:  %{python_module configobj}
-BuildRequires:  %{python_module pytest-mock}
-BuildRequires:  %{python_module pytest}
-BuildRequires:  %{python_module python-box}
-BuildRequires:  %{python_module python-dotenv}
-BuildRequires:  %{python_module toml}
-# /SECTION
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-PyYAML
@@ -48,7 +37,17 @@
 Requires:       python-setuptools
 Requires:       python-toml
 BuildArch:      noarch
-
+# SECTION test requirements
+BuildRequires:  %{python_module Flask >= 0.12}
+BuildRequires:  %{python_module PyYAML}
+BuildRequires:  %{python_module click}
+BuildRequires:  %{python_module configobj}
+BuildRequires:  %{python_module pytest-mock}
+BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module python-box}
+BuildRequires:  %{python_module python-dotenv}
+BuildRequires:  %{python_module toml}
+# /SECTION
 %python_subpackages
 
 %description

++++++ 2.1.0.tar.gz -> 2.1.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dynaconf-2.1.0/CHANGELOG.md 
new/dynaconf-2.1.1/CHANGELOG.md
--- old/dynaconf-2.1.0/CHANGELOG.md     2019-09-05 20:19:51.000000000 +0200
+++ new/dynaconf-2.1.1/CHANGELOG.md     2019-09-16 16:36:44.000000000 +0200
@@ -2,6 +2,86 @@
 =========
 
 
+2.1.0 (2019-09-05)
+------------------
+- Release version 2.1.0. [Bruno Rocha]
+
+  Shortlog of commits since last release:
+
+      Bruno Rocha (8):
+            Release version 2.0.4
+            Merge branch 'dgarcia360-master'
+            Fix #197 add support for DOTTED__ENV__VARS (#215)
+            Add support to export merged env to filesystem via cli. (#217)
+            Adds `from_env` method and change `_store` to be a `DynaBox` (#219)
+            hotfix: next release will be 2.1.0 because new features added. 
(#220)
+            Fix `make test_examples` to use better assertions, redis and vault 
loader now respects `envs` (#222)
+            fix #221 removed JSON,YAML,INI,TOML cosntants from 
default_settings (#223)
+
+      Kedar Kulkarni (1):
+            Add `list_envs` function to vault loader and now envs can have `_` 
on its name.
+
+      Pavel Alimpiev (1):
+            Fix typo in documentation for a Validator class (#213)
+
+      dgarcia360 (3):
+            Updated configuration options table to csv table
+            Added responsive table fix
+            Fix format
+- Fix #221 removed JSON,YAML,INI,TOML cosntants from default_settings
+  (#223) [Bruno Rocha]
+
+  Default settings should hold only constants ending in _FOR_DYNACONF
+- Fix `make test_examples` to use better assertions, redis and vault
+  loader now respects `envs` (#222) [Bruno Rocha]
+- Hotfix: next release will be 2.1.0 because new features added. (#220)
+  [Bruno Rocha]
+- Adds `from_env` method and change `_store` to be a `DynaBox` (#219)
+  [Bruno Rocha]
+- Add `list_envs` function to vault loader and now envs can have `_` on
+  its name. [Kedar Kulkarni]
+
+  * Adding new feature to address issue #211 `list_envs ` function on vault 
loader
+  * Removing restriction with env cannot contain underscore chars
+- Add support to export merged env to filesystem via cli. (#217) [Bruno
+  Rocha]
+
+  fix #200
+
+  ```bash
+  dynaconf list -o path/to/file.yaml --output-flat
+  ```
+- Fix #197 add support for DOTTED__ENV__VARS (#215) [Bruno Rocha]
+
+  * Fix #197 add support for DOTTED__ENV__VARS
+
+  * Full support for `__` - @reset and @del markers
+- Merge branch 'dgarcia360-master' [Bruno Rocha]
+- Fix format. [dgarcia360]
+- Added responsive table fix. [dgarcia360]
+- Updated configuration options table to csv table. [dgarcia360]
+- Fix typo in documentation for a Validator class (#213) [Pavel
+  Alimpiev]
+- Release version 2.0.4. [Bruno Rocha]
+
+  Shortlog of commits since last release:
+
+      Bruno Rocha (2):
+            Release version 2.0.3
+            Fix #207 allow python module path name for includes (#209)
+
+      Michał Bartoszkiewicz (1):
+            Update usage.md (#208)
+
+      Pavel Alimpiev (2):
+            Refactor Vault integration (#202)
+            Update configuration.md (#205)
+
+      Tanveer Alam (2):
+            Update usage.md (#196)
+            Update usage.md (#195)
+
+
 2.0.4 (2019-08-22)
 ------------------
 - Release version 2.0.4. [Bruno Rocha]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dynaconf-2.1.0/Makefile new/dynaconf-2.1.1/Makefile
--- old/dynaconf-2.1.0/Makefile 2019-09-05 20:19:51.000000000 +0200
+++ new/dynaconf-2.1.1/Makefile 2019-09-16 16:36:44.000000000 +0200
@@ -82,6 +82,8 @@
        cd example/issues/182_multiple_locations;pwd;python app.py
        cd example/issues/184_ipython;pwd;./test.sh
        cd example/issues/194_flask_config;pwd;python app.py
+       cd example/issues/228_nested_toml_bool/python_app;pwd;python app.py
+       cd example/issues/228_nested_toml_bool/django_app;pwd;python manage.py 
test
 
 test_vault:
        # @cd example/vault;pwd;python write.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dynaconf-2.1.0/docs/guides/django.md 
new/dynaconf-2.1.1/docs/guides/django.md
--- old/dynaconf-2.1.0/docs/guides/django.md    2019-09-05 20:19:51.000000000 
+0200
+++ new/dynaconf-2.1.1/docs/guides/django.md    2019-09-16 16:36:44.000000000 
+0200
@@ -46,6 +46,48 @@
 export DJANGO_HELLO="Hello"  # django.conf.settings.get('HELLO')
 ```
 
+> **TIP**: If you dont want to use `DJANGO_` as prefix for envvars you can 
customize by passing a new name e.g: `dynaconf.DjangoDynaconf(__name__, 
ENVVAR_PREFIX_FOR_DYNACONF="FOO")` then `export FOO_DEBUG=true`
+
+You can also set nested dictionary values, for example lets say you have a 
configuration like this:
+
+`settings.py`
+
+```py
+...
+DATABASES = {
+    'default': {
+        'NAME': 'db',
+        'ENGINE': 'module.foo.engine',
+        'ARGS': {'timeout': 30}
+    }
+}
+...
+```
+
+And  now you want to change the values of `ENGINE` to `other.module`, via 
environment variables you can use the format 
`${ENVVAR_PREFIX}_${VARIABLE}__${NESTED_ITEM}__${NESTED_ITEM}`
+
+Each `__` (dunder, a.k.a *double underline*) denotes access to nested elements 
in a dictionary.
+
+So:
+
+```bash
+export DYNACONF_DATABASES__default__ENGINE=other.module
+```
+
+will result in
+
+```py
+DATABASES = {
+    'default': {
+        'NAME': 'db',
+        'ENGINE': 'other.module',
+        'ARGS': {'timeout': 30}
+    }
+}
+```
+
+Read more on [environment 
variables](https://dynaconf.readthedocs.io/en/latest/guides/environment_variables.html#nested-keys-in-dictionaries-via-environment-variables)
+
 ## Settings files
 
 You can also have settings files for your Django app, in the root directory 
(the same where `manage.py` is located) put your `settings.{yaml, toml, ini, 
json, py}` and `.secrets.{yaml, toml, ini, json, py}` files and then define 
your environments `[default]`, `[development]` and `[production]`.
@@ -207,9 +249,11 @@
 ...
 
 # At the end of your settings.py
-settings.populate_obj(sys.modules[__name__])
+settings.populate_obj(sys.modules[__name__], ignore=locals())
 ```
 
+> **NOTE**: Starting in `2.1.1` the `ignore` argument will tell Dynaconf to 
not override variables that already exists in the current settings file, remove 
it if you want all the existing local variables to be overwritten by dynaconf.
+
 You can still change env with `export DJANGO_ENV=production` and also can 
export variables lile `export DJANGO_DEBUG=true`
 
 ## Knowm Caveats
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dynaconf-2.1.0/dynaconf/VERSION 
new/dynaconf-2.1.1/dynaconf/VERSION
--- old/dynaconf-2.1.0/dynaconf/VERSION 2019-09-05 20:19:51.000000000 +0200
+++ new/dynaconf-2.1.1/dynaconf/VERSION 2019-09-16 16:36:44.000000000 +0200
@@ -1 +1 @@
-2.1.0
+2.1.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dynaconf-2.1.0/dynaconf/base.py 
new/dynaconf-2.1.1/dynaconf/base.py
--- old/dynaconf-2.1.0/dynaconf/base.py 2019-09-05 20:19:51.000000000 +0200
+++ new/dynaconf-2.1.1/dynaconf/base.py 2019-09-16 16:36:44.000000000 +0200
@@ -892,7 +892,9 @@
                     # continue the loop.
                     continue
 
-                filepath = os.path.join(self._root_path, _filename)
+                filepath = os.path.join(
+                    self._root_path or os.getcwd(), _filename
+                )
                 self.logger.debug("File path is %s", filepath)
                 # Handle possible *.globs sorted alphanumeric
                 for path in sorted(glob.glob(filepath)):
@@ -990,11 +992,18 @@
             value = self.get_fresh(key)
             return value is True or value in true_values
 
-    def populate_obj(self, obj, keys=None):
-        """Given the `obj` populate it using self.store items."""
+    def populate_obj(self, obj, keys=None, ignore=None):
+        """Given the `obj` populate it using self.store items.
+
+        :param obj: An object to be populated, a class instance.
+        :param keys: A list of keys to be included.
+        :param ignore: A list of keys to be excluded.
+        """
         keys = keys or self.keys()
         for key in keys:
             key = key.upper()
+            if ignore and key in ignore:
+                continue
             value = self.get(key, empty)
             if value is not empty:
                 setattr(obj, key, value)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dynaconf-2.1.0/dynaconf/cli.py 
new/dynaconf-2.1.1/dynaconf/cli.py
--- old/dynaconf-2.1.0/dynaconf/cli.py  2019-09-05 20:19:51.000000000 +0200
+++ new/dynaconf-2.1.1/dynaconf/cli.py  2019-09-16 16:36:44.000000000 +0200
@@ -23,7 +23,6 @@
 
 
 CWD = Path.cwd()
-ENVS = ["default", "development", "staging", "testing", "production", "global"]
 EXTS = ["ini", "toml", "yaml", "json", "py", "env"]
 WRITERS = ["ini", "toml", "yaml", "json", "py", "redis", "vault", "env"]
 
@@ -235,7 +234,7 @@
     `ENV_FOR_DYNACONF=production` just pass --env=production and then .env
     will also be created and the env defined to production.
     """
-    click.echo("Cofiguring your Dynaconf environment")
+    click.echo("Configuring your Dynaconf environment")
 
     env = env or settings.current_env.lower()
 
@@ -247,8 +246,8 @@
     _secrets = split_vars(_secrets)
 
     # create placeholder data for every env
-    settings_data = {k: {"value": "value for {}".format(k)} for k in ENVS}
-    secrets_data = {k: {"secret": "secret for {}".format(k)} for k in ENVS}
+    settings_data = {}
+    secrets_data = {}
     if env_data:
         settings_data[env] = env_data
         settings_data["default"] = {k: "default" for k in env_data}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dynaconf-2.1.0/dynaconf/constants.py 
new/dynaconf-2.1.1/dynaconf/constants.py
--- old/dynaconf-2.1.0/dynaconf/constants.py    2019-09-05 20:19:51.000000000 
+0200
+++ new/dynaconf-2.1.1/dynaconf/constants.py    2019-09-16 16:36:44.000000000 
+0200
@@ -10,8 +10,8 @@
 
 EXTERNAL_LOADERS = {
     "ENV": "dynaconf.loaders.env_loader",
-    "REDIS": "dynaconf.loaders.redis_loader",
     "VAULT": "dynaconf.loaders.vault_loader",
+    "REDIS": "dynaconf.loaders.redis_loader",
 }
 
 DJANGO_PATCH = """
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dynaconf-2.1.0/dynaconf/loaders/base.py 
new/dynaconf-2.1.1/dynaconf/loaders/base.py
--- old/dynaconf-2.1.0/dynaconf/loaders/base.py 2019-09-05 20:19:51.000000000 
+0200
+++ new/dynaconf-2.1.1/dynaconf/loaders/base.py 2019-09-16 16:36:44.000000000 
+0200
@@ -103,17 +103,27 @@
                 k.lower(): value for k, value in source_data.items()
             }
 
-            for env in envs:
+            # all lower case for comparison
+            base_envs = [
+                # DYNACONF or MYPROGRAM
+                (self.obj.get("ENVVAR_PREFIX_FOR_DYNACONF") or "").lower(),
+                # DEFAULT
+                self.obj.get("DEFAULT_ENV_FOR_DYNACONF").lower(),
+                # default active env unless ENV_FOR_DYNACONF is changed
+                "development",
+                # backwards compatibility for global
+                "dynaconf",
+                # global that rules all
+                "global",
+            ]
 
+            for env in envs:
+                env = env.lower()  # lower for better comparison
                 data = {}
                 try:
-                    data = source_data[env.lower()]
+                    data = source_data[env]
                 except KeyError:
-                    if env not in (
-                        self.obj.get("ENVVAR_PREFIX_FOR_DYNACONF")
-                        or "DYNACONF",
-                        "GLOBAL",
-                    ):
+                    if env not in base_envs:
                         message = "%s_loader: %s env not defined in %s" % (
                             self.identifier,
                             env,
@@ -125,11 +135,8 @@
                             raise KeyError(message)
                     continue
 
-                if (
-                    env.lower()
-                    != self.obj.get("DEFAULT_ENV_FOR_DYNACONF").lower()
-                ):
-                    identifier = "{0}_{1}".format(self.identifier, env.lower())
+                if env != self.obj.get("DEFAULT_ENV_FOR_DYNACONF").lower():
+                    identifier = "{0}_{1}".format(self.identifier, env)
                 else:
                     identifier = self.identifier
 
@@ -144,7 +151,7 @@
                     "{}_loader: {}[{}]{}".format(
                         self.identifier,
                         os.path.split(source_file)[-1],
-                        env.lower(),
+                        env,
                         list(data.keys()) if is_secret else data,
                     )
                 )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dynaconf-2.1.0/dynaconf/validator.py 
new/dynaconf-2.1.1/dynaconf/validator.py
--- old/dynaconf-2.1.0/dynaconf/validator.py    2019-09-05 20:19:51.000000000 
+0200
+++ new/dynaconf-2.1.1/dynaconf/validator.py    2019-09-16 16:36:44.000000000 
+0200
@@ -109,10 +109,10 @@
             return
 
         for env in self.envs:
-            with settings.using_env(env):
-                self._validate_items(settings, env)
+            self._validate_items(settings.from_env(env))
 
-    def _validate_items(self, settings, env):
+    def _validate_items(self, settings, env=None):
+        env = env or settings.current_env
         for name in self.names:
             exists = settings.exists(name)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dynaconf-2.1.0/example/issues/228_nested_toml_bool/django_app/django_app/settings.py
 
new/dynaconf-2.1.1/example/issues/228_nested_toml_bool/django_app/django_app/settings.py
--- 
old/dynaconf-2.1.0/example/issues/228_nested_toml_bool/django_app/django_app/settings.py
    1970-01-01 01:00:00.000000000 +0100
+++ 
new/dynaconf-2.1.1/example/issues/228_nested_toml_bool/django_app/django_app/settings.py
    2019-09-16 16:36:44.000000000 +0200
@@ -0,0 +1,133 @@
+"""
+Django settings for django_app project.
+
+Generated by 'django-admin startproject' using Django 2.2.5.
+
+For more information on this file, see
+https://docs.djangoproject.com/en/2.2/topics/settings/
+
+For the full list of settings and their values, see
+https://docs.djangoproject.com/en/2.2/ref/settings/
+"""
+import os
+import sys
+
+from dynaconf import LazySettings
+
+settings = LazySettings()
+
+
+# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
+BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+
+
+# Quick-start development settings - unsuitable for production
+# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
+
+# SECURITY WARNING: keep the secret key used in production secret!
+SECRET_KEY = "3vm%5!55xe4rm7_6!v8cp)ne*g-#!d2&_ow*l39-bi54(leh9r"
+
+# SECURITY WARNING: don't run with debug turned on in production!
+DEBUG = settings.get("debug.enabled", False)
+
+ALLOWED_HOSTS = []
+
+
+# Application definition
+
+INSTALLED_APPS = [
+    "django.contrib.admin",
+    "django.contrib.auth",
+    "django.contrib.contenttypes",
+    "django.contrib.sessions",
+    "django.contrib.messages",
+    "django.contrib.staticfiles",
+]
+
+MIDDLEWARE = [
+    "django.middleware.security.SecurityMiddleware",
+    "django.contrib.sessions.middleware.SessionMiddleware",
+    "django.middleware.common.CommonMiddleware",
+    "django.middleware.csrf.CsrfViewMiddleware",
+    "django.contrib.auth.middleware.AuthenticationMiddleware",
+    "django.contrib.messages.middleware.MessageMiddleware",
+    "django.middleware.clickjacking.XFrameOptionsMiddleware",
+]
+
+ROOT_URLCONF = "django_app.urls"
+
+TEMPLATES = [
+    {
+        "BACKEND": "django.template.backends.django.DjangoTemplates",
+        "DIRS": [],
+        "APP_DIRS": True,
+        "OPTIONS": {
+            "context_processors": [
+                "django.template.context_processors.debug",
+                "django.template.context_processors.request",
+                "django.contrib.auth.context_processors.auth",
+                "django.contrib.messages.context_processors.messages",
+            ]
+        },
+    }
+]
+
+WSGI_APPLICATION = "django_app.wsgi.application"
+
+
+# Database
+# https://docs.djangoproject.com/en/2.2/ref/settings/#databases
+
+DATABASES = {
+    "default": {
+        "ENGINE": "django.db.backends.sqlite3",
+        "NAME": os.path.join(BASE_DIR, "db.sqlite3"),
+    }
+}
+
+
+# Password validation
+# https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators
+
+AUTH_PASSWORD_VALIDATORS = [
+    {
+        "NAME": "django.contrib.auth."
+        "password_validation.UserAttributeSimilarityValidator"
+    },
+    {"NAME": "django.contrib.auth.password_validation.MinimumLengthValidator"},
+    {
+        "NAME": "django.contrib.auth."
+        "password_validation.CommonPasswordValidator"
+    },
+    {
+        "NAME": "django.contrib.auth."
+        "password_validation.NumericPasswordValidator"
+    },
+]
+
+
+# Internationalization
+# https://docs.djangoproject.com/en/2.2/topics/i18n/
+
+LANGUAGE_CODE = "en-us"
+
+TIME_ZONE = "UTC"
+
+USE_I18N = True
+
+USE_L10N = True
+
+USE_TZ = True
+
+
+# Static files (CSS, JavaScript, Images)
+# https://docs.djangoproject.com/en/2.2/howto/static-files/
+
+STATIC_URL = "/static/"
+
+
+# At the end of your settings.py
+settings.populate_obj(sys.modules[__name__], ignore=locals())
+
+
+assert DEBUG is False, DEBUG
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dynaconf-2.1.0/example/issues/228_nested_toml_bool/django_app/django_app/urls.py
 
new/dynaconf-2.1.1/example/issues/228_nested_toml_bool/django_app/django_app/urls.py
--- 
old/dynaconf-2.1.0/example/issues/228_nested_toml_bool/django_app/django_app/urls.py
        1970-01-01 01:00:00.000000000 +0100
+++ 
new/dynaconf-2.1.1/example/issues/228_nested_toml_bool/django_app/django_app/urls.py
        2019-09-16 16:36:44.000000000 +0200
@@ -0,0 +1,19 @@
+"""django_app URL Configuration
+
+The `urlpatterns` list routes URLs to views. For more information please see:
+    https://docs.djangoproject.com/en/2.2/topics/http/urls/
+Examples:
+Function views
+    1. Add an import:  from my_app import views
+    2. Add a URL to urlpatterns:  path('', views.home, name='home')
+Class-based views
+    1. Add an import:  from other_app.views import Home
+    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
+Including another URLconf
+    1. Import the include() function: from django.urls import include, path
+    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
+"""
+from django.contrib import admin
+from django.urls import path
+
+urlpatterns = [path("admin/", admin.site.urls)]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dynaconf-2.1.0/example/issues/228_nested_toml_bool/django_app/django_app/wsgi.py
 
new/dynaconf-2.1.1/example/issues/228_nested_toml_bool/django_app/django_app/wsgi.py
--- 
old/dynaconf-2.1.0/example/issues/228_nested_toml_bool/django_app/django_app/wsgi.py
        1970-01-01 01:00:00.000000000 +0100
+++ 
new/dynaconf-2.1.1/example/issues/228_nested_toml_bool/django_app/django_app/wsgi.py
        2019-09-16 16:36:44.000000000 +0200
@@ -0,0 +1,15 @@
+"""
+WSGI config for django_app project.
+
+It exposes the WSGI callable as a module-level variable named ``application``.
+
+For more information on this file, see
+https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
+"""
+import os
+
+from django.core.wsgi import get_wsgi_application
+
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_app.settings")
+
+application = get_wsgi_application()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dynaconf-2.1.0/example/issues/228_nested_toml_bool/django_app/manage.py 
new/dynaconf-2.1.1/example/issues/228_nested_toml_bool/django_app/manage.py
--- old/dynaconf-2.1.0/example/issues/228_nested_toml_bool/django_app/manage.py 
1970-01-01 01:00:00.000000000 +0100
+++ new/dynaconf-2.1.1/example/issues/228_nested_toml_bool/django_app/manage.py 
2019-09-16 16:36:44.000000000 +0200
@@ -0,0 +1,21 @@
+#!/usr/bin/env python
+"""Django's command-line utility for administrative tasks."""
+import os
+import sys
+
+
+def main():
+    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_app.settings")
+    try:
+        from django.core.management import execute_from_command_line
+    except ImportError as exc:
+        raise ImportError(
+            "Couldn't import Django. Are you sure it's installed and "
+            "available on your PYTHONPATH environment variable? Did you "
+            "forget to activate a virtual environment?"
+        ) from exc
+    execute_from_command_line(sys.argv)
+
+
+if __name__ == "__main__":
+    main()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dynaconf-2.1.0/example/issues/228_nested_toml_bool/django_app/settings.toml 
new/dynaconf-2.1.1/example/issues/228_nested_toml_bool/django_app/settings.toml
--- 
old/dynaconf-2.1.0/example/issues/228_nested_toml_bool/django_app/settings.toml 
    1970-01-01 01:00:00.000000000 +0100
+++ 
new/dynaconf-2.1.1/example/issues/228_nested_toml_bool/django_app/settings.toml 
    2019-09-16 16:36:44.000000000 +0200
@@ -0,0 +1,2 @@
+[default.debug]
+enabled = false
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dynaconf-2.1.0/example/issues/228_nested_toml_bool/python_app/app.py 
new/dynaconf-2.1.1/example/issues/228_nested_toml_bool/python_app/app.py
--- old/dynaconf-2.1.0/example/issues/228_nested_toml_bool/python_app/app.py    
1970-01-01 01:00:00.000000000 +0100
+++ new/dynaconf-2.1.1/example/issues/228_nested_toml_bool/python_app/app.py    
2019-09-16 16:36:44.000000000 +0200
@@ -0,0 +1,12 @@
+from dynaconf import settings
+
+print(settings.DEBUG.enabled)
+assert settings.DEBUG.enabled is False
+
+print(settings.get("debug.enabled"))
+assert settings.get("debug.enabled") is False
+
+
+DEBUG = settings.get("debug.enabled", False)
+print(DEBUG)
+assert DEBUG is False
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dynaconf-2.1.0/example/issues/228_nested_toml_bool/python_app/settings.toml 
new/dynaconf-2.1.1/example/issues/228_nested_toml_bool/python_app/settings.toml
--- 
old/dynaconf-2.1.0/example/issues/228_nested_toml_bool/python_app/settings.toml 
    1970-01-01 01:00:00.000000000 +0100
+++ 
new/dynaconf-2.1.1/example/issues/228_nested_toml_bool/python_app/settings.toml 
    2019-09-16 16:36:44.000000000 +0200
@@ -0,0 +1,2 @@
+[default.debug]
+enabled = false
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dynaconf-2.1.0/tests/test_base.py 
new/dynaconf-2.1.1/tests/test_base.py
--- old/dynaconf-2.1.0/tests/test_base.py       2019-09-05 20:19:51.000000000 
+0200
+++ new/dynaconf-2.1.1/tests/test_base.py       2019-09-16 16:36:44.000000000 
+0200
@@ -56,6 +56,20 @@
         assert obj.DEBUG is True
 
 
+def test_populate_obj_with_ignore(settings):
+    class Obj:
+        pass
+
+    obj = Obj()
+
+    settings.populate_obj(obj, ignore=["VALUE"])
+
+    assert obj.DEBUG is True
+
+    with pytest.raises(AttributeError):
+        assert obj.VALUE == 42.1
+
+
 def test_call_works_as_get(settings):
     """settings.get('name') is the same as settings('name')"""
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dynaconf-2.1.0/tests/test_cli.py 
new/dynaconf-2.1.1/tests/test_cli.py
--- old/dynaconf-2.1.0/tests/test_cli.py        2019-09-05 20:19:51.000000000 
+0200
+++ new/dynaconf-2.1.1/tests/test_cli.py        2019-09-16 16:36:44.000000000 
+0200
@@ -6,7 +6,6 @@
 
 from dynaconf import default_settings
 from dynaconf import LazySettings
-from dynaconf.cli import ENVS
 from dynaconf.cli import EXTS
 from dynaconf.cli import main
 from dynaconf.cli import read_file_in_root_directory
@@ -117,7 +116,7 @@
     assert "Working in development environment" in result
 
 
[email protected]("env", ENVS)
[email protected]("env", ["default", "development"])
 def test_list_with_env(env):
     result = run(["list", "-e", env])
     assert "Working in {} environment".format(env) in result
@@ -176,7 +175,7 @@
 
 
 @pytest.mark.parametrize("writer", EXTS)
[email protected]("env", ENVS)
[email protected]("env", ["default", "development"])
 @pytest.mark.parametrize("onlydir", (True, False))
 def test_write(writer, env, onlydir, tmpdir):
     if onlydir is True:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dynaconf-2.1.0/tests/test_validators.py 
new/dynaconf-2.1.1/tests/test_validators.py
--- old/dynaconf-2.1.0/tests/test_validators.py 2019-09-05 20:19:51.000000000 
+0200
+++ new/dynaconf-2.1.1/tests/test_validators.py 2019-09-16 16:36:44.000000000 
+0200
@@ -167,7 +167,7 @@
     settings = LazySettings(
         ENV_FOR_DYNACONF="DEVELOPMENt", SETTINGS_FILE_FOR_DYNACONF=str(tmpfile)
     )
-    using_env = mocker.patch.object(settings, "using_env")
+    using_env = mocker.patch.object(settings, "from_env")
 
     settings.validators.register(same_env_validator)
     settings.validators.validate()


Reply via email to