forked from pool/python-autoflake
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| c8f1ae0180 | |||
| 50783fe7b9 | |||
| d27647031e | |||
| 73f47cc7cc |
@@ -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
3
autoflake-2.3.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c98b75dc5b0a86459c4f01a1d32ac7eb4338ec4317a4469515ff1e687ecd909e
|
||||
size 27642
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,27 +16,26 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without libalternatives
|
||||
%{?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}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pyflakes >= 3.0.0}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: alts
|
||||
Requires: python-pyflakes >= 3.0.0
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Requires: python-tomli
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -69,11 +68,8 @@ chmod -x autoflake.py
|
||||
export LANG=en_US.UTF-8
|
||||
%pyunittest -v test_autoflake
|
||||
|
||||
%post
|
||||
%python_install_alternative autoflake
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative autoflake
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative autoflake
|
||||
|
||||
%files %{python_files}
|
||||
%doc AUTHORS.rst README.md
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user