15
0

Accepting request 1222858 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1222858
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-autoflake?expand=0&rev=14
This commit is contained in:
2024-11-09 19:58:03 +00:00
committed by Git OBS Bridge
5 changed files with 19 additions and 26 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:62b7b6449a692c3c9b0c916919bbc21648da7281e8506bcf8d3f8280e431ebc1
size 27377

3
autoflake-2.3.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c98b75dc5b0a86459c4f01a1d32ac7eb4338ec4317a4469515ff1e687ecd909e
size 27642

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Fri Nov 8 08:48:43 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- 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 <dmueller@suse.com>

View File

@@ -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}

View File

@@ -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,
),
)