diff --git a/dynaconf-3.1.11.tar.gz b/dynaconf-3.1.11.tar.gz deleted file mode 100644 index 2bd88a6..0000000 --- a/dynaconf-3.1.11.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:45b532d16c603494a8d820aea49fab690e56d71ae05d89d2e188c2654cfdcc6a -size 3995831 diff --git a/dynaconf-3.2.4.tar.gz b/dynaconf-3.2.4.tar.gz new file mode 100644 index 0000000..31136bb --- /dev/null +++ b/dynaconf-3.2.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7d3b3518b25156db67991ae345a82b885968f578da8d30fd89e2298bc1517ca9 +size 4054985 diff --git a/python-dynaconf.changes b/python-dynaconf.changes index b05ef55..d7d0df1 100644 --- a/python-dynaconf.changes +++ b/python-dynaconf.changes @@ -1,3 +1,48 @@ +------------------------------------------------------------------- +Mon Jan 8 21:06:07 UTC 2024 - Dirk Müller + +- update to 3.2.4: + * allow underscore in env name + * support for 'entrypoint-path' in FLASK_APP + * dynaconf_merge=False on nested structures + * non-str key raising type error + * pin hvac minimum version + * Hooking: Add support for changing the wrapped class + * Hotfix bypass evaluation #984 + * Fix #976 from envvars parse True/False as booleans + * Fix #982 glob on settings_files + * docker compose is available on CI no need to install + * fix(django): fix #1000 AttributeError on admin + * Fix(django): fix #1000 AttributeError on admin (#1002) [Bruno + Rocha] + * Chore(lint): pep8 errors (#995) [Anderson Sousa] + * Hooking: Add support for changing the wrapped class + * Hotfix bypass evaluation #984 + * Fix #976 from envvars parse True/False as booleans + * Fix #982 glob on settings_files + * docker compose is available on CI no need to install + * minor "utils.inspect" internal renames + * re-write docstrings in sphinx-style (:param foo) + * expose 'get_history' + * refactor 'test_cli.py': use more robust test isolation + strategy + * add data return to 'inspect_settings' for cleaner testing + * Docker compose is available on CI no need to install. [Bruno + Rocha] + * Fix #982 glob on settings_files (#987) [Bruno Rocha] + * Fix #976 from envvars parse True/False as booleans (#983) + * Add tests for reverse_lazy for #858 + * Add converter helper function + * Refactor adding custom converters + * Replace bare tries with suppress and increase codecov (#901) + * Fix incorrect reverse_lazy workaround in docs to be correct + * Fix anchor link in FAQ doc (#895) + * Fix / CLI command validate not working properly (#892) + * fix #879 with @type converter + * add type_map to convert quoted types to proper class types + ("int" to int) +- drop support-python-311.patch (upstream) + ------------------------------------------------------------------- Tue Feb 28 06:08:59 UTC 2023 - Steve Kowalik @@ -36,7 +81,7 @@ Tue Feb 28 06:08:59 UTC 2023 - Steve Kowalik ------------------------------------------------------------------- Fri Jul 8 05:10:21 UTC 2022 - Steve Kowalik -- Update to 3.1.4: +- Update to 3.1.4: * Environment variables filtering #470 (#474) * Test to ensure #467 is not an issue (#535) * Fix #478 Make alias for environment -> environments (#534) diff --git a/python-dynaconf.spec b/python-dynaconf.spec index 8682fe6..2016e44 100644 --- a/python-dynaconf.spec +++ b/python-dynaconf.spec @@ -1,7 +1,7 @@ # # spec file for package python-dynaconf # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,14 +17,12 @@ Name: python-dynaconf -Version: 3.1.11 +Version: 3.2.4 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#/dynaconf-%{version}.tar.gz -# PATCH-FIX-UPSTREAM gh#dynaconf/dynaconf#830 -Patch0: support-python-311.patch BuildRequires: %{python_module setuptools >= 38.6.0} BuildRequires: fdupes BuildRequires: python-rpm-macros diff --git a/support-python-311.patch b/support-python-311.patch deleted file mode 100644 index 22743dd..0000000 --- a/support-python-311.patch +++ /dev/null @@ -1,158 +0,0 @@ -From 6ff2192ef2dfd0e29c6889cc248353a57e3293dc Mon Sep 17 00:00:00 2001 -From: Bruno Rocha -Date: Mon, 7 Nov 2022 18:36:05 +0000 -Subject: [PATCH] Add Python 3.11 to CI - -Thanks @Riverfount ---- - .github/workflows/main.yml | 16 ++++++++-------- - dynaconf/base.py | 4 ++-- - setup.py | 5 ++--- - tests/test_base.py | 10 ++++------ - 4 files changed, 16 insertions(+), 19 deletions(-) - -diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml -index d512c15f..fe399891 100644 ---- a/.github/workflows/main.yml -+++ b/.github/workflows/main.yml -@@ -36,7 +36,7 @@ jobs: - strategy: - fail-fast: false - matrix: -- python-version: ["3.8", "3.9", "3.10"] -+ python-version: ["3.8", "3.9", "3.10", "3.11"] - os: [ubuntu-latest, macos-latest, windows-latest] - runs-on: ${{ matrix.os }} - steps: -@@ -61,7 +61,7 @@ jobs: - strategy: - fail-fast: false - matrix: -- python-version: ["3.8", "3.10"] -+ python-version: ["3.8", "3.10", "3.11"] - os: [ubuntu-latest] - runs-on: ${{ matrix.os }} - steps: -@@ -104,7 +104,7 @@ jobs: - strategy: - fail-fast: false - matrix: -- python-version: ["3.8", "3.10"] -+ python-version: ["3.8", "3.10", "3.11"] - os: [macos-latest] - runs-on: ${{ matrix.os }} - steps: -@@ -126,7 +126,7 @@ jobs: - strategy: - fail-fast: false - matrix: -- python-version: ["3.8", "3.10"] -+ python-version: ["3.8", "3.10", "3.11"] - os: [ubuntu-latest, macos-latest] - runs-on: ${{ matrix.os }} - steps: -@@ -146,7 +146,7 @@ jobs: - strategy: - fail-fast: false - matrix: -- python-version: ["3.8", "3.10"] -+ python-version: ["3.8", "3.10", "3.11"] - os: [windows-latest] - runs-on: ${{ matrix.os }} - steps: -@@ -167,7 +167,7 @@ jobs: - strategy: - fail-fast: false - matrix: -- python-version: ["3.8", "3.10"] -+ python-version: ["3.8", "3.10", "3.11"] - os: [windows-latest] - runs-on: ${{ matrix.os }} - steps: -@@ -188,7 +188,7 @@ jobs: - strategy: - fail-fast: false - matrix: -- python-version: ["3.8", "3.10"] -+ python-version: ["3.8", "3.10", "3.11"] - os: [ubuntu-latest] - runs-on: ${{ matrix.os }} - services: -@@ -213,7 +213,7 @@ jobs: - strategy: - fail-fast: false - matrix: -- python-version: ["3.8", "3.10"] -+ python-version: ["3.8", "3.10", "3.11"] - os: [ubuntu-latest] - runs-on: ${{ matrix.os }} - services: -diff --git a/dynaconf/base.py b/dynaconf/base.py -index 2858b549..15f3df46 100644 ---- a/dynaconf/base.py -+++ b/dynaconf/base.py -@@ -753,8 +753,8 @@ def setenv(self, env=None, clean=True, silent=True, filename=None): - """ - env = env or self.ENV_FOR_DYNACONF - -- if not isinstance(env, str): -- raise AttributeError("env should be a string") -+ if not isinstance(env, str) or "_" in env or " " in env: -+ raise ValueError("env should be a string without _ or spaces") - - env = env.upper() - -diff --git a/setup.py b/setup.py -index af82a877..223653b5 100644 ---- a/setup.py -+++ b/setup.py -@@ -1,8 +1,6 @@ - from __future__ import annotations - --import io - import os --import sys - - from setuptools import find_packages - from setuptools import setup -@@ -83,7 +81,7 @@ def read(*names, **kwargs): - "all": ["redis", "ruamel.yaml", "configobj", "hvac"], - "test": test_requirements, - }, -- python_requires=">=3.7", -+ python_requires=">=3.8", - entry_points={"console_scripts": ["dynaconf=dynaconf.cli:main"]}, - setup_requires=["setuptools>=38.6.0"], - classifiers=[ -@@ -100,6 +98,7 @@ def read(*names, **kwargs): - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", -+ "Programming Language :: Python :: 3.11", - "Topic :: Utilities", - "Topic :: Software Development :: Libraries", - "Topic :: Software Development :: Libraries :: Python Modules", -diff --git a/tests/test_base.py b/tests/test_base.py -index ae1fe9b9..18363ba6 100644 ---- a/tests/test_base.py -+++ b/tests/test_base.py -@@ -204,15 +204,13 @@ def test_as_json(settings): - - - def test_env_should_be_string(settings): -- with pytest.raises(AttributeError): -- with settings.setenv(123456): -- pass -+ with pytest.raises(ValueError): -+ settings.setenv(123456) - - - def test_env_should_not_have_underline(settings): -- with pytest.raises(AttributeError): -- with settings.setenv("COOL_env"): -- pass -+ with pytest.raises(ValueError): -+ settings.setenv("COOL_env") - - - def test_path_for(settings):