17
0

3 Commits

2 changed files with 15 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 26 12:39:20 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Apr 6 19:20:53 UTC 2024 - Dirk Müller <dmueller@suse.com> Sat Apr 6 19:20:53 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-dynaconf # spec file for package python-dynaconf
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -23,7 +23,9 @@ Summary: The dynamic configurator for your Python Project
License: MIT License: MIT
URL: https://github.com/rochacbruno/dynaconf URL: https://github.com/rochacbruno/dynaconf
Source: https://github.com/rochacbruno/dynaconf/archive/%{version}.tar.gz#/dynaconf-%{version}.tar.gz Source: https://github.com/rochacbruno/dynaconf/archive/%{version}.tar.gz#/dynaconf-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 38.6.0} BuildRequires: %{python_module setuptools >= 38.6.0}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-PyYAML Requires: python-PyYAML
@@ -35,9 +37,9 @@ Requires: python-python-dotenv
Requires: python-redis Requires: python-redis
Requires: python-setuptools Requires: python-setuptools
Requires: python-toml Requires: python-toml
Requires(post): alts
Requires(postun): alts
Suggests: python-Django Suggests: python-Django
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module Django} BuildRequires: %{python_module Django}
@@ -66,16 +68,16 @@ The dynamic configurator for your Python Project
rm tests/test_vault.py rm tests/test_vault.py
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/dynaconf %python_clone -a %{buildroot}%{_bindir}/dynaconf
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
/usr/sbin/redis-server --stop-writes-on-bgsave-error no & %{_sbindir}/redis-server --stop-writes-on-bgsave-error no &
export DYNACONF_TEST_REDIS_URL==http://127.0.0.1:6379 export DYNACONF_TEST_REDIS_URL==http://127.0.0.1:6379
%pytest tests/ %pytest tests/
@@ -89,6 +91,7 @@ export DYNACONF_TEST_REDIS_URL==http://127.0.0.1:6379
%doc CHANGELOG.md README.md %doc CHANGELOG.md README.md
%license LICENSE %license LICENSE
%python_alternative %{_bindir}/dynaconf %python_alternative %{_bindir}/dynaconf
%{python_sitelib}/* %{python_sitelib}/dynaconf
%{python_sitelib}/dynaconf-%{version}*-info
%changelog %changelog