From 6fb0e72f8b6f62aeb3f8bed444b7e7f38f7f39895d369ca65eef7759c60b6d43 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Thu, 16 Feb 2017 14:12:22 +0000 Subject: [PATCH 1/3] Accepting request 457355 from home:kwk:branches:devel:languages:python MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - update to version 0.6.1: * Fix signature for PathGraphingAstVisitor.default to match the signature for ASTVisitor - update to version 0.6.0: * Add support for Python 3.6 * Fix handling for missing statement types - update to version 0.5.3: * Report actual column number of violation instead of the start of the line - update to version 0.5.2: * When opening files ourselves, make sure we always name the file variable - update to version 0.5.1: * Set default maximum complexity to -1 on the class itself - update to version 0.5.0: * PyCon 2016 PDX release * Add support for Flake8 3.0 - update to version 0.4.0: * Stop testing on Python 3.2 * Add support for async/await keywords on Python 3.5 from PEP 0492 - update to version 0.3.1: * Include test_mccabe.py in releases. * Always coerce the max_complexity value from Flake8’s entry-point to an integer. OBS-URL: https://build.opensuse.org/request/show/457355 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mccabe?expand=0&rev=14 --- mccabe-0.3.tar.gz | 3 --- mccabe-0.6.1.tar.gz | 3 +++ python-mccabe.changes | 35 +++++++++++++++++++++++++++++++++++ python-mccabe.spec | 5 +++-- 4 files changed, 41 insertions(+), 5 deletions(-) delete mode 100644 mccabe-0.3.tar.gz create mode 100644 mccabe-0.6.1.tar.gz diff --git a/mccabe-0.3.tar.gz b/mccabe-0.3.tar.gz deleted file mode 100644 index 0bea9ed..0000000 --- a/mccabe-0.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3d8ca9bf65c5014f469180544d1dd5bb5b9df709aad6304f9c2e4370ae0a7b7c -size 6127 diff --git a/mccabe-0.6.1.tar.gz b/mccabe-0.6.1.tar.gz new file mode 100644 index 0000000..5e3204a --- /dev/null +++ b/mccabe-0.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f +size 8612 diff --git a/python-mccabe.changes b/python-mccabe.changes index 0f6f9cb..37f9d2d 100644 --- a/python-mccabe.changes +++ b/python-mccabe.changes @@ -1,3 +1,38 @@ +------------------------------------------------------------------- +Wed Feb 15 08:55:16 UTC 2017 - kkaempf@suse.com + +- update to version 0.6.1: + * Fix signature for PathGraphingAstVisitor.default to match the + signature for ASTVisitor + +- update to version 0.6.0: + * Add support for Python 3.6 + * Fix handling for missing statement types + +- update to version 0.5.3: + * Report actual column number of violation instead of the start + of the line + +- update to version 0.5.2: + * When opening files ourselves, make sure we always name the file + variable + +- update to version 0.5.1: + * Set default maximum complexity to -1 on the class itself + +- update to version 0.5.0: + * PyCon 2016 PDX release + * Add support for Flake8 3.0 + +- update to version 0.4.0: + * Stop testing on Python 3.2 + * Add support for async/await keywords on Python 3.5 from PEP 0492 + +- update to version 0.3.1: + * Include test_mccabe.py in releases. + * Always coerce the max_complexity value from Flake8’s entry-point + to an integer. + ------------------------------------------------------------------- Thu May 7 16:34:53 UTC 2015 - benoit.monin@gmx.fr diff --git a/python-mccabe.spec b/python-mccabe.spec index 4998b33..2de36d6 100644 --- a/python-mccabe.spec +++ b/python-mccabe.spec @@ -1,7 +1,7 @@ # # spec file for package python-mccabe # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-mccabe -Version: 0.3 +Version: 0.6.1 Release: 0 Summary: McCabe checker, plugin for flake8 License: MIT @@ -25,6 +25,7 @@ Group: Development/Languages/Python Url: https://github.com/flintwork/mccabe Source: http://pypi.python.org/packages/source/m/mccabe/mccabe-%{version}.tar.gz BuildRequires: python-devel +BuildRequires: python-pytest-runner BuildRequires: python-setuptools BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 From dc325ecc9b30826be0f524572582ed4161f23a50ddedf3feb6f69b10dda054af Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Mon, 20 Feb 2017 10:37:25 +0000 Subject: [PATCH 2/3] - Use pypi.io and https in Source OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mccabe?expand=0&rev=15 --- python-mccabe.changes | 5 +++++ python-mccabe.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-mccabe.changes b/python-mccabe.changes index 37f9d2d..5cd4ff6 100644 --- a/python-mccabe.changes +++ b/python-mccabe.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 20 10:36:41 UTC 2017 - tbechtold@suse.com + +- Use pypi.io and https in Source + ------------------------------------------------------------------- Wed Feb 15 08:55:16 UTC 2017 - kkaempf@suse.com diff --git a/python-mccabe.spec b/python-mccabe.spec index 2de36d6..b6024c4 100644 --- a/python-mccabe.spec +++ b/python-mccabe.spec @@ -23,7 +23,7 @@ Summary: McCabe checker, plugin for flake8 License: MIT Group: Development/Languages/Python Url: https://github.com/flintwork/mccabe -Source: http://pypi.python.org/packages/source/m/mccabe/mccabe-%{version}.tar.gz +Source: https://pypi.io/packages/source/m/mccabe/mccabe-%{version}.tar.gz BuildRequires: python-devel BuildRequires: python-pytest-runner BuildRequires: python-setuptools From bf99556c75f9629d6da63b183540bf1af0043be4eda7092de017aedf0a2e1698 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Wed, 15 Mar 2017 15:14:45 +0000 Subject: [PATCH 3/3] Accepting request 479715 from devel:languages:python:singlespec - update for singlespec - enable tests OBS-URL: https://build.opensuse.org/request/show/479715 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mccabe?expand=0&rev=16 --- python-mccabe.changes | 6 ++++++ python-mccabe.spec | 21 +++++++++++---------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/python-mccabe.changes b/python-mccabe.changes index 5cd4ff6..0cb0694 100644 --- a/python-mccabe.changes +++ b/python-mccabe.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Mar 6 14:03:34 UTC 2017 - jmatejek@suse.com + +- update for singlespec +- enable tests + ------------------------------------------------------------------- Mon Feb 20 10:36:41 UTC 2017 - tbechtold@suse.com diff --git a/python-mccabe.spec b/python-mccabe.spec index b6024c4..fa52193 100644 --- a/python-mccabe.spec +++ b/python-mccabe.spec @@ -16,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-mccabe Version: 0.6.1 Release: 0 @@ -24,15 +25,12 @@ License: MIT Group: Development/Languages/Python Url: https://github.com/flintwork/mccabe Source: https://pypi.io/packages/source/m/mccabe/mccabe-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-pytest-runner -BuildRequires: python-setuptools +BuildRequires: %{python_module pytest-runner} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif +%python_subpackages %description Ned's script to check McCabe complexity. @@ -42,12 +40,15 @@ This module provides a plugin for flake8, the Python code checker. %setup -q -n mccabe-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files +%check +%python_exec %{_bindir}/py.test + +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE README.rst %{python_sitelib}/*