From 6e3489e5fe1c1ad9cf3e0985d9151a140b3adaaf379e24dc78ff745cf4268285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 16 Apr 2020 11:08:37 +0000 Subject: [PATCH] - Update to 1.5.2: * Add python3.8 support. [sobolevn] * Add AnnAssign support. [soboelvn] * Add NamedExpr or := support. [sobolevn] * Adds kwonly and posonly args support. [sobolevn] * Add DictComp, SetComp, and GeneratorExpr support. [sobolevn] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-builtins?expand=0&rev=5 --- flake8-builtins-1.4.1.tar.gz | 3 --- flake8-builtins-1.5.2.tar.gz | 3 +++ python-flake8-builtins.changes | 10 ++++++++++ python-flake8-builtins.spec | 28 ++++++++++++---------------- 4 files changed, 25 insertions(+), 19 deletions(-) delete mode 100644 flake8-builtins-1.4.1.tar.gz create mode 100644 flake8-builtins-1.5.2.tar.gz diff --git a/flake8-builtins-1.4.1.tar.gz b/flake8-builtins-1.4.1.tar.gz deleted file mode 100644 index 37bf1c6..0000000 --- a/flake8-builtins-1.4.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cd7b1b7fec4905386a3643b59f9ca8e305768da14a49a7efb31fe9364f33cd04 -size 17873 diff --git a/flake8-builtins-1.5.2.tar.gz b/flake8-builtins-1.5.2.tar.gz new file mode 100644 index 0000000..40b2e8f --- /dev/null +++ b/flake8-builtins-1.5.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe7be13fe51bfb06bdae6096c6488e328c822c3aa080e24b91b77116a4fbb8b0 +size 16267 diff --git a/python-flake8-builtins.changes b/python-flake8-builtins.changes index 73c2ece..491c2be 100644 --- a/python-flake8-builtins.changes +++ b/python-flake8-builtins.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Thu Apr 16 10:50:24 UTC 2020 - Tomáš Chvátal + +- Update to 1.5.2: + * Add python3.8 support. [sobolevn] + * Add AnnAssign support. [soboelvn] + * Add NamedExpr or := support. [sobolevn] + * Adds kwonly and posonly args support. [sobolevn] + * Add DictComp, SetComp, and GeneratorExpr support. [sobolevn] + ------------------------------------------------------------------- Sat Aug 24 16:29:42 UTC 2019 - Jan Engelhardt diff --git a/python-flake8-builtins.spec b/python-flake8-builtins.spec index 7439954..267d9cc 100644 --- a/python-flake8-builtins.spec +++ b/python-flake8-builtins.spec @@ -1,7 +1,7 @@ # # spec file for package python-flake8-builtins # -# 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 @@ -17,30 +17,25 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-flake8-builtins -Version: 1.4.1 +Version: 1.5.2 Release: 0 Summary: Flake8 Builtins plugin License: GPL-2.0-only -Group: Development/Languages/Python -Url: https://github.com/gforcada/flake8-builtins +URL: https://github.com/gforcada/flake8-builtins Source: https://files.pythonhosted.org/packages/source/f/flake8-builtins/flake8-builtins-%{version}.tar.gz BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-flake8 +BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module flake8} -BuildRequires: %{python_module mock} +BuildRequires: %{python_module hypothesis} +BuildRequires: %{python_module hypothesmith} BuildRequires: %{python_module pytest} # /SECTION -BuildRequires: fdupes -Requires: python-flake8 -Suggests: python-coverage -Suggests: python-coveralls -Suggests: python-mock -Suggests: python-pytest -Suggests: python-pytest-cov -BuildArch: noarch - %python_subpackages %description @@ -57,10 +52,11 @@ This plugin checks for Python builtins being used as variables or parameters. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest run_tests.py +# test_builtin_works_on_many_examples - will crash in obs as it is speed related +%pytest run_tests.py -k 'not test_builtin_works_on_many_examples' %files %{python_files} -%license LICENSE LICENSE.rst +%license LICENSE %doc CHANGES.rst README.rst %{python_sitelib}/*