1
0

4 Commits

4 changed files with 26 additions and 17 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c570466574ac82b37ae0117ac56a9ae9d2bdc6880258252e6ad8ffac0f7b4e91
size 68161

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:08d887f950af8d30ac28be3fba115692aed46d1801784b4e766a08eb74ce2b82
size 68387

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Jun 3 07:19:36 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Tue Apr 22 08:14:18 UTC 2025 - Markéta Machová <mmachova@suse.com>
- update to 3.5.4
* Django 5.2 and Python 3.13 support
-------------------------------------------------------------------
Sat Aug 31 13:46:05 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-django-money
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,10 +16,8 @@
#
%define skip_python2 1
%define skip_python36 1
Name: python-django-money
Version: 3.5.3
Version: 3.5.4
Release: 0
Summary: Django support for using money and currency fields
License: BSD-3-Clause
@@ -29,20 +27,22 @@ Source: https://github.com/django-money/django-money/archive/%{version}.
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Django >= 1.11
Requires: python-py-moneyed >= 0.8.0
Requires: python-Django >= 2.2
Requires: python-py-moneyed >= 2.0
Requires: python-setuptools
Recommends: python-certifi
Suggests: python-django-reversion
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module certifi}
BuildRequires: %{python_module Django >= 1.11}
BuildRequires: %{python_module Django >= 2.2}
BuildRequires: %{python_module django-reversion}
BuildRequires: %{python_module py-moneyed >= 0.8.0}
BuildRequires: %{python_module pytest >= 3.1.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module py-moneyed >= 2.0}
BuildRequires: %{python_module pytest >= 8.2}
BuildRequires: %{python_module pytest-django}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
# /SECTION
%python_subpackages
@@ -55,10 +55,10 @@ Django money and currency fields in models and forms.
sed -i -e '/^addopts/d' pytest.ini
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -66,9 +66,7 @@ PYTHONPATH=.
export DJANGO_SETTINGS_MODULE=tests.settings
export PYTHONPATH=$(pwd -P)
# we don't have python-mixer and it is needed only for tests
# test_currency_field_null_switch_not_triggered_from_default_currency is
# expected to fail according to gh#django-money/django-money#638
%pytest -k "not (mixer or test_no_deprecation_warning or test_currency_field_null_switch_not_triggered_from_default_currency)"
%pytest -k "not mixer"
%files %{python_files}
%doc README.rst