forked from pool/python-autoflake
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
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:61a353012cff6ab94ca062823d1fb2f692c4acda51c76ff83a8d77915fba51ea
|
||||
size 22506
|
||||
3
autoflake-1.5.1.tar.gz
Normal file
3
autoflake-1.5.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8272efbecf7c6d5e2b00fa3b2998478a3ad92d7c914a49a527d733dae7f800c5
|
||||
size 25415
|
||||
@@ -1,3 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 28 10:41:19 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- 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 <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user