From 818dd45bdb0b0f60ab423d75c8d8113e1d287188cb1f3e67c43bd6aa9f4235f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 16 May 2020 09:20:27 +0000 Subject: [PATCH] Accepting request 805923 from home:bnavigator:branches:devel:languages:python - Update to v20.5.0 * support flake8 3.8.0 * introduce Y091 (function body must not contain "raise") * introduce Y015 (attribute must not have a default value other than "...") * introduce Y092 (top-level attribute must not have a default value) OBS-URL: https://build.opensuse.org/request/show/805923 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-pyi?expand=0&rev=9 --- flake8-pyi-19.3.0.tar.gz | 3 --- flake8-pyi-20.5.0.tar.gz | 3 +++ python-flake8-pyi.changes | 9 +++++++++ python-flake8-pyi.spec | 16 +++++++++------- 4 files changed, 21 insertions(+), 10 deletions(-) delete mode 100644 flake8-pyi-19.3.0.tar.gz create mode 100644 flake8-pyi-20.5.0.tar.gz diff --git a/flake8-pyi-19.3.0.tar.gz b/flake8-pyi-19.3.0.tar.gz deleted file mode 100644 index 672975c..0000000 --- a/flake8-pyi-19.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3646134dcc5269d3fd017624961de83cc0a0404f620233885ad86faf64265a11 -size 11417 diff --git a/flake8-pyi-20.5.0.tar.gz b/flake8-pyi-20.5.0.tar.gz new file mode 100644 index 0000000..3458fe1 --- /dev/null +++ b/flake8-pyi-20.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f3db4d6feaec5343741feb07c75ab4f00be742f71ec2cad82d89a33b9326f8fe +size 13897 diff --git a/python-flake8-pyi.changes b/python-flake8-pyi.changes index 31bcb90..100f6dc 100644 --- a/python-flake8-pyi.changes +++ b/python-flake8-pyi.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Fri May 15 21:22:02 UTC 2020 - Benjamin Greiner + +- Update to v20.5.0 + * support flake8 3.8.0 + * introduce Y091 (function body must not contain "raise") + * introduce Y015 (attribute must not have a default value other than "...") + * introduce Y092 (top-level attribute must not have a default value) + ------------------------------------------------------------------- Thu Mar 7 16:34:17 UTC 2019 - John Vandenberg diff --git a/python-flake8-pyi.spec b/python-flake8-pyi.spec index 9dd5f19..bb3afd2 100644 --- a/python-flake8-pyi.spec +++ b/python-flake8-pyi.spec @@ -1,7 +1,7 @@ # # spec file for package python-flake8-pyi # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,12 +19,12 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-flake8-pyi -Version: 19.3.0 +Version: 20.5.0 Release: 0 Summary: A plugin for flake8 to enable linting .pyi files License: MIT Group: Development/Languages/Python -Url: https://github.com/ambv/flake8-pyi +URL: https://github.com/ambv/flake8-pyi Source: https://files.pythonhosted.org/packages/source/f/flake8-pyi/flake8-pyi-%{version}.tar.gz Source1: https://raw.githubusercontent.com/ambv/flake8-pyi/master/LICENSE BuildRequires: %{python_module base >= 3.6.0} @@ -50,7 +50,7 @@ BuildArch: noarch %description A plugin for Flake8 that provides specializations for type hinting stub -files , especially interesting for linting typeshed. +files. Especially interesting for linting typeshed. %prep %setup -q -n flake8-pyi-%{version} @@ -62,14 +62,16 @@ cp %{SOURCE1} . %install %python_install -%fdupes %{buildroot}%{python3_sitelib} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check -PYTHONPATH=%{buildroot}%{python3_sitelib} py.test3 -v tests +%pytest -v tests %files %{python_files} %license LICENSE %doc README.rst -%{python3_sitelib}/* +%{python_sitelib}/pyi.py* +%{pycache_only %{python_sitelib}/__pycache__/pyi.*.py*} +%{python_sitelib}/flake8_pyi-%{version}-*.egg-info %changelog