From d5accdd493ea1ead31f7da77fa208965356fdb1fcea6a5d9606f58e1e054f2a4 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 12 Feb 2026 05:05:13 +0000 Subject: [PATCH] - Update to 2.4.5: * Update dependency pathspec to v1 * Update signature for codemodchoice.get_metavar * Update dependency libcst to v1.8.6 * Update dependency click to <8.4 * Add support for python 3.14 * Drop support for python 3.9 * Use spdx expression for license - Drop patch support-click-8.2.patch, no longer required. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-codemod?expand=0&rev=13 --- django_codemod-2.3.5.tar.gz | 3 --- django_codemod-2.4.5.tar.gz | 3 +++ python-django-codemod.changes | 13 +++++++++++++ python-django-codemod.spec | 15 ++++++--------- support-click-8.2.patch | 13 ------------- 5 files changed, 22 insertions(+), 25 deletions(-) delete mode 100644 django_codemod-2.3.5.tar.gz create mode 100644 django_codemod-2.4.5.tar.gz delete mode 100644 support-click-8.2.patch diff --git a/django_codemod-2.3.5.tar.gz b/django_codemod-2.3.5.tar.gz deleted file mode 100644 index 7dd1fc6..0000000 --- a/django_codemod-2.3.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:765edc7e648d14618cf8f139733ff6e99a979c0192383d6b301b1dfb68c6e852 -size 42250 diff --git a/django_codemod-2.4.5.tar.gz b/django_codemod-2.4.5.tar.gz new file mode 100644 index 0000000..c0f604e --- /dev/null +++ b/django_codemod-2.4.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:68349e20182aa018ef1120574ed70f027d6cc33b776d44da7042dfeb44aad78b +size 42232 diff --git a/python-django-codemod.changes b/python-django-codemod.changes index c8b42d1..da0eee0 100644 --- a/python-django-codemod.changes +++ b/python-django-codemod.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Thu Feb 12 05:05:01 UTC 2026 - Steve Kowalik + +- Update to 2.4.5: + * Update dependency pathspec to v1 + * Update signature for codemodchoice.get_metavar + * Update dependency libcst to v1.8.6 + * Update dependency click to <8.4 + * Add support for python 3.14 + * Drop support for python 3.9 + * Use spdx expression for license +- Drop patch support-click-8.2.patch, no longer required. + ------------------------------------------------------------------- Tue Aug 5 06:18:12 UTC 2025 - Steve Kowalik diff --git a/python-django-codemod.spec b/python-django-codemod.spec index 4b6f772..83e1d2b 100644 --- a/python-django-codemod.spec +++ b/python-django-codemod.spec @@ -1,7 +1,7 @@ # # spec file for package python-django-codemod # -# Copyright (c) 2025 SUSE LLC and contributors +# 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 @@ -17,18 +17,16 @@ Name: python-django-codemod -Version: 2.3.5 +Version: 2.4.5 Release: 0 Summary: Collections of libCST codemodders to upgrade Django License: MIT URL: https://github.com/browniebroke/django-codemod Source: https://files.pythonhosted.org/packages/source/d/django-codemod/django_codemod-%{version}.tar.gz Source1: conftest.py -# PATCH-FIX-OPENSUSE Support click 8.2+ -Patch0: support-click-8.2.patch -BuildRequires: %{python_module base >= 3.9} +BuildRequires: %{python_module base >= 3.10} BuildRequires: %{python_module pip} -BuildRequires: %{python_module poetry} +BuildRequires: %{python_module setuptools >= 77} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-click @@ -36,7 +34,6 @@ Requires: python-libcst Requires: python-pathspec Requires: python-rich Requires: python-rich-click -Recommends: python-setuptools Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch @@ -46,7 +43,9 @@ BuildRequires: %{python_module click} BuildRequires: %{python_module libcst} BuildRequires: %{python_module parameterized} BuildRequires: %{python_module pathspec} +BuildRequires: %{python_module pytest-cov} BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module rich-click} # /SECTION %python_subpackages @@ -57,8 +56,6 @@ Collections of libCST codemodders to upgrade Django. %prep %autosetup -p1 -n django_codemod-%{version} cp %{SOURCE1} . -sed -i 's/rich = ".*"/rich = "*"/' pyproject.toml -sed -i '/addopts/d' pyproject.toml %build %pyproject_wheel diff --git a/support-click-8.2.patch b/support-click-8.2.patch deleted file mode 100644 index d239388..0000000 --- a/support-click-8.2.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: django_codemod-2.3.5/src/django_codemod/cli.py -=================================================================== ---- django_codemod-2.3.5.orig/src/django_codemod/cli.py -+++ django_codemod-2.3.5/src/django_codemod/cli.py -@@ -49,7 +49,7 @@ BY_NAME = {cls.__name__: cls for cls in - - - class CodemodChoice(click.Choice): -- def get_metavar(self, param: click.Parameter) -> str: -+ def get_metavar(self, param: click.Parameter, ctx=None) -> str: - return "(see `djcodemod list`)" - -