Hello community, here is the log from the commit of package python-flake8 for openSUSE:Factory checked in at 2017-04-19 18:04:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-flake8 (Old) and /work/SRC/openSUSE:Factory/.python-flake8.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-flake8" Wed Apr 19 18:04:31 2017 rev:14 rq:483178 version:3.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-flake8/python-flake8.changes 2016-08-22 13:59:12.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-flake8.new/python-flake8.changes 2017-04-19 18:04:32.959111823 +0200 @@ -1,0 +2,13 @@ +Fri Mar 24 15:29:36 UTC 2017 - [email protected] + +- update for singlespec +- update to 3.3.0 + * fix setuptools integration + * drop python 2.6 and python < 3.4 support + * nonzero exit on problems + * python 3.6 support + * performance improvements +- switch requirement from pep8 to pycodestyle +- switch test runner from nose to pytest + +------------------------------------------------------------------- Old: ---- flake8-2.5.1.tar.gz New: ---- flake8-3.3.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-flake8.spec ++++++ --- /var/tmp/diff_new_pack.rRwINR/_old 2017-04-19 18:04:33.711005464 +0200 +++ /var/tmp/diff_new_pack.rRwINR/_new 2017-04-19 18:04:33.715004898 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-flake8 # -# Copyright (c) 2016 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 @@ -16,33 +16,41 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-flake8 -Version: 2.5.1 +Version: 3.3.0 Release: 0 Summary: Modular source code checker: pep8, pyflakes and co License: MIT Group: Development/Languages/Python Url: https://gitlab.com/pycqa/flake8 -Source: http://pypi.python.org/packages/source/f/flake8/flake8-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -# Test requirements: -BuildRequires: python-mccabe >= 0.2.1 -BuildRequires: python-mock -BuildRequires: python-nose -BuildRequires: python-pep8 >= 1.5.7 -BuildRequires: python-pyflakes >= 0.8.1 +Source: https://files.pythonhosted.org/packages/source/f/flake8/flake8-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module mccabe >= 0.2.1} +BuildRequires: %{python_module mock >= 2.0.0} +BuildRequires: %{python_module pycodestyle >= 2.0.0} +BuildRequires: %{python_module pyflakes >= 1.5.0} +BuildRequires: %{python_module pytest-runner} +BuildRequires: %{python_module pytest} +BuildRequires: python2-configparser +BuildRequires: python2-enum34 +# /SECTION Requires: python-mccabe >= 0.2.1 -Requires: python-pep8 >= 1.5.7 -Requires: python-pyflakes >= 0.8.1 +Requires: python-pycodestyle >= 2.0.0 +Requires: python-pyflakes >= 1.5.0 +%ifpython2 +Requires: python-configparser +Requires: python-enum34 +%endif Requires(post): update-alternatives -Requires(preun): update-alternatives +Requires(postun): update-alternatives 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 Flake8 is a wrapper around these tools: @@ -57,34 +65,26 @@ %setup -q -n flake8-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} - -# Prepare for update-alternatives usage -mkdir -p %{buildroot}%{_sysconfdir}/alternatives -mv %{buildroot}%{_bindir}/flake8 %{buildroot}%{_bindir}/flake8-%{py_ver} -ln -s -f %{_sysconfdir}/alternatives/flake8 %{buildroot}%{_bindir}/flake8 +%python_install +%python_clone -a %{buildroot}%{_bindir}/flake8 +%fdupes %{buildroot}%{_prefix} %post -%_sbindir/update-alternatives \ - --install %{_bindir}/flake8 flake8 %{_bindir}/flake8-%{py_ver} 30 +%python_install_alternative flake8 -%preun -if [ $1 -eq 0 ] ; then - %_sbindir/update-alternatives --remove flake8 %{_bindir}/flake8-%{py_ver} -fi +%postun +%python_uninstall_alternative flake8 %check -python setup.py test +%python_exec setup.py test -%files +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE README.rst -%{_bindir}/flake8 -%{_bindir}/flake8-%{py_ver} -%ghost %{_sysconfdir}/alternatives/flake8 +%python_alternative %{_bindir}/flake8 %{python_sitelib}/* %changelog ++++++ flake8-2.5.1.tar.gz -> flake8-3.3.0.tar.gz ++++++ ++++ 18865 lines of diff (skipped)
