15
0

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
This commit is contained in:
2023-12-15 20:50:01 +00:00
committed by Git OBS Bridge
4 changed files with 42 additions and 12 deletions

View File

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

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

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

View File

@@ -1,3 +1,31 @@
-------------------------------------------------------------------
Thu Dec 14 09:15:04 UTC 2023 - Petr Gajdos <pgajdos@suse.com>
- 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
-------------------------------------------------------------------
Mon Jul 31 18:49:08 UTC 2023 - Matej Cepl <mcepl@suse.com>
@@ -6,7 +34,7 @@ Mon Jul 31 18:49:08 UTC 2023 - Matej Cepl <mcepl@suse.com>
-------------------------------------------------------------------
Mon Sep 12 08:00:46 UTC 2022 - Dirk Müller <dmueller@suse.com>
- reenable build for python38, issue got fixed in current release
- reenable build for python38, issue got fixed in current release
-------------------------------------------------------------------
Fri Sep 9 16:07:50 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
@@ -19,7 +47,7 @@ Fri Sep 9 16:07:50 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
* Renamed the head branch
* Remove Makefile and reference to travis.yml
- Update to v1.5.2
- 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
@@ -48,7 +76,7 @@ Mon Aug 31 04:16:47 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 1.4:
* No upstream changelog
- Switch from setup.py test to pytest
- Switch from setup.py test to pytest
-------------------------------------------------------------------
Fri Sep 13 11:32:10 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -17,21 +17,21 @@
Name: python-autoflake
Version: 1.5.3
Version: 2.2.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
Requires: python-tomli
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pyflakes >= 1.1.0}
BuildRequires: %{python_module toml >= 0.10.2}
BuildRequires: %{python_module pyflakes >= 3.0.0}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pyflakes >= 1.1.0
Requires: python-toml >= 0.10.2
Requires: python-pyflakes >= 3.0.0
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
@@ -49,14 +49,16 @@ unused variables is also disabled by default.
autoflake also removes useless pass statements.
%prep
%setup -q -n autoflake-%{version}
%autosetup -p1 -n autoflake-%{version}
sed -i '1{/env python/d}' autoflake.py
chmod -x autoflake.py
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand rm %{buildroot}%{$python_sitelib}/{LICENSE,README.md,test*.py,__pycache__/test*.pyc}
%python_clone -a %{buildroot}%{_bindir}/autoflake
%fdupes %{buildroot}%{$python_sitelib}