diff --git a/autoflake-1.5.3.tar.gz b/autoflake-1.5.3.tar.gz deleted file mode 100644 index e494c08..0000000 --- a/autoflake-1.5.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:44f7d7eb2c1c49505b513c0e93a5dfd3f7b4218283f50c5ca0af4df6b975d470 -size 25817 diff --git a/autoflake-2.2.1.tar.gz b/autoflake-2.2.1.tar.gz new file mode 100644 index 0000000..92a6cae --- /dev/null +++ b/autoflake-2.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:62b7b6449a692c3c9b0c916919bbc21648da7281e8506bcf8d3f8280e431ebc1 +size 27377 diff --git a/python-autoflake.changes b/python-autoflake.changes index 1c0610b..cc97305 100644 --- a/python-autoflake.changes +++ b/python-autoflake.changes @@ -1,3 +1,31 @@ +------------------------------------------------------------------- +Thu Dec 14 09:15:04 UTC 2023 - Petr Gajdos + +- 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 @@ -6,7 +34,7 @@ Mon Jul 31 18:49:08 UTC 2023 - Matej Cepl ------------------------------------------------------------------- Mon Sep 12 08:00:46 UTC 2022 - Dirk Müller -- 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 @@ -19,7 +47,7 @@ Fri Sep 9 16:07:50 UTC 2022 - Yogalakshmi Arunachalam * 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 - 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 diff --git a/python-autoflake.spec b/python-autoflake.spec index 1e03824..3707f95 100644 --- a/python-autoflake.spec +++ b/python-autoflake.spec @@ -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}