15
0
Files
python-dynaconf/python-dynaconf.spec
Steve Kowalik cb6d1d8ca2 - 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

102 lines
3.0 KiB
RPMSpec

#
# spec file for package python-dynaconf
#
# Copyright (c) 2022 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-dynaconf
Version: 3.1.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
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
Suggests: python-Django
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
# SECTION test requirements
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
%autosetup -p1 -n dynaconf-%{version}
# require running docker with the server
rm tests/test_vault.py
rm -r dynaconf/vendor_src/
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/dynaconf
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
mkdir -p ~/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 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