Skip to content

Commit

Permalink
Update python-autoflake to version 2.2.1 / rev 12 via SR 1144710
Browse files Browse the repository at this point in the history
https://build.opensuse.org/request/show/1144710
by user dgarcia + anag+factory
- Add upstream support-python312.patch gh#PyCQA/autoflake#280
  • Loading branch information
dgarcia authored and bmwiedemann committed Feb 7, 2024
1 parent 03fda17 commit e5796f6
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 2 deletions.
Binary file modified packages/p/python-autoflake/.files
Binary file not shown.
8 changes: 8 additions & 0 deletions packages/p/python-autoflake/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,12 @@
- Switch from setup.py test to pytest</comment>
<requestid>1133401</requestid>
</revision>
<revision rev="12" vrev="2">
<srcmd5>d8c4c9088d1c84c33c82f9dbce679037</srcmd5>
<version>2.2.1</version>
<time>1707328142</time>
<user>anag+factory</user>
<comment>- Add upstream support-python312.patch gh#PyCQA/autoflake#280</comment>
<requestid>1144710</requestid>
</revision>
</revisionlist>
5 changes: 5 additions & 0 deletions packages/p/python-autoflake/python-autoflake.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Feb 6 18:28:40 UTC 2024 - Daniel Garcia <[email protected]>

- Add upstream support-python312.patch gh#PyCQA/autoflake#280

-------------------------------------------------------------------
Thu Dec 14 09:15:04 UTC 2023 - Petr Gajdos <[email protected]>

Expand Down
6 changes: 4 additions & 2 deletions packages/p/python-autoflake/python-autoflake.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# spec file for package python-autoflake
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
Expand All @@ -23,6 +23,8 @@ 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}
Expand All @@ -33,7 +35,7 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pyflakes >= 3.0.0
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages

Expand Down
20 changes: 20 additions & 0 deletions packages/p/python-autoflake/support-python312.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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,
),
)

0 comments on commit e5796f6

Please sign in to comment.