1
0
Files
python-dynaconf/python-dynaconf.spec

95 lines
2.8 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package python-dynaconf
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-dynaconf
Version: 3.2.5
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
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
- 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) * Fix #462 make DynaBox nested List to use DynaBox as default class (#533) * Fix #511 allow user to specify loaders argument to execute_loaders (#531) * Fix #449 - Django lazy templating Fix #449 (#528) * Fix #482 - formatter case insensitive (#527) * Allow Title case lookup and validation. (#526) * Allow load_file to accept pathlib.Path (#525) * Case insensitive envvar traversal (#524) [Bruno Rocha] * Fix #521 - FlaskDynaconf should raise KeyError for non existing keys * Fix docs regarding --django argument on cli (#477) * Changed enabled_core_loaders elements to be upper case to fix #455 (#457) * Fix merging hyperlink to fix #454 (#458) * Specify flask extension initializers by entry point object reference (#456) * Fix #445 casting on dottet get. (#446) * Fix #443 object merge with same value on same level keys (#444) * Fix #434 setenv failing to unset LazyValues (#437) * Fix colors and KEyError handling on cli.py (#429) * Remove links to outdated issues from guidelines. * Added full Dynaconf Diagram and few fizes. (#418) [Bruno Rocha] * Fix #407 - add proper equality test for CombinedValidator (#413) * HOTFIX: Logging instance has a `formatter` attribute (#410) * Included example of custom SOPS loader to the docs. * Add auth username and password for redis settings (#378) * Test all names in Validator("foo", "bar", must_exist=False) (#406) * Fix #391 make box_settings optional, change vendoring strategy (#398) * Fix test for versioned kv engine in latest vault. [Peng Yin] * Read all secrets under a vault path. [Peng Yin] * Allow importing SEARCHTREE before settings are configured (#383) * Allow testing against local redis server (#387) [John Vandenberg] * Fix #359 lazy template substitution on nested keys (#375) - Remove patch redis-server-url.patch: * Included upstream. - Add python-Django to BuildRequires and Suggests. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dynaconf?expand=0&rev=16
2022-07-08 05:15:43 +00:00
Suggests: python-Django
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
- 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) * Fix #462 make DynaBox nested List to use DynaBox as default class (#533) * Fix #511 allow user to specify loaders argument to execute_loaders (#531) * Fix #449 - Django lazy templating Fix #449 (#528) * Fix #482 - formatter case insensitive (#527) * Allow Title case lookup and validation. (#526) * Allow load_file to accept pathlib.Path (#525) * Case insensitive envvar traversal (#524) [Bruno Rocha] * Fix #521 - FlaskDynaconf should raise KeyError for non existing keys * Fix docs regarding --django argument on cli (#477) * Changed enabled_core_loaders elements to be upper case to fix #455 (#457) * Fix merging hyperlink to fix #454 (#458) * Specify flask extension initializers by entry point object reference (#456) * Fix #445 casting on dottet get. (#446) * Fix #443 object merge with same value on same level keys (#444) * Fix #434 setenv failing to unset LazyValues (#437) * Fix colors and KEyError handling on cli.py (#429) * Remove links to outdated issues from guidelines. * Added full Dynaconf Diagram and few fizes. (#418) [Bruno Rocha] * Fix #407 - add proper equality test for CombinedValidator (#413) * HOTFIX: Logging instance has a `formatter` attribute (#410) * Included example of custom SOPS loader to the docs. * Add auth username and password for redis settings (#378) * Test all names in Validator("foo", "bar", must_exist=False) (#406) * Fix #391 make box_settings optional, change vendoring strategy (#398) * Fix test for versioned kv engine in latest vault. [Peng Yin] * Read all secrets under a vault path. [Peng Yin] * Allow importing SEARCHTREE before settings are configured (#383) * Allow testing against local redis server (#387) [John Vandenberg] * Fix #359 lazy template substitution on nested keys (#375) - Remove patch redis-server-url.patch: * Included upstream. - Add python-Django to BuildRequires and Suggests. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dynaconf?expand=0&rev=16
2022-07-08 05:15:43 +00:00
BuildRequires: %{python_module Django}
BuildRequires: %{python_module Flask >= 0.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}
BuildRequires: redis
# /SECTION
%python_subpackages
%description
The dynamic configurator for your Python Project
%prep
- 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) * Fix #462 make DynaBox nested List to use DynaBox as default class (#533) * Fix #511 allow user to specify loaders argument to execute_loaders (#531) * Fix #449 - Django lazy templating Fix #449 (#528) * Fix #482 - formatter case insensitive (#527) * Allow Title case lookup and validation. (#526) * Allow load_file to accept pathlib.Path (#525) * Case insensitive envvar traversal (#524) [Bruno Rocha] * Fix #521 - FlaskDynaconf should raise KeyError for non existing keys * Fix docs regarding --django argument on cli (#477) * Changed enabled_core_loaders elements to be upper case to fix #455 (#457) * Fix merging hyperlink to fix #454 (#458) * Specify flask extension initializers by entry point object reference (#456) * Fix #445 casting on dottet get. (#446) * Fix #443 object merge with same value on same level keys (#444) * Fix #434 setenv failing to unset LazyValues (#437) * Fix colors and KEyError handling on cli.py (#429) * Remove links to outdated issues from guidelines. * Added full Dynaconf Diagram and few fizes. (#418) [Bruno Rocha] * Fix #407 - add proper equality test for CombinedValidator (#413) * HOTFIX: Logging instance has a `formatter` attribute (#410) * Included example of custom SOPS loader to the docs. * Add auth username and password for redis settings (#378) * Test all names in Validator("foo", "bar", must_exist=False) (#406) * Fix #391 make box_settings optional, change vendoring strategy (#398) * Fix test for versioned kv engine in latest vault. [Peng Yin] * Read all secrets under a vault path. [Peng Yin] * Allow importing SEARCHTREE before settings are configured (#383) * Allow testing against local redis server (#387) [John Vandenberg] * Fix #359 lazy template substitution on nested keys (#375) - Remove patch redis-server-url.patch: * Included upstream. - Add python-Django to BuildRequires and Suggests. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dynaconf?expand=0&rev=16
2022-07-08 05:15:43 +00:00
%autosetup -p1 -n dynaconf-%{version}
# require running docker with the server
rm tests/test_vault.py
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/dynaconf
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
- Update to 3.1.11: * New data key casing must adapt to existing key casing (#795) * Parse negative numbers from envvar Fix #799 and Fix #585 (#802) * Fix get command with Django (#804) * Allow merge_unique on lists when merge_enabled=True (#810) * Rebind current env when forced for Pytest Fix #728 (#809) * AUTO_CAST can be enabled on instance (#811) * Fix #807 Use client.auth.approle.login instead of client.auth_approle (#808) * Fix #768 of kv property depreciation from client object (#769) * Feature/detect casting comb token from converters (#784) * Using filter_strategy in env_loader to fix #760 (#767) * Fix cli init command for flask (#705) (#774) * Add unique label when merging lists to fix issue #653 (#661) * Add new validation to fix issue #585 (#667) * Add support for Python 3.10 (#665) * Added `dynaconf get` command to cli (#730) * Fix FlaskConfig.setdefault (#706) * Force PYTHONIOENCODING to utf-8 to fix #664 (#672) * Fix Issue 662 Lazy validation (#675) * Load vault secrets from environment less stores or which are not written by dynaconf (#725) * Added validate_only_current_env to validator (issue #734) (#736) * Makes Django/Flask kwargs case insensitive (#721) * Fix #595 namedtuples are no more converted to BoxList (#623) * description and type annotation for validator (#634) * Add support for Python 3.9 (#618) * Add type annotations for dynaconf.utils (#450) * feat: add filter strategy with PrefixFilter (#625) * Add a warning if `--env` is passed to `init` (#629) - Add patch support-python-311.patch: OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dynaconf?expand=0&rev=18
2023-02-28 06:09:50 +00:00
/usr/sbin/redis-server --stop-writes-on-bgsave-error no &
- 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) * Fix #462 make DynaBox nested List to use DynaBox as default class (#533) * Fix #511 allow user to specify loaders argument to execute_loaders (#531) * Fix #449 - Django lazy templating Fix #449 (#528) * Fix #482 - formatter case insensitive (#527) * Allow Title case lookup and validation. (#526) * Allow load_file to accept pathlib.Path (#525) * Case insensitive envvar traversal (#524) [Bruno Rocha] * Fix #521 - FlaskDynaconf should raise KeyError for non existing keys * Fix docs regarding --django argument on cli (#477) * Changed enabled_core_loaders elements to be upper case to fix #455 (#457) * Fix merging hyperlink to fix #454 (#458) * Specify flask extension initializers by entry point object reference (#456) * Fix #445 casting on dottet get. (#446) * Fix #443 object merge with same value on same level keys (#444) * Fix #434 setenv failing to unset LazyValues (#437) * Fix colors and KEyError handling on cli.py (#429) * Remove links to outdated issues from guidelines. * Added full Dynaconf Diagram and few fizes. (#418) [Bruno Rocha] * Fix #407 - add proper equality test for CombinedValidator (#413) * HOTFIX: Logging instance has a `formatter` attribute (#410) * Included example of custom SOPS loader to the docs. * Add auth username and password for redis settings (#378) * Test all names in Validator("foo", "bar", must_exist=False) (#406) * Fix #391 make box_settings optional, change vendoring strategy (#398) * Fix test for versioned kv engine in latest vault. [Peng Yin] * Read all secrets under a vault path. [Peng Yin] * Allow importing SEARCHTREE before settings are configured (#383) * Allow testing against local redis server (#387) [John Vandenberg] * Fix #359 lazy template substitution on nested keys (#375) - Remove patch redis-server-url.patch: * Included upstream. - Add python-Django to BuildRequires and Suggests. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dynaconf?expand=0&rev=16
2022-07-08 05:15:43 +00:00
export DYNACONF_TEST_REDIS_URL==http://127.0.0.1:6379
%pytest tests/
%post
%python_install_alternative dynaconf
%postun
%python_uninstall_alternative dynaconf
%files %{python_files}
%doc CHANGELOG.md README.md
%license LICENSE
%python_alternative %{_bindir}/dynaconf
%{python_sitelib}/*
%changelog