|
|
a9b5b0 |
#
|
|
|
a9b5b0 |
# spec file for package python-django-money
|
|
|
a9b5b0 |
#
|
|
|
148e9f |
# Copyright (c) 2023 SUSE LLC
|
|
|
a9b5b0 |
#
|
|
|
a9b5b0 |
# All modifications and additions to the file contributed by third parties
|
|
|
a9b5b0 |
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
a9b5b0 |
# upon. The license for this file, and modifications and additions to the
|
|
|
a9b5b0 |
# file, is the same license as for the pristine package itself (unless the
|
|
|
a9b5b0 |
# license for the pristine package is not an Open Source License, in which
|
|
|
a9b5b0 |
# case the license is the MIT License). An "Open Source License" is a
|
|
|
a9b5b0 |
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
a9b5b0 |
# published by the Open Source Initiative.
|
|
|
a9b5b0 |
|
|
|
a9b5b0 |
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
a9b5b0 |
#
|
|
|
a9b5b0 |
|
|
|
a9b5b0 |
|
|
|
a9b5b0 |
%define skip_python2 1
|
|
|
148e9f |
%define skip_python36 1
|
|
|
a9b5b0 |
Name: python-django-money
|
|
Bernhard M. Wiedemann |
0c3513 |
Version: 3.4.1
|
|
|
a9b5b0 |
Release: 0
|
|
|
a9b5b0 |
Summary: Django support for using money and currency fields
|
|
|
a9b5b0 |
License: BSD-3-Clause
|
|
|
a9b5b0 |
Group: Development/Languages/Python
|
|
|
a9b5b0 |
URL: https://github.com/django-money/django-money
|
|
|
a9b5b0 |
Source: https://github.com/django-money/django-money/archive/%{version}.tar.gz#/django-money-%{version}.tar.gz
|
|
|
a9b5b0 |
BuildRequires: %{python_module setuptools}
|
|
|
a9b5b0 |
BuildRequires: fdupes
|
|
|
a9b5b0 |
BuildRequires: python-rpm-macros
|
|
|
a9b5b0 |
Requires: python-Django >= 1.11
|
|
|
a9b5b0 |
Requires: python-py-moneyed >= 0.8.0
|
|
|
a9b5b0 |
Requires: python-setuptools
|
|
|
a9b5b0 |
Recommends: python-certifi
|
|
|
a9b5b0 |
Suggests: python-django-reversion
|
|
|
a9b5b0 |
BuildArch: noarch
|
|
|
a9b5b0 |
# SECTION test requirements
|
|
|
a9b5b0 |
BuildRequires: %{python_module certifi}
|
|
|
a9b5b0 |
BuildRequires: %{python_module Django >= 1.11}
|
|
|
a9b5b0 |
BuildRequires: %{python_module django-reversion}
|
|
|
a9b5b0 |
BuildRequires: %{python_module py-moneyed >= 0.8.0}
|
|
|
a9b5b0 |
BuildRequires: %{python_module pytest >= 3.1.0}
|
|
|
a9b5b0 |
BuildRequires: %{python_module pytest-django}
|
|
|
a9b5b0 |
BuildRequires: %{python_module setuptools}
|
|
|
a9b5b0 |
# /SECTION
|
|
|
a9b5b0 |
%python_subpackages
|
|
|
a9b5b0 |
|
|
|
a9b5b0 |
%description
|
|
|
a9b5b0 |
Django money and currency fields in models and forms.
|
|
|
a9b5b0 |
|
|
|
a9b5b0 |
%prep
|
|
|
148e9f |
%autosetup -p1 -n django-money-%{version}
|
|
|
148e9f |
|
|
|
148e9f |
sed -i -e '/^addopts/d' pytest.ini
|
|
|
a9b5b0 |
|
|
|
a9b5b0 |
%build
|
|
|
a9b5b0 |
%python_build
|
|
|
a9b5b0 |
|
|
|
a9b5b0 |
%install
|
|
|
a9b5b0 |
%python_install
|
|
|
a9b5b0 |
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
a9b5b0 |
|
|
|
a9b5b0 |
%check
|
|
|
13de7e |
PYTHONPATH=.
|
|
|
a9b5b0 |
export DJANGO_SETTINGS_MODULE=tests.settings
|
|
|
3feee8 |
export PYTHONPATH=$(pwd -P)
|
|
|
27afc6 |
# we don't have python-mixer and it is needed only for tests
|
|
|
3feee8 |
# test_currency_field_null_switch_not_triggered_from_default_currency is
|
|
|
3feee8 |
# expected to fail according to gh#django-money/django-money#638
|
|
|
3feee8 |
%pytest -k "not (mixer or test_no_deprecation_warning or test_currency_field_null_switch_not_triggered_from_default_currency)"
|
|
|
a9b5b0 |
|
|
|
a9b5b0 |
%files %{python_files}
|
|
|
a9b5b0 |
%doc README.rst
|
|
|
a9b5b0 |
%license LICENSE.txt
|
|
|
148e9f |
%{python_sitelib}/djmoney
|
|
|
148e9f |
%{python_sitelib}/django_money-%{version}*-info
|
|
|
a9b5b0 |
|
|
|
a9b5b0 |
%changelog
|