forked from pool/python-dynaconf
* 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
97 lines
2.9 KiB
RPMSpec
97 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package python-dynaconf
|
|
#
|
|
# Copyright (c) 2023 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.1.11
|
|
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
|
|
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
|
|
|
|
%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
|
|
/usr/sbin/redis-server --stop-writes-on-bgsave-error no &
|
|
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
|