forked from pool/python-django-codemod
Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| d8a0201346 | |||
| 3285d7f086 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8d586c11eae7fb831ba318c2871da3b3503e45c81edf34a55a5100846127ceef
|
||||
size 39796
|
||||
3
django_codemod-2.3.5.tar.gz
Normal file
3
django_codemod-2.3.5.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:765edc7e648d14618cf8f139733ff6e99a979c0192383d6b301b1dfb68c6e852
|
||||
size 42250
|
||||
@@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 5 06:18:12 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 2.3.5:
|
||||
* Migrate packaging to uv
|
||||
* drop support for Python 3.8
|
||||
* add official support for Python 3.12
|
||||
* Drop support for Python 3.7
|
||||
* Officially support Python 3.11
|
||||
- Add patch support-click-8.2.patch:
|
||||
* Support Click 8.2+ changes.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 31 23:03:56 UTC 2022 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-django-codemod
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2025 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
|
||||
@@ -16,17 +16,17 @@
|
||||
#
|
||||
|
||||
|
||||
%define skip_python2 1
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-django-codemod
|
||||
Version: 1.11.0
|
||||
Version: 2.3.5
|
||||
Release: 0
|
||||
Summary: Collections of libCST codemodders to upgrade Django
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/browniebroke/django-codemod
|
||||
Source: https://files.pythonhosted.org/packages/source/d/django-codemod/django-codemod-%{version}.tar.gz
|
||||
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 pip}
|
||||
BuildRequires: %{python_module poetry}
|
||||
BuildRequires: fdupes
|
||||
@@ -34,10 +34,11 @@ BuildRequires: python-rpm-macros
|
||||
Requires: python-click
|
||||
Requires: python-libcst
|
||||
Requires: python-pathspec
|
||||
Requires: python-rich
|
||||
Requires: python-rich-click
|
||||
Recommends: python-setuptools
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module Django}
|
||||
@@ -54,7 +55,7 @@ BuildRequires: %{python_module rich-click}
|
||||
Collections of libCST codemodders to upgrade Django.
|
||||
|
||||
%prep
|
||||
%setup -q -n django-codemod-%{version}
|
||||
%autosetup -p1 -n django_codemod-%{version}
|
||||
cp %{SOURCE1} .
|
||||
sed -i 's/rich = ".*"/rich = "*"/' pyproject.toml
|
||||
sed -i '/addopts/d' pyproject.toml
|
||||
@@ -80,6 +81,7 @@ sed -i '/addopts/d' pyproject.toml
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%python_alternative %{_bindir}/djcodemod
|
||||
%{python_sitelib}/*django[_-]codemod*/
|
||||
%{python_sitelib}/django_codemod/
|
||||
%{python_sitelib}/django_codemod-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
13
support-click-8.2.patch
Normal file
13
support-click-8.2.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
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`)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user