1
0

Compare commits

32 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
3f52a8b4fd Accepting request 1193890 from devel:languages:python
- switch to modern python on sle15

OBS-URL: https://build.opensuse.org/request/show/1193890
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-autoflake?expand=0&rev=13
2024-08-16 10:23:06 +00:00
1de9ce60c1 Accepting request 1144710 from devel:languages:python
- Add upstream support-python312.patch gh#PyCQA/autoflake#280

OBS-URL: https://build.opensuse.org/request/show/1144710
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-autoflake?expand=0&rev=12
2024-02-07 17:49:02 +00:00
92b5e4332e - Add upstream support-python312.patch gh#PyCQA/autoflake#280
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autoflake?expand=0&rev=25
2024-02-06 18:29:11 +00:00
878a9ea8f5 Accepting request 1133401 from devel:languages:python
- update to 2.2.1:
  * Add type annotations and validate with pyright
  * Remove test_fuzz_pypi
  * Revert "Support .toml configuration format with --config flag
  * Support .toml configuration format with --config flag
  * Fix a typo in a link to pre-commit
  * Update standard_paths so it only checks existing directories
  * Upgrade minimum version of pyflakes
  * Add upper limit to pyflake's version <3.0 to support handling
    of python 2.x
  * fix: Ignore pass multiple lines after docstring with flag
  * Fixed multiprocessing issue on win64 with more than 60 cores
  * Fix default value for `--imports`
  * Use regular dictionary instead of defaultdict
  * Properly consider options from config file and flags
  * Update merge_configuration_file to prefer values from flags
  * Unified output to stdout when using --check
  * add config-file option
  * Fix Namespace check
  * Add --check-diff flag which combines check and diff
  * Use black for formatting code
  * Migrate to tomli
  * PEP 621: Migrate to pyproject.toml
  * Add option to keep pass statements

- reenable build for python38, issue got fixed in current release
- Update to v1.5.2
- Switch from setup.py test to pytest

OBS-URL: https://build.opensuse.org/request/show/1133401
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-autoflake?expand=0&rev=11
2023-12-15 20:50:01 +00:00
b667837d52 of python 2.x
- reenable build for python38, issue got fixed in current release
- Update to v1.5.2
- Switch from setup.py test to pytest

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autoflake?expand=0&rev=23
2023-12-15 11:56:04 +00:00
a56fb1dc76 Accepting request 1133135 from home:pgajdos:python
pmmu version update

OBS-URL: https://build.opensuse.org/request/show/1133135
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autoflake?expand=0&rev=22
2023-12-15 11:52:44 +00:00
fb984b46da Accepting request 1101580 from devel:languages:python
- Remove upstreamed patch rm_assert_failing_310.patch.

OBS-URL: https://build.opensuse.org/request/show/1101580
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-autoflake?expand=0&rev=10
2023-08-01 12:16:14 +00:00
97f79eb28c - Remove upstreamed patch rm_assert_failing_310.patch.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autoflake?expand=0&rev=20
2023-07-31 18:49:57 +00:00
59b909a482 Accepting request 1002737 from devel:languages:python
- reenable build for python38, issue got fixed in current release 

- Update to v1.5.3
  * test_autoflake: use os.linesep in assertion
  * Make sure messages use os.linesep
  * test_autoflake: add a test for #129
  * autoflake: propagate the exit status instead of calling sys.exit
  * Renamed the head branch
  * Remove Makefile and reference to travis.yml
