From b9a9864c59ebda4800dceb170ebadae2542edbd1d95f21df67633c0684b51511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 29 Aug 2022 11:43:29 +0000 Subject: [PATCH] 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 --- autoflake-1.4.tar.gz | 3 --- autoflake-1.5.1.tar.gz | 3 +++ python-autoflake.changes | 13 +++++++++++++ python-autoflake.spec | 30 +++++++++++++++--------------- 4 files changed, 31 insertions(+), 18 deletions(-) delete mode 100644 autoflake-1.4.tar.gz create mode 100644 autoflake-1.5.1.tar.gz diff --git a/autoflake-1.4.tar.gz b/autoflake-1.4.tar.gz deleted file mode 100644 index c4e82dd..0000000 --- a/autoflake-1.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:61a353012cff6ab94ca062823d1fb2f692c4acda51c76ff83a8d77915fba51ea -size 22506 diff --git a/autoflake-1.5.1.tar.gz b/autoflake-1.5.1.tar.gz new file mode 100644 index 0000000..2557062 --- /dev/null +++ b/autoflake-1.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8272efbecf7c6d5e2b00fa3b2998478a3ad92d7c914a49a527d733dae7f800c5 +size 25415 diff --git a/python-autoflake.changes b/python-autoflake.changes index 6809e2e..a680111 100644 --- a/python-autoflake.changes +++ b/python-autoflake.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Sun Aug 28 10:41:19 UTC 2022 - Ben Greiner + +- 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 + ------------------------------------------------------------------- Wed Feb 23 14:04:15 UTC 2022 - Matej Cepl diff --git a/python-autoflake.spec b/python-autoflake.spec index 79e381f..f900750 100644 --- a/python-autoflake.spec +++ b/python-autoflake.spec @@ -16,23 +16,26 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +# gh#PyCQA/autoflake#100 +%define skip_python38 1 Name: python-autoflake -Version: 1.4 +Version: 1.5.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 -BuildRequires: %{python_module pytest} +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module pyflakes >= 1.1.0} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module toml >= 0.10.2} 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 -BuildRequires: %{python_module pyflakes >= 1.1.0} %python_subpackages %description @@ -48,24 +51,19 @@ autoflake also removes useless pass statements. %prep %setup -q -n autoflake-%{version} +sed -i '1{/env python/d}' autoflake.py %build %python_build %install %python_install - -%{python_expand chmod a-x %{buildroot}%{$python_sitelib}/autoflake.py -%fdupes %{buildroot}%{$python_sitelib} -} - %python_clone -a %{buildroot}%{_bindir}/autoflake +%fdupes %{buildroot}%{$python_sitelib} %check -export $LANG=en_US.UTF-8 -# gh#PyCQA/autoflake#104 -python310_skiptests='not test_is_literal_or_name' -%pytest -k "${$python_skiptests}" +export LANG=en_US.UTF-8 +%pyunittest -v test_autoflake %post %python_install_alternative autoflake @@ -74,9 +72,11 @@ python310_skiptests='not test_is_literal_or_name' %python_uninstall_alternative autoflake %files %{python_files} -%doc AUTHORS.rst README.rst +%doc AUTHORS.rst README.md %license LICENSE %python_alternative %{_bindir}/autoflake -%{python_sitelib}/* +%{python_sitelib}/autoflake.py* +%pycache_only %{python_sitelib}/__pycache__/autoflake*.pyc +%{python_sitelib}/autoflake-%{version}*-info %changelog