1
0
Files
python-django-model-utils/python-django-model-utils.spec
Steve Kowalik 17cc02ea5f - Update to 4.4.0:
* Add support for `Python 3.11`
  * Add support for `Python 3.12`
  * Drop support for `Python 3.7`
  * Add support for `Django 4.2`
  * Add support for `Django 5.0`
  * Remove ``SaveSignalHandlingModel``. This model used a modified copy of
    the internal Django method `Model.save_base()` and had not been updated
    for upstream bug fixes changes since its addition.
  * Add Swedish translation
  * Use proper column name instead of attname
  * Fix ValueError when calling prefetch_related for tracked ForeignKey fields
- Switch to autosetup and pyproject macros.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-model-utils?expand=0&rev=15
2024-02-22 05:02:26 +00:00

66 lines
2.1 KiB
RPMSpec

#
# spec file for package python-django-model-utils
#
# Copyright (c) 2024 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-django-model-utils
Version: 4.4.0
Release: 0
Summary: Django model mixins and utilities
License: BSD-3-Clause
URL: https://github.com/jazzband/django-model-utils
Source: https://files.pythonhosted.org/packages/source/d/django-model-utils/django-model-utils-%{version}.tar.gz
# Upstreamed to https://github.com/jazzband/django-model-utils/pull/516
Patch0: use-sqlite.patch
BuildRequires: %{python_module Django >= 2.0}
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module freezegun}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-django}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
Requires: python-Django >= 2.0
BuildArch: noarch
%python_subpackages
%description
Django model mixins and utilities.
%prep
%autosetup -p1 -n django-model-utils-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# skip JoinManagerTest tests as they need proper DB (pgsql/mysql)
export PYTHONPATH=.
export SQLITE=1
%pytest -k 'not JoinManagerTest'
%files %{python_files}
%license LICENSE.txt
%doc AUTHORS.rst CHANGES.rst README.rst
%{python_sitelib}/model_utils
%{python_sitelib}/django_model_utils-%{version}.dist-info
%changelog