From a56fb1dc76e0daf8d72cd59952cf4d8b26759d0e8d1a79b23a90eaf78370d844 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 15 Dec 2023 11:52:44 +0000 Subject: [PATCH] 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 --- autoflake-1.5.3.tar.gz | 3 - autoflake-2.2.1.tar.gz | 3 + python-autoflake.changes | 202 +++++++++++++++++++++++++++++++++++++++ python-autoflake.spec | 10 +- 4 files changed, 211 insertions(+), 7 deletions(-) delete mode 100644 autoflake-1.5.3.tar.gz create mode 100644 autoflake-2.2.1.tar.gz 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..1c07a5e 100644 --- a/python-autoflake.changes +++ b/python-autoflake.changes @@ -1,3 +1,205 @@ +------------------------------------------------------------------- +Thu Dec 14 09:15:04 UTC 2023 - Petr Gajdos + +- update to 2.2.1: + * ## What's Changed + * pre-commit autoupdate and annotations fix + * Remove py.typed + * Bump v2.2.1 + + + * **Full Changelog**: + https://github.com/PyCQA/autoflake/compare/v2.2.0...v2.2.1 + update to 2.2.0: + * ## What's Changed + * [pre-commit.ci] pre-commit autoupdate + * [pre-commit.ci] pre-commit autoupdate + * [pre-commit.ci] pre-commit autoupdate + * [pre-commit.ci] pre-commit autoupdate + * Add type annotations and validate with pyright + * Remove test_fuzz_pypi + * Bump v2.2.0 + + + * **Full Changelog**: + https://github.com/PyCQA/autoflake/compare/v2.1.1...v2.2.0 + update to 2.1.1: + * ## What's Changed + * Revert "Support .toml configuration format with --config flag + (#249)" + * Bump v2.1.1 + + + * **Full Changelog**: + https://github.com/PyCQA/autoflake/compare/v2.1.0...v2.1.1 + update to 2.1.0: + * ## What's Changed + * Bump v2.0.2 + * Support .toml configuration format with --config flag + * Bump v2.1.0 + + * ## New Contributors + * @bricker made their first contribution in + https://github.com/PyCQA/autoflake/pull/249 + + * **Full Changelog**: + https://github.com/PyCQA/autoflake/compare/v2.0.2...v2.1.0 + update to 2.0.2: + * ## What's Changed + * Don't sort imports + + + * **Full Changelog**: + https://github.com/PyCQA/autoflake/compare/v2.0.1...v2.0.2 + update to 2.0.1: + * ## What's Changed + * pre-commit autoupdate + * Fix a typo in a link to pre-commit + * Update standard_paths so it only checks existing directories + * Bump to 2.0.1 + + * ## New Contributors + * @sadikkuzu made their first contribution in + https://github.com/PyCQA/autoflake/pull/198 + * @solzard made their first contribution in + https://github.com/PyCQA/autoflake/pull/200 + + * **Full Changelog**: + https://github.com/PyCQA/autoflake/compare/v2.0.0...v2.0.1 + update to 2.0.0: + * ## What's Changed + * Upgrade minimum version of pyflakes + * Bump 2.0.0 + + * **Full Changelog**: + https://github.com/PyCQA/autoflake/compare/v1.7.8...v2.0.0 + update to 1.7.8: + * ## What's Changed + * [pre-commit.ci] pre-commit autoupdate + * Enable Python 3.11 in CI + * github/worfklows/main: 3.11 should be available on macOS now + * [pre-commit.ci] pre-commit autoupdate + * [pre-commit.ci] pre-commit autoupdate + * Add upper limit to pyflake's version <3.0 to support handling + of python 2.x ``# type: `` comments + * Bump 1.7.8 + + * ## New Contributors + * @psasselum made their first contribution in + https://github.com/PyCQA/autoflake/pull/186 + + * **Full Changelog**: + https://github.com/PyCQA/autoflake/compare/v1.7.7...v1.7.8 + update to 1.7.7: + * ## What's Changed + * fix: Ignore pass multiple lines after docstring with flag + * Bump to 1.7.7 + + * ## New Contributors + * @DenverCoder1 made their first contribution in + https://github.com/PyCQA/autoflake/pull/177 + + * **Full Changelog**: + https://github.com/PyCQA/autoflake/compare/v1.7.6...v1.7.7 + update to 1.7.6: + * ## What's Changed + * Bump actions/cache from 3.0.10 to 3.0.11 + + + * **Full Changelog**: + https://github.com/PyCQA/autoflake/compare/v1.7.5...v1.7.6 + update to 1.7.5: + * ## What's Changed + * Fixed multiprocessing issue on win64 with more than 60 cores + * Bump to 1.7.5 + + * ## New Contributors + * @inuik made their first contribution in + https://github.com/PyCQA/autoflake/pull/172 + + * **Full Changelog**: + https://github.com/PyCQA/autoflake/compare/v1.7.4...v1.7.5 + update to 1.7.4: + * ## What's Changed + * Bump actions/setup-python from 4.2.0 to 4.3.0 + * Fix default value for `--imports` + * Bump to 1.7.4 + + + * **Full Changelog**: + https://github.com/PyCQA/autoflake/compare/v1.7.3...v1.7.4 + update to 1.7.3: + * ## What's Changed + * [pre-commit.ci] pre-commit autoupdate + * Use regular dictionary instead of defaultdict + * Bump v1.7.3 + + + * **Full Changelog**: + https://github.com/PyCQA/autoflake/compare/v1.7.2...v1.7.3 + update to 1.7.2: + * ## What's Changed + * Properly consider options from config file and flags + * Bump to 1.7.2 + + + * **Full Changelog**: + https://github.com/PyCQA/autoflake/compare/v1.7.1...v1.7.2 + update to 1.7.1: + * ## What's Changed + * Update merge_configuration_file to prefer values from flags + * Bump v1.7.1 + + + * **Full Changelog**: + https://github.com/PyCQA/autoflake/compare/v1.7.0...v1.7.1 + update to 1.7.0: + * ## What's Changed + * Unified output to stdout when using --check + * Bump actions/cache from 3.0.8 to 3.0.9 + * add config-file option + * Fix Namespace check + * Bump actions/cache from 3.0.9 to 3.0.10 + * Bump actions/checkout from 3.0.2 to 3.1.0 + * Add --check-diff flag which combines check and diff + * Bump 1.7.0 + + * ## New Contributors + * @ericstengard made their first contribution in + https://github.com/PyCQA/autoflake/pull/148 + * @GrozniyToaster made their first contribution in + https://github.com/PyCQA/autoflake/pull/150 + + * **Full Changelog**: + https://github.com/PyCQA/autoflake/compare/v1.6.1...v1.7.0 + update to 1.6.1: + * ## What's Changed + * Add ignore-pass-after-doctstring and ignore-pass-statement to + config + * Bump 1.6.1 + + + * **Full Changelog**: + https://github.com/PyCQA/autoflake/compare/v1.6.0...v1.6.1 + update to 1.6.0: + * ## What's Changed + * Use black for formatting code + * Migrate to tomli + * pre-commit: Fix typos using codespell + * PEP 621: Migrate to pyproject.toml + * github/workflows/upload-to-pypi: use build + * Add option to keep pass statements + * Bump to 1.6.0 + + * ## New Contributors + * @cclauss made their first contribution in + https://github.com/PyCQA/autoflake/pull/141 + * @alvarotroya made their first contribution in + https://github.com/PyCQA/autoflake/pull/143 + + * **Full Changelog**: + https://github.com/PyCQA/autoflake/compare/v1.5.3...v1.6.0 + ------------------------------------------------------------------- Mon Jul 31 18:49:08 UTC 2023 - Matej Cepl diff --git a/python-autoflake.spec b/python-autoflake.spec index 1e03824..63ac435 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 wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-pyflakes >= 1.1.0 -Requires: python-toml >= 0.10.2 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}