1
0

Compare commits

4 Commits

Author SHA256 Message Date
c8f1ae0180 Accepting request 1286133 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1286133
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-autoflake?expand=0&rev=15
2025-06-17 16:21:44 +00:00
50783fe7b9 - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autoflake?expand=0&rev=31
2025-06-16 14:24:08 +00:00
d27647031e 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
2024-11-09 19:58:03 +00:00
73f47cc7cc - 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/package/show/devel:languages:python/python-autoflake?expand=0&rev=29
2024-11-08 15:42:25 +00:00
5 changed files with 31 additions and 35 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,23 @@
-------------------------------------------------------------------
Mon Jun 16 14:23:53 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
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> Wed Aug 14 14:48:53 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-autoflake # spec file for package python-autoflake
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,27 +16,26 @@
# #
%bcond_without libalternatives
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-autoflake Name: python-autoflake
Version: 2.2.1 Version: 2.3.1
Release: 0 Release: 0
Summary: Program to removes unused Python imports and variables Summary: Program to removes unused Python imports and variables
License: MIT License: MIT
URL: https://github.com/myint/autoflake URL: https://github.com/myint/autoflake
Source: https://files.pythonhosted.org/packages/source/a/autoflake/autoflake-%{version}.tar.gz 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 base >= 3.7}
BuildRequires: %{python_module hatchling} BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module pyflakes >= 3.0.0} BuildRequires: %{python_module pyflakes >= 3.0.0}
BuildRequires: %{python_module wheel} BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: alts
Requires: python-pyflakes >= 3.0.0 Requires: python-pyflakes >= 3.0.0
Requires(post): update-alternatives Requires: python-tomli
Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -69,11 +68,8 @@ chmod -x autoflake.py
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
%pyunittest -v test_autoflake %pyunittest -v test_autoflake
%post %pre
%python_install_alternative autoflake %python_libalternatives_reset_alternative autoflake
%postun
%python_uninstall_alternative autoflake
%files %{python_files} %files %{python_files}
%doc AUTHORS.rst README.md %doc AUTHORS.rst README.md

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