Hello community,

here is the log from the commit of package python-dynaconf for openSUSE:Factory 
checked in at 2020-08-18 15:05:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dynaconf (Old)
 and      /work/SRC/openSUSE:Factory/.python-dynaconf.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-dynaconf"

Tue Aug 18 15:05:09 2020 rev:7 rq:825355 version:3.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-dynaconf/python-dynaconf.changes  
2020-05-28 09:17:42.481018748 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-dynaconf.new.3399/python-dynaconf.changes    
    2020-08-18 15:05:16.207897206 +0200
@@ -1,0 +2,11 @@
+Sun Aug  9 10:53:55 UTC 2020 - John Vandenberg <[email protected]>
+
+- Devendor the runtime package
+- Activate redis tests using redis-server-url.patch
+- Remove box-4.0.patch merged upstream
+- Update to v3.0.0
+  * Breaking change: Envless by default
+  * See https://github.com/rochacbruno/dynaconf/blob/master/CHANGELOG.md
+    for other changes
+
+-------------------------------------------------------------------

Old:
----
  2.2.3.tar.gz
  box-4.0.patch

New:
----
  dynaconf-3.0.0.tar.gz
  redis-server-url.patch

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

Other differences:
------------------
++++++ python-dynaconf.spec ++++++
--- /var/tmp/diff_new_pack.H2KGwj/_old  2020-08-18 15:05:19.627898621 +0200
+++ /var/tmp/diff_new_pack.H2KGwj/_new  2020-08-18 15:05:19.631898623 +0200
@@ -19,13 +19,13 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-dynaconf
-Version:        2.2.3
+Version:        3.0.0
 Release:        0
 Summary:        The dynamic configurator for your Python Project
 License:        MIT
 URL:            https://github.com/rochacbruno/dynaconf
-Source:         
https://github.com/rochacbruno/dynaconf/archive/%{version}.tar.gz
-Patch0:         box-4.0.patch
+Source:         
https://github.com/rochacbruno/dynaconf/archive/%{version}.tar.gz#/dynaconf-%{version}.tar.gz
+Patch0:         redis-server-url.patch
 BuildRequires:  %{python_module setuptools >= 38.6.0}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -53,6 +53,7 @@
 BuildRequires:  %{python_module python-dotenv}
 BuildRequires:  %{python_module redis}
 BuildRequires:  %{python_module toml}
+BuildRequires:  redis
 # /SECTION
 %python_subpackages
 
@@ -64,9 +65,10 @@
 %patch0 -p1
 
 # require running docker with the server
-rm tests/test_redis.py
 rm tests/test_vault.py
 
+rm -r dynaconf/vendor/
+
 %build
 %python_build
 
@@ -76,6 +78,12 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
+mkdir ~/bin
+%python_expand cp -p %{buildroot}%{_bindir}/dynaconf-%{$python_bin_suffix} 
~/bin/dynaconf
+export PATH=~/bin:$PATH
+export LANG=en_US.UTF-8
+/usr/sbin/redis-server &
+export REDIS_URL=http://127.0.0.1:6379
 %pytest tests/
 
 %post

++++++ redis-server-url.patch ++++++
diff --git a/tests/test_redis.py b/tests/test_redis.py
index 34e7c2e..7e3005c 100644
--- a/tests/test_redis.py
+++ b/tests/test_redis.py
@@ -15,14 +15,20 @@ def custom_checker(ip_address, port):
     return True
 
 
[email protected](scope="module")
-def docker_redis(docker_services):
-    docker_services.start("redis")
-    public_port = docker_services.wait_for_service(
-        "redis", 6379, check_server=custom_checker
-    )
-    url = f"http://{docker_services.docker_ip}:{public_port}";
-    return url
+REDIS_URL = os.environ.get('REDIS_URL', None)
+if REDIS_URL:
+    @pytest.fixture(scope="module")
+    def docker_redis():
+        return REDIS_URL
+else:
+    @pytest.fixture(scope="module")
+    def docker_redis(docker_services):
+        docker_services.start("redis")
+        public_port = docker_services.wait_for_service(
+            "redis", 6379, check_server=custom_checker
+        )
+        url = f"http://{docker_services.docker_ip}:{public_port}";
+        return url
 
 
 @pytest.mark.integration

Reply via email to