Hello community,
here is the log from the commit of package python-dynaconf for openSUSE:Factory
checked in at 2020-04-10 23:53:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dynaconf (Old)
and /work/SRC/openSUSE:Factory/.python-dynaconf.new.3248 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-dynaconf"
Fri Apr 10 23:53:02 2020 rev:5 rq:792348 version:2.2.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-dynaconf/python-dynaconf.changes
2019-09-26 20:43:40.586150937 +0200
+++
/work/SRC/openSUSE:Factory/.python-dynaconf.new.3248/python-dynaconf.changes
2020-04-10 23:53:30.752710222 +0200
@@ -1,0 +2,32 @@
+Wed Apr 8 08:06:54 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Add patch from git upstream to work with latest box releases:
+ * box-4.0.patch
+
+-------------------------------------------------------------------
+Wed Apr 8 07:21:09 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Update to 2.2.3:
+ * Fix #236 added .local. files loading and module impersonation docs (#239)
+ * Replace key.upper with `upperfy` function that keeps `__` attributes (#240)
+ * Fix #241 new merge standards (#243)
+ * Add support for PRELOAD_ setting. (#244)
+ * Fixing how filename.local.* files are loaded (#238)
+ * fix crash on empty settings (#242)
+ * Fix #251 recursive call was using mutable memoized data (#254)
+ * Fix #266 created new variable FORCE_ENV to override ENV_FOR_DYNACONF
+ * Fix coverage for validators
+ * Add support for detecting duplicate validators being added (and ignore
them) (#256)
+ * fix: env_loader.write: quote_mode for non-string values
+ * : added line break
+ * fix str comparison
+ * changing quote logic
+ * fix open error @py3.5
+ * Fix #258 custom message for validators
+ * Close #178. Included integration tests redis/vault
+ * Fix #273 add Flask load extensions method.
+ * Fix #145 allow lazy format using os.environ and settings values.
+ * Overriding strategy test
+ * Fix #203 document the usage with pytest (with examples)
+
+-------------------------------------------------------------------
Old:
----
2.1.1.tar.gz
New:
----
2.2.3.tar.gz
box-4.0.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-dynaconf.spec ++++++
--- /var/tmp/diff_new_pack.J5tvIa/_old 2020-04-10 23:53:33.936712557 +0200
+++ /var/tmp/diff_new_pack.J5tvIa/_new 2020-04-10 23:53:33.940712559 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-dynaconf
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,21 +19,23 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-dynaconf
-Version: 2.1.1
+Version: 2.2.3
Release: 0
Summary: The dynamic configurator for your Python Project
License: MIT
-Group: Development/Languages/Python
URL: https://github.com/rochacbruno/dynaconf
Source:
https://github.com/rochacbruno/dynaconf/archive/%{version}.tar.gz
+Patch0: box-4.0.patch
BuildRequires: %{python_module setuptools >= 38.6.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyYAML
Requires: python-click
Requires: python-configobj
+Requires: python-hvac
Requires: python-python-box
Requires: python-python-dotenv
+Requires: python-redis
Requires: python-setuptools
Requires: python-toml
BuildArch: noarch
@@ -42,10 +44,12 @@
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module click}
BuildRequires: %{python_module configobj}
+BuildRequires: %{python_module hvac}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-box}
BuildRequires: %{python_module python-dotenv}
+BuildRequires: %{python_module redis}
BuildRequires: %{python_module toml}
# /SECTION
%python_subpackages
@@ -55,6 +59,11 @@
%prep
%setup -q -n dynaconf-%{version}
+%patch0 -p1
+
+# require running docker with the server
+rm tests/test_redis.py
+rm tests/test_vault.py
%build
%python_build
@@ -64,7 +73,7 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-%pytest
+%pytest tests/
%files %{python_files}
%doc CHANGELOG.md README.md
++++++ 2.1.1.tar.gz -> 2.2.3.tar.gz ++++++
++++ 4322 lines of diff (skipped)
++++++ box-4.0.patch ++++++
>From fa726b66fc4da0765790d8d0ca27866c331ef087 Mon Sep 17 00:00:00 2001
From: Bruno Rocha <[email protected]>
Date: Thu, 27 Feb 2020 20:03:10 -0300
Subject: [PATCH] Unpinning python-box, removing box_it_up and default_box
arguments
---
dynaconf/base.py | 6 +++---
setup.py | 3 +--
tests/test_dynabox.py | 3 +--
5 files changed, 14 insertions(+), 16 deletions(-)
diff --git a/dynaconf/base.py b/dynaconf/base.py
index 99b44ba..ccb1368 100644
--- a/dynaconf/base.py
+++ b/dynaconf/base.py
@@ -172,7 +172,7 @@ def __init__(self, settings_module=None, **kwargs): #
pragma: no cover
self._loaded_envs = []
self._loaded_files = []
self._deleted = set()
- self._store = DynaBox(box_it_up=True)
+ self._store = DynaBox()
self._env_cache = {}
self._loaded_by_loaders = {}
self._loaders = []
@@ -656,7 +656,7 @@ def _dotted_set(self, dotted_key, value, tomlfy=False,
**kwargs):
split_keys = dotted_key.split(".")
existing_data = self.get(split_keys[0], {})
- new_data = DynaBox(default_box=True)
+ new_data = DynaBox()
tree = new_data
for k in split_keys[:-1]:
@@ -744,7 +744,7 @@ def set(
value = self._merge_before_set(key, existing, value, is_secret)
if isinstance(value, dict):
- value = DynaBox(value, box_it_up=True)
+ value = DynaBox(value)
setattr(self, key, value)
self.store[key] = value
diff --git a/setup.py b/setup.py
index 2043a5a..6a2a01b 100644
--- a/setup.py
+++ b/setup.py
@@ -44,7 +44,7 @@ def read(*names, **kwargs):
include_package_data=True,
zip_safe=False,
platforms="any",
- install_requires=["python-box<4.0.0", "python-dotenv", "toml", "click"],
+ install_requires=["python-box", "python-dotenv", "toml", "click"],
tests_require=[
"pytest",
"pytest-cov",
@@ -84,7 +84,6 @@ def read(*names, **kwargs):
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
- "Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Utilities",
diff --git a/tests/test_dynabox.py b/tests/test_dynabox.py
index 3fbb683..0e4ffab 100644
--- a/tests/test_dynabox.py
+++ b/tests/test_dynabox.py
@@ -12,8 +12,7 @@
"token": {"TYPE": 1, "value": 2},
},
}
- },
- box_it_up=True,
+ }
)