Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-django-tables2 for openSUSE:Factory checked in at 2023-12-06 23:48:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-django-tables2 (Old) and /work/SRC/openSUSE:Factory/.python-django-tables2.new.25432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django-tables2" Wed Dec 6 23:48:37 2023 rev:9 rq:1131288 version:2.7.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-django-tables2/python-django-tables2.changes 2023-07-03 17:42:19.696557095 +0200 +++ /work/SRC/openSUSE:Factory/.python-django-tables2.new.25432/python-django-tables2.changes 2023-12-06 23:49:14.953493968 +0100 @@ -1,0 +2,13 @@ +Wed Dec 6 09:09:00 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 2.7.0: + * Update docs dependencies; fix docs search; add + readthedocs.yaml (#935) + * Add example on how to use `Accessor` to documentation in + `custom-data.rst` (#917) by @ruddra + * Use pre-commit in ci, add isort, flake8, pyupgrade (#932) + * Add support for Django 5.0 and Python 3.12 (#930) + * Add missing `{% load l10n %}` in templates (#919) by + @tvanekeris + +------------------------------------------------------------------- Old: ---- django-tables2-2.6.0.tar.gz New: ---- django-tables2-2.7.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-django-tables2.spec ++++++ --- /var/tmp/diff_new_pack.w3ZMFo/_old 2023-12-06 23:49:15.449511895 +0100 +++ /var/tmp/diff_new_pack.w3ZMFo/_new 2023-12-06 23:49:15.453512039 +0100 @@ -16,10 +16,9 @@ # -%define skip_python2 1 -%define skip_python36 1 +%{?sle15_python_module_pythons} Name: python-django-tables2 -Version: 2.6.0 +Version: 2.7.0 Release: 0 Summary: Table/data-grid framework for Django License: BSD-2-Clause @@ -28,12 +27,12 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-Django >= 3.2 +Requires: python-Django >= 4.2 Suggests: python-tablib BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module base >= 3.7} -BuildRequires: %{python_module Django >= 3.2} +BuildRequires: %{python_module Django >= 4.2} BuildRequires: %{python_module django-filter >= 2.3.0} BuildRequires: %{python_module fudge} BuildRequires: %{python_module psycopg2} ++++++ django-tables2-2.6.0.tar.gz -> django-tables2-2.7.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-tables2-2.6.0/.github/workflows/ci.yml new/django-tables2-2.7.0/.github/workflows/ci.yml --- old/django-tables2-2.6.0/.github/workflows/ci.yml 2023-06-27 11:40:34.000000000 +0200 +++ new/django-tables2-2.7.0/.github/workflows/ci.yml 2023-12-05 08:54:23.000000000 +0100 @@ -1,49 +1,52 @@ name: CI on: [push, pull_request] jobs: - black: + pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/setup-python@v4.6.1 - - uses: actions/checkout@v3 - - run: python -m pip install --upgrade black - - run: black --check . - - flake8: - runs-on: ubuntu-latest - steps: - - uses: actions/setup-python@v4.6.1 - - uses: actions/checkout@v3 - - run: python -m pip install flake8 - - run: flake8 - - isort: - runs-on: ubuntu-latest - steps: - - uses: actions/setup-python@v4.6.1 - - uses: actions/checkout@v3 - - run: python -m pip install -r requirements/common.pip isort==5.6.4 - - run: isort --diff --check django_tables2 test + - uses: actions/setup-python@v4 + with: + python-version: "3.11" + - uses: actions/checkout@v4 + - run: pip install pre-commit + - run: pre-commit run --show-diff-on-failure --all-files tests: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8, 3.9, "3.10", 3.11] - django-version: [3.2, 4.1, 4.2] + python-version: [3.8, 3.9, "3.10", 3.11, 3.12] + django-version: [3.2, 4.1, 4.2, 5.0] exclude: + # Django 3.2 - python-version: "3.10" django-version: 3.2 - python-version: 3.11 django-version: 3.2 + - python-version: 3.12 + django-version: 3.2 + + # Django 4.1 + - python-version: 3.12 + django-version: 4.1 + + # Django 4.2 + - python-version: 3.12 + django-version: 4.2 + + # Django 5.0 + - python-version: 3.8 + django-version: 5.0 + - python-version: 3.9 + django-version: 5.0 steps: - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4.6.1 + uses: actions/setup-python@v4.7.1 with: python-version: ${{ matrix.python-version }} - - uses: actions/checkout@v3 - - uses: actions/cache@v3.3.1 + - uses: actions/checkout@v4 + - uses: actions/cache@v3.3.2 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} @@ -61,8 +64,8 @@ docs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4.6.1 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4.7.1 with: python-version: "3.11" cache: 'pip' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-tables2-2.6.0/.pre-commit-config.yaml new/django-tables2-2.7.0/.pre-commit-config.yaml --- old/django-tables2-2.6.0/.pre-commit-config.yaml 2023-06-27 11:40:34.000000000 +0200 +++ new/django-tables2-2.7.0/.pre-commit-config.yaml 2023-12-05 08:54:23.000000000 +0100 @@ -1,6 +1,23 @@ repos: -- repo: https://github.com/psf/black + - repo: https://github.com/psf/black rev: 23.1.0 hooks: - - id: black - language_version: python3.11 + - id: black + language_version: python3.11 + + - repo: https://github.com/asottile/pyupgrade + rev: v3.3.1 + hooks: + - id: pyupgrade + args: [--py38-plus] + + - repo: https://github.com/pycqa/isort + rev: 5.12.0 + hooks: + - id: isort + + - repo: https://github.com/PyCQA/flake8 + rev: 6.0.0 + hooks: + - id: flake8 + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-tables2-2.6.0/.readthedocs.yaml new/django-tables2-2.7.0/.readthedocs.yaml --- old/django-tables2-2.6.0/.readthedocs.yaml 1970-01-01 01:00:00.000000000 +0100 +++ new/django-tables2-2.7.0/.readthedocs.yaml 2023-12-05 08:54:23.000000000 +0100 @@ -0,0 +1,19 @@ +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +# Set the version of Python and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.11" + +# Build documentation in the docs/ directory with Sphinx +sphinx: + configuration: docs/conf.py + +python: + install: + - requirements: docs/requirements.txt diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-tables2-2.6.0/CHANGELOG.md new/django-tables2-2.7.0/CHANGELOG.md --- old/django-tables2-2.6.0/CHANGELOG.md 2023-06-27 11:40:34.000000000 +0200 +++ new/django-tables2-2.7.0/CHANGELOG.md 2023-12-05 08:54:23.000000000 +0100 @@ -1,5 +1,12 @@ # Change log +## 2.7.0 (2023-12-05) +- Update docs dependencies; fix docs search; add readthedocs.yaml ([#935](https://github.com/jieter/django-tables2/pull/935)) +- Add example on how to use `Accessor` to documentation in `custom-data.rst` ([#917](https://github.com/jieter/django-tables2/pull/917)) by [@ruddra](https://github.com/ruddra) +- Use pre-commit in ci, add isort, flake8, pyupgrade ([#932](https://github.com/jieter/django-tables2/pull/932)) +- Add support for Django 5.0 and Python 3.12 ([#930](https://github.com/jieter/django-tables2/pull/930)) +- Add missing `{% load l10n %}` in templates ([#919](https://github.com/jieter/django-tables2/pull/919)) by [@tvanekeris](https://github.com/tvanekeris) + ## 2.6.0 (2023-06-27) - Fix bootstrap5-responsive template to extend bootstrap5 ([#909](https://github.com/jieter/django-tables2/pull/909)) by [@mschoettle](https://github.com/mschoettle) - Add support for django 4.2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-tables2-2.6.0/django_tables2/__init__.py new/django-tables2-2.7.0/django_tables2/__init__.py --- old/django-tables2-2.6.0/django_tables2/__init__.py 2023-06-27 11:40:34.000000000 +0200 +++ new/django-tables2-2.7.0/django_tables2/__init__.py 2023-12-05 08:54:23.000000000 +0100 @@ -20,7 +20,7 @@ from .utils import A from .views import MultiTableMixin, SingleTableMixin, SingleTableView -__version__ = "2.6.0" +__version__ = "2.7.0" __all__ = ( "Table", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-tables2-2.6.0/django_tables2/templates/django_tables2/bootstrap.html new/django-tables2-2.7.0/django_tables2/templates/django_tables2/bootstrap.html --- old/django-tables2-2.6.0/django_tables2/templates/django_tables2/bootstrap.html 2023-06-27 11:40:34.000000000 +0200 +++ new/django-tables2-2.7.0/django_tables2/templates/django_tables2/bootstrap.html 2023-12-05 08:54:23.000000000 +0100 @@ -1,5 +1,5 @@ {% load django_tables2 %} -{% load i18n %} +{% load i18n l10n %} {% block table-wrapper %} <div class="table-container"> {% block table %} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-tables2-2.6.0/django_tables2/templates/django_tables2/bootstrap4.html new/django-tables2-2.7.0/django_tables2/templates/django_tables2/bootstrap4.html --- old/django-tables2-2.6.0/django_tables2/templates/django_tables2/bootstrap4.html 2023-06-27 11:40:34.000000000 +0200 +++ new/django-tables2-2.7.0/django_tables2/templates/django_tables2/bootstrap4.html 2023-12-05 08:54:23.000000000 +0100 @@ -1,5 +1,5 @@ {% load django_tables2 %} -{% load i18n %} +{% load i18n l10n %} {% block table-wrapper %} <div class="table-container"> {% block table %} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-tables2-2.6.0/django_tables2/templates/django_tables2/bootstrap5.html new/django-tables2-2.7.0/django_tables2/templates/django_tables2/bootstrap5.html --- old/django-tables2-2.6.0/django_tables2/templates/django_tables2/bootstrap5.html 2023-06-27 11:40:34.000000000 +0200 +++ new/django-tables2-2.7.0/django_tables2/templates/django_tables2/bootstrap5.html 2023-12-05 08:54:23.000000000 +0100 @@ -1,5 +1,5 @@ {% load django_tables2 %} -{% load i18n %} +{% load i18n l10n %} {% block table-wrapper %} <div class="table-container"> {% block table %} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-tables2-2.6.0/django_tables2/templates/django_tables2/semantic.html new/django-tables2-2.7.0/django_tables2/templates/django_tables2/semantic.html --- old/django-tables2-2.6.0/django_tables2/templates/django_tables2/semantic.html 2023-06-27 11:40:34.000000000 +0200 +++ new/django-tables2-2.7.0/django_tables2/templates/django_tables2/semantic.html 2023-12-05 08:54:23.000000000 +0100 @@ -1,5 +1,5 @@ {% load django_tables2 %} -{% load i18n %} +{% load i18n l10n %} {% block table-wrapper %} <div class="ui container table-container"> {% block table %} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-tables2-2.6.0/django_tables2/templates/django_tables2/table.html new/django-tables2-2.7.0/django_tables2/templates/django_tables2/table.html --- old/django-tables2-2.6.0/django_tables2/templates/django_tables2/table.html 2023-06-27 11:40:34.000000000 +0200 +++ new/django-tables2-2.7.0/django_tables2/templates/django_tables2/table.html 2023-12-05 08:54:23.000000000 +0100 @@ -1,5 +1,5 @@ {% load django_tables2 %} -{% load i18n %} +{% load i18n l10n %} {% block table-wrapper %} <div class="table-container"> {% block table %} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-tables2-2.6.0/docs/conf.py new/django-tables2-2.7.0/docs/conf.py --- old/django-tables2-2.6.0/docs/conf.py 2023-06-27 11:40:34.000000000 +0200 +++ new/django-tables2-2.7.0/docs/conf.py 2023-12-05 08:54:23.000000000 +0100 @@ -31,6 +31,7 @@ "sphinx.ext.napoleon", "sphinx.ext.viewcode", "sphinx.ext.doctest", + "sphinxcontrib.jquery", "sphinxcontrib.spelling", "myst_parser", ] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-tables2-2.6.0/docs/pages/custom-data.rst new/django-tables2-2.7.0/docs/pages/custom-data.rst --- old/django-tables2-2.6.0/docs/pages/custom-data.rst 2023-06-27 11:40:34.000000000 +0200 +++ new/django-tables2-2.7.0/docs/pages/custom-data.rst 2023-12-05 08:54:23.000000000 +0100 @@ -34,6 +34,15 @@ If the resulting value is callable, it is called and the return value is used. +Moreover, you can use `accessor` with the table columns to access nested values. For example:: + + >>> data = [{"abc": {"one": {"two": "three"}}}, {"abc": {"one": {"two": "four"}}}] + >>> class MyTable(tables.Table): + ... abc = tables.Column(accessor="abc__one__two") + >>> table = MyTable(data) + >>> list(map(str, table.rows[1])) + ['four'] + .. _table.render_foo: `Table.render_foo` methods diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-tables2-2.6.0/docs/requirements.txt new/django-tables2-2.7.0/docs/requirements.txt --- old/django-tables2-2.6.0/docs/requirements.txt 2023-06-27 11:40:34.000000000 +0200 +++ new/django-tables2-2.7.0/docs/requirements.txt 2023-12-05 08:54:23.000000000 +0100 @@ -1,7 +1,7 @@ -r ../requirements/common.pip -Sphinx==6.1.3 -sphinx_rtd_theme==1.2.0 +Sphinx==7.2.6 +sphinx_rtd_theme==1.3.0 django sphinxcontrib-spelling==8.0.0 pyenchant==3.2.2 -myst-parser==0.19.1 +myst-parser==2.0.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-tables2-2.6.0/example/urls.py new/django-tables2-2.7.0/example/urls.py --- old/django-tables2-2.6.0/example/urls.py 2023-06-27 11:40:34.000000000 +0200 +++ new/django-tables2-2.7.0/example/urls.py 2023-12-05 08:54:23.000000000 +0100 @@ -1,20 +1,19 @@ -from django.conf import settings -from django.contrib import admin -from django.urls import include, path -from django.views import static - from app.views import ( ClassBased, FilteredPersonListView, MultipleTables, - template_example, checkbox, country_detail, index, multiple, person_detail, + template_example, tutorial, ) +from django.conf import settings +from django.contrib import admin +from django.urls import include, path +from django.views import static urlpatterns = [ path("", index), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-tables2-2.6.0/requirements/common.pip new/django-tables2-2.7.0/requirements/common.pip --- old/django-tables2-2.6.0/requirements/common.pip 2023-06-27 11:40:34.000000000 +0200 +++ new/django-tables2-2.7.0/requirements/common.pip 2023-12-05 08:54:23.000000000 +0100 @@ -1,7 +1,7 @@ # xml parsing -lxml==4.9.2 -pytz==2022.7 -tablib[xls,yaml]==3.3.0 -openpyxl==3.0.10 +lxml==4.9.3 +pytz==2023.3.post1 +tablib[xls,yaml]==3.5.0 +openpyxl==3.1.2 psycopg2-binary==2.9.5 -django-filter==22.1 +django-filter==23.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-tables2-2.6.0/requirements/django-dev.pip new/django-tables2-2.7.0/requirements/django-dev.pip --- old/django-tables2-2.6.0/requirements/django-dev.pip 2023-06-27 11:40:34.000000000 +0200 +++ new/django-tables2-2.7.0/requirements/django-dev.pip 2023-12-05 08:54:23.000000000 +0100 @@ -1,2 +1,2 @@ -r common.pip -Django==3.2.6 +Django==4.2.6 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-tables2-2.6.0/setup.py new/django-tables2-2.7.0/setup.py --- old/django-tables2-2.6.0/setup.py 2023-06-27 11:40:34.000000000 +0200 +++ new/django-tables2-2.7.0/setup.py 2023-12-05 08:54:23.000000000 +0100 @@ -28,6 +28,7 @@ "Framework :: Django :: 3.2", # Until April 2024 "Framework :: Django :: 4.1", "Framework :: Django :: 4.2", + "Framework :: Django :: 5.0", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", @@ -38,6 +39,7 @@ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries", ], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-tables2-2.6.0/tests/columns/test_timecolumn.py new/django-tables2-2.7.0/tests/columns/test_timecolumn.py --- old/django-tables2-2.6.0/tests/columns/test_timecolumn.py 2023-06-27 11:40:34.000000000 +0200 +++ new/django-tables2-2.7.0/tests/columns/test_timecolumn.py 2023-12-05 08:54:23.000000000 +0100 @@ -34,7 +34,7 @@ class Meta: model = TimeModel - assert type(Table.base_columns["field"]) == tables.TimeColumn + assert type(Table.base_columns["field"]) is tables.TimeColumn def test_value_returns_a_raw_value_without_html(self): class Table(tables.Table): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-tables2-2.6.0/tests/columns/test_urlcolumn.py new/django-tables2-2.7.0/tests/columns/test_urlcolumn.py --- old/django-tables2-2.6.0/tests/columns/test_urlcolumn.py 2023-06-27 11:40:34.000000000 +0200 +++ new/django-tables2-2.7.0/tests/columns/test_urlcolumn.py 2023-12-05 08:54:23.000000000 +0100 @@ -35,7 +35,7 @@ class Meta: model = URLModel - assert type(Table.base_columns["field"]) == tables.URLColumn + assert type(Table.base_columns["field"]) is tables.URLColumn def test_text_can_be_overridden(self): class Table(tables.Table): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-tables2-2.6.0/tests/test_config.py new/django-tables2-2.7.0/tests/test_config.py --- old/django-tables2-2.6.0/tests/test_config.py 2023-06-27 11:40:34.000000000 +0200 +++ new/django-tables2-2.7.0/tests/test_config.py 2023-12-05 08:54:23.000000000 +0100 @@ -1,4 +1,5 @@ from unittest.mock import MagicMock, Mock + from django.core.paginator import EmptyPage, PageNotAnInteger from django.test import SimpleTestCase, TestCase diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-tables2-2.6.0/tests/test_models.py new/django-tables2-2.7.0/tests/test_models.py --- old/django-tables2-2.6.0/tests/test_models.py 2023-06-27 11:40:34.000000000 +0200 +++ new/django-tables2-2.7.0/tests/test_models.py 2023-12-05 08:54:23.000000000 +0100 @@ -1,4 +1,5 @@ from collections import defaultdict +from unittest import mock from django.contrib.contenttypes.models import ContentType from django.db import models @@ -6,7 +7,6 @@ from django.template import Context, Template from django.test import TestCase from django.utils.translation import override as translation_override -from unittest import mock import django_tables2 as tables diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/django-tables2-2.6.0/tests/test_views.py new/django-tables2-2.7.0/tests/test_views.py --- old/django-tables2-2.6.0/tests/test_views.py 2023-06-27 11:40:34.000000000 +0200 +++ new/django-tables2-2.7.0/tests/test_views.py 2023-12-05 08:54:23.000000000 +0100 @@ -1,5 +1,6 @@ from math import ceil from typing import Optional + import django_filters as filters from django.core.exceptions import ImproperlyConfigured from django.test import TestCase