7877f8d642
* Added Django 6.0 support.
* Added Python 3.13 support.
* Dropped Django 4.2 LTS support (end of extended support,
April 2026).
* Dropped Django 5.0 support. The admin's delete_translation
view calls ModelAdmin.log_deletions, which was introduced in
Django 5.1 — so translation deletion raised AttributeError on
5.0. The install requirement is now Django>=5.1.
* Replaced removed csrf_protect_m decorator with
@method_decorator(csrf_protect) in the admin.
* Replaced deprecated unique_together with
models.UniqueConstraint in the translated fields model.
* Added a validate_constraints() call alongside
validate_unique() in form validation so UniqueConstraint
violations surface through the form.
* Updated log_deletion() call to the renamed log_deletions()
with its new signature (Django 6).
* Fixed a thread-safety bug in SortedSelectMixin.sort_choices()
where the deep-copy guard was skipped for the second and
later optgroups, causing .sort() to mutate the caller's
choices list.
* Expanded the test suite with new modules covering admin
views, cache, forms, managers, model construction, template
tags, views, and widgets.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-parler?expand=0&rev=12
65 lines
2.0 KiB
RPMSpec
65 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package python-django-parler
|
|
#
|
|
# Copyright (c) 2026 SUSE LLC and contributors
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%define skip_python2 1
|
|
%define skip_python36 1
|
|
Name: python-django-parler
|
|
Version: 2.4
|
|
Release: 0
|
|
Summary: Simple Django model translations
|
|
License: Apache-2.0
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/edoburu/django-parler
|
|
Source: https://github.com/django-parler/django-parler/archive/v%{version}.tar.gz#/django-parler-%{version}.tar.gz
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-Django
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module Django}
|
|
BuildRequires: %{python_module django-polymorphic}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
Simple Django model translations without nasty hacks, including admin integration.
|
|
|
|
%prep
|
|
%setup -q -n django-parler-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%python_exec runtests.py -v 2
|
|
|
|
%files %{python_files}
|
|
%doc AUTHORS CHANGES.rst README.rst docs/*.rst docs/*/*.rst
|
|
%license LICENSE
|
|
%{python_sitelib}/parler
|
|
%{python_sitelib}/django_parler-%{version}*-info
|
|
|
|
%changelog
|