From 34a7d65342b187640cae0c1eec5477e8e178c0d53235db96564d322d435c2980 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Fri, 8 Nov 2024 15:42:25 +0000 Subject: [PATCH] Accepting request 1222678 from home:glaubitz:branches:devel:languages:python - Update to 2.3.1 * Update pre-commit config * github/workflows/main: use pre-commit/action * Always set encoding when reading setup.cfg - from version 2.3.0 * readme: add note about customizing args in pre-commit * Add Python 3.12 to CI * Update pre-commit config * Add support for passing the .toml config in the arguments * Add support of ignore comment on the top of the file - Drop support-python312.patch, merged upstream OBS-URL: https://build.opensuse.org/request/show/1222678 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autoflake?expand=0&rev=29 --- autoflake-2.2.1.tar.gz | 3 --- autoflake-2.3.1.tar.gz | 3 +++ python-autoflake.changes | 15 +++++++++++++++ python-autoflake.spec | 4 +--- support-python312.patch | 20 -------------------- 5 files changed, 19 insertions(+), 26 deletions(-) delete mode 100644 autoflake-2.2.1.tar.gz create mode 100644 autoflake-2.3.1.tar.gz delete mode 100644 support-python312.patch diff --git a/autoflake-2.2.1.tar.gz b/autoflake-2.2.1.tar.gz deleted file mode 100644 index 92a6cae..0000000 --- a/autoflake-2.2.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:62b7b6449a692c3c9b0c916919bbc21648da7281e8506bcf8d3f8280e431ebc1 -size 27377 diff --git a/autoflake-2.3.1.tar.gz b/autoflake-2.3.1.tar.gz new file mode 100644 index 0000000..25937a6 --- /dev/null +++ b/autoflake-2.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c98b75dc5b0a86459c4f01a1d32ac7eb4338ec4317a4469515ff1e687ecd909e +size 27642 diff --git a/python-autoflake.changes b/python-autoflake.changes index e5f7a87..0f9ef82 100644 --- a/python-autoflake.changes +++ b/python-autoflake.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Fri Nov 8 08:48:43 UTC 2024 - John Paul Adrian Glaubitz + +- Update to 2.3.1 + * Update pre-commit config + * github/workflows/main: use pre-commit/action + * Always set encoding when reading setup.cfg +- from version 2.3.0 + * readme: add note about customizing args in pre-commit + * Add Python 3.12 to CI + * Update pre-commit config + * Add support for passing the .toml config in the arguments + * Add support of ignore comment on the top of the file +- Drop support-python312.patch, merged upstream + ------------------------------------------------------------------- Wed Aug 14 14:48:53 UTC 2024 - Dirk Müller diff --git a/python-autoflake.spec b/python-autoflake.spec index e3b0c7e..0817e2e 100644 --- a/python-autoflake.spec +++ b/python-autoflake.spec @@ -18,14 +18,12 @@ %{?sle15_python_module_pythons} Name: python-autoflake -Version: 2.2.1 +Version: 2.3.1 Release: 0 Summary: Program to removes unused Python imports and variables License: MIT URL: https://github.com/myint/autoflake Source: https://files.pythonhosted.org/packages/source/a/autoflake/autoflake-%{version}.tar.gz -# PATCH-FIX-UPSTREAM support-python312.patch gh#PyCQA/autoflake#280 -Patch1: support-python312.patch Requires: python-tomli BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module hatchling} diff --git a/support-python312.patch b/support-python312.patch deleted file mode 100644 index d6f440a..0000000 --- a/support-python312.patch +++ /dev/null @@ -1,20 +0,0 @@ -Index: autoflake-2.2.1/test_autoflake.py -=================================================================== ---- autoflake-2.2.1.orig/test_autoflake.py -+++ autoflake-2.2.1/test_autoflake.py -@@ -928,6 +928,7 @@ StrictVersion('1.0.0') - from distutils.version import LooseVersion, StrictVersion - StrictVersion('1.0.0') - """, -+ remove_all_unused_imports=True, - ), - ) - -@@ -941,6 +942,7 @@ version('1.0.0') - from distutils.version import LooseVersion, StrictVersion as version - version('1.0.0') - """, -+ remove_all_unused_imports=True, - ), - ) -