- Update to v1.5.2 
  * Remove usage of deprecated distutils module
  * Also add support for removing RHS of unused variables.
  * Use the new sysconfig module instead of distutils
  * added option to remove RHS also when removing unused variables (#92)

OBS-URL: https://build.opensuse.org/request/show/1002737
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-autoflake?expand=0&rev=9
2022-09-12 17:08:23 +00:00
18f03c15ad - reenable build for python38, issue got fixed in current release
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autoflake?expand=0&rev=18
2022-09-12 08:03:05 +00:00
b06dd5f6e0 Accepting request 1002346 from home:yarunachalam:branches:devel:languages:python
- Update to v1.5.3
  * test_autoflake: use os.linesep in assertion
  * Make sure messages use os.linesep
  * test_autoflake: add a test for #129
  * autoflake: propagate the exit status instead of calling sys.exit
  * Renamed the head branch
  * Remove Makefile and reference to travis.yml
- Update to v1.5.2 
  * Remove usage of deprecated distutils module
  * Also add support for removing RHS of unused variables.
  * Use the new sysconfig module instead of distutils
  * added option to remove RHS also when removing unused variables (#92)

OBS-URL: https://build.opensuse.org/request/show/1002346
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autoflake?expand=0&rev=17
2022-09-12 08:00:35 +00:00
4e71499261 Accepting request 999934 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/999934
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-autoflake?expand=0&rev=8
2022-08-29 13:16:32 +00:00
b9a9864c59 Accepting request 999918 from home:bnavigator:branches:devel:languages:python
- Update to v1.5.1
  * support for reading configuration from setup.cfg and
    pyproject.toml
  * new flag `--quiet`
  * drop support for old versions of Python (<3.7)
  * support for reading contents from stdin (prints the output to
    stdout, ideal for integration with editors)
  * support for parallel execution with `--jobs`
- Skip building Python 3.8: gh#PyCQA/autoflake#100

OBS-URL: https://build.opensuse.org/request/show/999918
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autoflake?expand=0&rev=15
2022-08-29 11:43:29 +00:00
6054592c7b Accepting request 957100 from devel:languages:python
- Skip failing test for Python 3.10 (gh#PyCQA/autoflake#104)

OBS-URL: https://build.opensuse.org/request/show/957100
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-autoflake?expand=0&rev=7
2022-02-23 15:26:18 +00:00
1fe902dad7 - Skip failing test for Python 3.10 (gh#PyCQA/autoflake#104)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autoflake?expand=0&rev=14
2022-02-23 14:04:26 +00:00
3181a1a8ca Accepting request 832643 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/832643
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-autoflake?expand=0&rev=6
2020-09-07 19:35:05 +00:00
0b6b62d64b - Update to 1.4:
* No upstream changelog
- Switch from setup.py test to pytest

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autoflake?expand=0&rev=12
2020-08-31 04:17:40 +00:00
597327bf12 Accepting request 730690 from devel:languages:python
- Update to 1.3.1:
  * no upstream changelog

OBS-URL: https://build.opensuse.org/request/show/730690
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-autoflake?expand=0&rev=5
2019-09-16 08:50:29 +00:00
Tomáš Chvátal
df468056af - Update to 1.3.1:
* no upstream changelog

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autoflake?expand=0&rev=10
2019-09-13 11:32:45 +00:00
94096cb6ac Accepting request 703507 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/703507
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-autoflake?expand=0&rev=4
2019-05-16 20:10:26 +00:00
Tomáš Chvátal
5c54273205 Accepting request 703502 from home:mbelur:branches:devel:languages:python
- Update to v1.3
  + No changes were provided

OBS-URL: https://build.opensuse.org/request/show/703502
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autoflake?expand=0&rev=8
2019-05-16 18:07:34 +00:00
875b2e9b36 Accepting request 673161 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/673161
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-autoflake?expand=0&rev=3
2019-02-11 20:28:04 +00:00
Tomáš Chvátal
236985160b Accepting request 673157 from home:jayvdb:coala:python3-bears
- Update to v1.2
  + Have `standard_paths` look in both platform-specific and
    platform-independent directories
    (replaces fix_standard_paths.patch)
  + Add LICENSE
  + Drop Python 3.3
- Remove unnecessary build dependency %pythons
- Remove unused build dependency 'coverage'

OBS-URL: https://build.opensuse.org/request/show/673157
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autoflake?expand=0&rev=6
2019-02-10 16:39:31 +00:00
e112483d45 Accepting request 655389 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/655389
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-autoflake?expand=0&rev=2
2018-12-12 16:26:09 +00:00
Todd R
fbfaf3b79e Accepting request 654135 from home:jengelh:branches:devel:languages:python
- Use noun phrase in summary.

OBS-URL: https://build.opensuse.org/request/show/654135
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autoflake?expand=0&rev=4
2018-12-05 19:20:42 +00:00
c58cfbd89b Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autoflake?expand=0&rev=3
2018-12-04 13:14:51 +00:00
e4d1385f8a Accepting request 605864 from devel:languages:python
Automatically make pyflakes-suggested changes

OBS-URL: https://build.opensuse.org/request/show/605864
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-autoflake?expand=0&rev=1
2018-05-15 08:11:19 +00:00
Todd R
72de9c4e07 Accepting request 605862 from devel:languages:python:misc
Automatically make pyflakes-suggested changes

OBS-URL: https://build.opensuse.org/request/show/605862
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autoflake?expand=0&rev=1
2018-05-09 18:36:47 +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>

View File

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

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